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:
@@ -26,10 +26,7 @@ int main() {
|
||||
// Flipper critical FURI HAL
|
||||
furi_hal_init_early();
|
||||
|
||||
FuriThread* main_thread = furi_thread_alloc();
|
||||
furi_thread_set_name(main_thread, "Init");
|
||||
furi_thread_set_stack_size(main_thread, 4096);
|
||||
furi_thread_set_callback(main_thread, init_task);
|
||||
FuriThread* main_thread = furi_thread_alloc_ex("Init", 4096, init_task, NULL);
|
||||
|
||||
#ifdef FURI_RAM_EXEC
|
||||
furi_thread_start(main_thread);
|
||||
|
Reference in New Issue
Block a user