FreeRTOS port on GAP8/RISC-V
|
Functions | |
int | __os_native_kickoff (void *arg) |
void | pi_time_wait_us (int time_us) |
void | pi_task_delayed_fifo_enqueue (struct pi_task *task, uint32_t delay_us) |
Enqueue a delayed task. More... | |
int | pi_task_delayed_increment_push (void) |
Variables | |
PI_FC_L1 struct pi_task_delayed_s | delayed_task |
int __os_native_kickoff | ( | void * | arg | ) |
Kickoff the first "main" os task and scheduler
References configSTACK_DEPTH_TYPE, g_freertos_scheduler_started, g_printf_mutex, hal_compiler_barrier(), NVIC_EnableIRQ, pdPASS, PENDSV_IRQN, pmsis_event_kernel_init(), pmsis_event_kernel_main(), pmsis_event_set_default_scheduler(), pmsis_exit(), printf, tskIDLE_PRIORITY, and vTaskStartScheduler().
Referenced by pmsis_kickoff().
void pi_task_delayed_fifo_enqueue | ( | struct pi_task * | task, |
uint32_t | delay_us | ||
) |
This function is used to pushed a delayed event task to event kernel.
task | Pointer to event task. |
delay_us | Delay to wait for execution of the event task. |
References pi_task_delayed_s::fifo_head, pi_task_delayed_s::fifo_tail, and portTICK_PERIOD_MS.
Referenced by pi_task_push_delayed_us().
int pi_task_delayed_increment_push | ( | void | ) |
References pi_task_delayed_s::fifo_head, and pi_task_push().
void pi_time_wait_us | ( | int | time_us | ) |
References disable_irq(), pi_freq_get(), portTICK_PERIOD_MS, restore_irq(), and vTaskDelay().
Referenced by __cluster_start(), __pi_i2c_open(), __pi_i2c_slave_open(), __pi_pmu_wait_end_of_sequence(), and __pi_spi_send_async_with_ucode().
PI_FC_L1 struct pi_task_delayed_s delayed_task |