This commit is contained in:
Willy-JL
2024-06-06 00:31:41 +01:00
28 changed files with 586 additions and 425 deletions

View File

@@ -1883,6 +1883,7 @@ Function,+,furi_string_utf8_push,void,"FuriString*, FuriStringUnicodeValue"
Function,+,furi_string_vprintf,int,"FuriString*, const char[], va_list"
Function,+,furi_thread_alloc,FuriThread*,
Function,+,furi_thread_alloc_ex,FuriThread*,"const char*, uint32_t, FuriThreadCallback, void*"
Function,-,furi_thread_alloc_service,FuriThread*,"const char*, uint32_t, FuriThreadCallback, void*"
Function,-,furi_thread_disable_heap_trace,void,FuriThread*
Function,+,furi_thread_enable_heap_trace,void,FuriThread*
Function,+,furi_thread_enumerate,uint32_t,"FuriThreadId*, uint32_t"
@@ -1905,7 +1906,6 @@ Function,+,furi_thread_get_state,FuriThreadState,FuriThread*
Function,+,furi_thread_get_stdout_callback,FuriThreadStdoutWriteCallback,
Function,+,furi_thread_is_suspended,_Bool,FuriThreadId
Function,+,furi_thread_join,_Bool,FuriThread*
Function,+,furi_thread_mark_as_service,void,FuriThread*
Function,+,furi_thread_resume,void,FuriThreadId
Function,+,furi_thread_set_appid,void,"FuriThread*, const char*"
Function,+,furi_thread_set_callback,void,"FuriThread*, FuriThreadCallback"
1 entry status name type params
1883 Function + furi_string_vprintf int FuriString*, const char[], va_list
1884 Function + furi_thread_alloc FuriThread*
1885 Function + furi_thread_alloc_ex FuriThread* const char*, uint32_t, FuriThreadCallback, void*
1886 Function - furi_thread_alloc_service FuriThread* const char*, uint32_t, FuriThreadCallback, void*
1887 Function - furi_thread_disable_heap_trace void FuriThread*
1888 Function + furi_thread_enable_heap_trace void FuriThread*
1889 Function + furi_thread_enumerate uint32_t FuriThreadId*, uint32_t
1906 Function + furi_thread_get_stdout_callback FuriThreadStdoutWriteCallback
1907 Function + furi_thread_is_suspended _Bool FuriThreadId
1908 Function + furi_thread_join _Bool FuriThread*
Function + furi_thread_mark_as_service void FuriThread*
1909 Function + furi_thread_resume void FuriThreadId
1910 Function + furi_thread_set_appid void FuriThread*, const char*
1911 Function + furi_thread_set_callback void FuriThread*, FuriThreadCallback

View File

@@ -268,9 +268,8 @@ void furi_hal_serial_control_init(void) {
furi_hal_serial_control->handles[FuriHalSerialIdLpuart].id = FuriHalSerialIdLpuart;
furi_hal_serial_control->queue =
furi_message_queue_alloc(8, sizeof(FuriHalSerialControlMessage));
furi_hal_serial_control->thread =
furi_thread_alloc_ex("SerialControlDriver", 512, furi_hal_serial_control_thread, NULL);
furi_thread_mark_as_service(furi_hal_serial_control->thread);
furi_hal_serial_control->thread = furi_thread_alloc_service(
"SerialControlDriver", 512, furi_hal_serial_control_thread, NULL);
furi_thread_set_priority(furi_hal_serial_control->thread, FuriThreadPriorityHighest);
furi_hal_serial_control->log_config_serial_id = FuriHalSerialIdMax;
// Start control plane thread

View File

@@ -121,8 +121,7 @@ void furi_hal_usb_init(void) {
NVIC_EnableIRQ(USB_HP_IRQn);
usb.queue = furi_message_queue_alloc(1, sizeof(UsbApiEventMessage));
usb.thread = furi_thread_alloc_ex("UsbDriver", 1024, furi_hal_usb_thread, NULL);
furi_thread_mark_as_service(usb.thread);
usb.thread = furi_thread_alloc_service("UsbDriver", 1024, furi_hal_usb_thread, NULL);
furi_thread_start(usb.thread);
FURI_LOG_I(TAG, "Init OK");

View File

@@ -16,7 +16,7 @@
#define configUSE_PREEMPTION 1
#define configSUPPORT_STATIC_ALLOCATION 1
#define configSUPPORT_DYNAMIC_ALLOCATION 1
#define configSUPPORT_DYNAMIC_ALLOCATION 0
#define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 0
#define configCPU_CLOCK_HZ (SystemCoreClock)