FreeRTOS port on GAP8/RISC-V
|
Functions | |
static void | __pi_udma_timeout_event_handler (void *arg) |
static void | __pi_udma_timeout_task_push (struct pi_udma_timeout_s *driver_data, pi_task_t *task) |
static pi_task_t * | __pi_udma_timeout_task_pop (struct pi_udma_timeout_s *driver_data) |
static void | __pi_udma_timeout_start (uint8_t timeout_id) |
static void | __pi_udma_timeout_stop (uint8_t timeout_id) |
int32_t | pi_udma_timeout_config_set (pi_task_t *task, uint8_t timeout_id, uint8_t udma_chan_id, uint32_t timeout_us) |
int32_t | pi_udma_timeout_alloc (pi_udma_timeout_mode_e mode) |
void | pi_udma_timeout_free (int32_t timeout_id) |
int32_t | pi_udma_timeout_ioctl (int32_t timeout_id, uint32_t cmd, void *arg) |
Variables | |
static struct pi_udma_timeout_s * | g_udma_timeout [UDMA_NB_TIMEOUT] |
|
static |
References __pi_udma_timeout_task_pop(), and pi_task_release().
Referenced by pi_udma_timeout_alloc().
|
static |
References hal_udma_ctrl_timeout_timeout_start().
Referenced by pi_udma_timeout_ioctl().
|
static |
References hal_udma_ctrl_timeout_timeout_stop().
Referenced by pi_udma_timeout_ioctl().
|
inlinestatic |
References pi_udma_timeout_s::fifo_head.
Referenced by __pi_udma_timeout_event_handler().
|
inlinestatic |
References disable_irq(), pi_udma_timeout_s::fifo_head, pi_udma_timeout_s::fifo_tail, and restore_irq().
Referenced by pi_udma_timeout_config_set().
int32_t pi_udma_timeout_alloc | ( | pi_udma_timeout_mode_e | mode | ) |
int32_t pi_udma_timeout_config_set | ( | pi_task_t * | task, |
uint8_t | timeout_id, | ||
uint8_t | udma_chan_id, | ||
uint32_t | timeout_us | ||
) |
References __pi_udma_timeout_task_push(), ARCHI_FLL_REF_CLOCK, hal_udma_ctrl_timeout_prescaler_enabled(), hal_udma_ctrl_timeout_prescaler_set(), hal_udma_ctrl_timeout_timeout_set(), pi_udma_timeout_s::mode, TIMEOUT_TRACE, and TIMEOUT_TRACE_ERR.
Referenced by __pi_i2c_timeout_config_set(), and __pi_uart_copy_exec().
void pi_udma_timeout_free | ( | int32_t | timeout_id | ) |
int32_t pi_udma_timeout_ioctl | ( | int32_t | timeout_id, |
uint32_t | cmd, | ||
void * | arg | ||
) |
References __pi_udma_timeout_start(), __pi_udma_timeout_stop(), and TIMEOUT_TRACE.
|
static |