mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
@@ -51,17 +51,12 @@ void flipper_init(void) {
|
||||
FURI_LOG_I(TAG, "Startup complete");
|
||||
}
|
||||
|
||||
PLACE_IN_SECTION("MB_MEM2") static StaticTask_t idle_task_tcb;
|
||||
PLACE_IN_SECTION("MB_MEM2") static StackType_t idle_task_stack[configIDLE_TASK_STACK_DEPTH];
|
||||
PLACE_IN_SECTION("MB_MEM2") static StaticTask_t timer_task_tcb;
|
||||
PLACE_IN_SECTION("MB_MEM2") static StackType_t timer_task_stack[configTIMER_TASK_STACK_DEPTH];
|
||||
|
||||
void vApplicationGetIdleTaskMemory(
|
||||
StaticTask_t** tcb_ptr,
|
||||
StackType_t** stack_ptr,
|
||||
uint32_t* stack_size) {
|
||||
*tcb_ptr = &idle_task_tcb;
|
||||
*stack_ptr = idle_task_stack;
|
||||
*tcb_ptr = memmgr_alloc_from_pool(sizeof(StaticTask_t));
|
||||
*stack_ptr = memmgr_alloc_from_pool(sizeof(StackType_t) * configIDLE_TASK_STACK_DEPTH);
|
||||
*stack_size = configIDLE_TASK_STACK_DEPTH;
|
||||
}
|
||||
|
||||
@@ -69,7 +64,7 @@ void vApplicationGetTimerTaskMemory(
|
||||
StaticTask_t** tcb_ptr,
|
||||
StackType_t** stack_ptr,
|
||||
uint32_t* stack_size) {
|
||||
*tcb_ptr = &timer_task_tcb;
|
||||
*stack_ptr = timer_task_stack;
|
||||
*tcb_ptr = memmgr_alloc_from_pool(sizeof(StaticTask_t));
|
||||
*stack_ptr = memmgr_alloc_from_pool(sizeof(StackType_t) * configTIMER_TASK_STACK_DEPTH);
|
||||
*stack_size = configTIMER_TASK_STACK_DEPTH;
|
||||
}
|
||||
Reference in New Issue
Block a user