Core: thread allocation shortcut (#2007)
* Core: thread alloc+set shortcut * Apps: use thread allocation shortcut * Mark some service threads as services * Init BT as soon as possible Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -80,10 +80,8 @@ void furi_hal_usb_init(void) {
|
||||
NVIC_EnableIRQ(USB_LP_IRQn);
|
||||
NVIC_EnableIRQ(USB_HP_IRQn);
|
||||
|
||||
usb.thread = furi_thread_alloc();
|
||||
furi_thread_set_name(usb.thread, "UsbDriver");
|
||||
furi_thread_set_stack_size(usb.thread, 1024);
|
||||
furi_thread_set_callback(usb.thread, furi_hal_usb_thread);
|
||||
usb.thread = furi_thread_alloc_ex("UsbDriver", 1024, furi_hal_usb_thread, NULL);
|
||||
furi_thread_mark_as_service(usb.thread);
|
||||
furi_thread_start(usb.thread);
|
||||
|
||||
FURI_LOG_I(TAG, "Init OK");
|
||||
|
Reference in New Issue
Block a user