[FL-2010] furi-hal-vcp rework (#812)
* [FL-2010] furi-hal-vcp rework * Fix connect state change on vcp enable * New thread naming scheme and stack size adjustment. * Applications: rename worker threads to match new naming scheme. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ bool ble_app_init() {
|
||||
ble_app->hci_mtx = osMutexNew(NULL);
|
||||
ble_app->hci_sem = osSemaphoreNew(1, 0, NULL);
|
||||
// HCI transport layer thread to handle user asynch events
|
||||
ble_app->hci_thread_attr.name = "ble hci";
|
||||
ble_app->hci_thread_attr.name = "BleHciWorker";
|
||||
ble_app->hci_thread_attr.stack_size = 1024;
|
||||
ble_app->hci_thread_id = osThreadNew(ble_app_hci_thread, NULL, &ble_app->hci_thread_attr);
|
||||
|
||||
|
@@ -50,7 +50,7 @@ void ble_glue_set_key_storage_changed_callback(BleGlueKeyStorageChangedCallback
|
||||
void ble_glue_init() {
|
||||
ble_glue = furi_alloc(sizeof(BleGlue));
|
||||
ble_glue->status = BleGlueStatusStartup;
|
||||
ble_glue->shci_user_event_thread_attr.name = "ble_shci_evt";
|
||||
ble_glue->shci_user_event_thread_attr.name = "BleShciWorker";
|
||||
ble_glue->shci_user_event_thread_attr.stack_size = 1024;
|
||||
|
||||
// Configure the system Power Mode
|
||||
|
@@ -393,7 +393,7 @@ bool gap_init(BleEventCallback on_event_cb, void* context) {
|
||||
gap->enable_adv = true;
|
||||
|
||||
// Thread configuration
|
||||
gap->thread_attr.name = "BLE advertising";
|
||||
gap->thread_attr.name = "BleGapWorker";
|
||||
gap->thread_attr.stack_size = 1024;
|
||||
gap->thread_id = osThreadNew(gap_app, NULL, &gap->thread_attr);
|
||||
|
||||
|
Reference in New Issue
Block a user