Mark some service threads as services

This commit is contained in:
SG
2022-11-12 11:09:38 +10:00
parent 84d8ed097a
commit d0bc93edf0
2 changed files with 2 additions and 0 deletions

View File

@@ -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");

View File

@@ -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);