Blufi [Nimble] Add fix to crash while running blufi on ESP32C3

A race condition is occuring while creating task on ESP32C3. Task is
getting created, but the function returns with a delay. Since task was
created, events start getting posted, but existing application
initializes certain threads / callbacks after stack initialization.

The same application works in different ways for bluedroid and nimble.
Hence modified the order during initialization accordingly.
This commit is contained in:
Rahul Tank
2021-07-19 15:54:05 +05:30
committed by bot
parent 4ad49c4ae7
commit c6b756b2d7
3 changed files with 63 additions and 21 deletions

View File

@@ -13,3 +13,4 @@ int blufi_security_init(void);
void blufi_security_deinit(void);
int esp_blufi_gap_register_callback(void);
esp_err_t esp_blufi_host_init(void);
esp_err_t esp_blufi_host_and_cb_init(esp_blufi_callbacks_t *callbacks);