From d0bc93edf0695f7b1ed8978a7045775418198b3d Mon Sep 17 00:00:00 2001 From: SG Date: Sat, 12 Nov 2022 11:09:38 +1000 Subject: [PATCH] Mark some service threads as services --- firmware/targets/f7/furi_hal/furi_hal_usb.c | 1 + lib/ST25RFAL002/platform.c | 1 + 2 files changed, 2 insertions(+) diff --git a/firmware/targets/f7/furi_hal/furi_hal_usb.c b/firmware/targets/f7/furi_hal/furi_hal_usb.c index 74f2efca6..1eaeffd6a 100644 --- a/firmware/targets/f7/furi_hal/furi_hal_usb.c +++ b/firmware/targets/f7/furi_hal/furi_hal_usb.c @@ -81,6 +81,7 @@ void furi_hal_usb_init(void) { NVIC_EnableIRQ(USB_HP_IRQn); 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"); diff --git a/lib/ST25RFAL002/platform.c b/lib/ST25RFAL002/platform.c index c36c2c957..754e25650 100644 --- a/lib/ST25RFAL002/platform.c +++ b/lib/ST25RFAL002/platform.c @@ -47,6 +47,7 @@ void platformSetIrqCallback(PlatformIrqCallback callback) { rfal_platform.callback = callback; rfal_platform.thread = 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_start(rfal_platform.thread);