mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-26 05:54:46 -07:00
Mark some service threads as services
This commit is contained in:
@@ -81,6 +81,7 @@ void furi_hal_usb_init(void) {
|
|||||||
NVIC_EnableIRQ(USB_HP_IRQn);
|
NVIC_EnableIRQ(USB_HP_IRQn);
|
||||||
|
|
||||||
usb.thread = furi_thread_alloc_ex("UsbDriver", 1024, furi_hal_usb_thread, NULL);
|
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_thread_start(usb.thread);
|
||||||
|
|
||||||
FURI_LOG_I(TAG, "Init OK");
|
FURI_LOG_I(TAG, "Init OK");
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ void platformSetIrqCallback(PlatformIrqCallback callback) {
|
|||||||
rfal_platform.callback = callback;
|
rfal_platform.callback = callback;
|
||||||
rfal_platform.thread =
|
rfal_platform.thread =
|
||||||
furi_thread_alloc_ex("RfalIrqDriver", 1024, rfal_platform_irq_thread, NULL);
|
furi_thread_alloc_ex("RfalIrqDriver", 1024, rfal_platform_irq_thread, NULL);
|
||||||
|
furi_thread_mark_as_service(rfal_platform.thread);
|
||||||
furi_thread_set_priority(rfal_platform.thread, FuriThreadPriorityIsr);
|
furi_thread_set_priority(rfal_platform.thread, FuriThreadPriorityIsr);
|
||||||
furi_thread_start(rfal_platform.thread);
|
furi_thread_start(rfal_platform.thread);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user