FreeRTOS port on GAP8/RISC-V
|
Macros | |
#define | UDMA_DATA_MAX_SIZE |
Functions | |
static void | __pi_cpi_handle_end_of_task (struct pi_task *task) |
static void | __pi_cpi_handler (void *arg) |
static uint32_t | __pi_cpi_task_fifo_enqueue (struct cpi_itf_data_s *driver_data, struct pi_task *task) |
static struct pi_task * | __pi_cpi_task_fifo_pop (struct cpi_itf_data_s *driver_data) |
static void | __pi_cpi_copy_exec (struct cpi_itf_data_s *driver_data, struct pi_task *task) |
static void | __pi_cpi_enqueue (uint32_t rx_channel, uint32_t l2buf, uint32_t size, uint32_t cfg) |
void | __pi_cpi_conf_init (struct pi_cpi_conf *conf) |
int32_t | __pi_cpi_open (struct pi_cpi_conf *conf, struct cpi_itf_data_s **device_data) |
void | __pi_cpi_close (struct cpi_itf_data_s *device_data) |
void | __pi_cpi_copy (struct cpi_itf_data_s *device_data, void *l2_buf, uint32_t size, struct pi_task *task) |
Variables | |
struct cpi_itf_data_s * | g_cpi_itf_data [UDMA_NB_CPI] |
#define UDMA_DATA_MAX_SIZE |
Referenced by __pi_cpi_copy_exec().
void __pi_cpi_close | ( | struct cpi_itf_data_s * | device_data | ) |
References cpi_itf_data_s::device_id, hal_soc_eu_clear_fc_mask(), hal_udma_ctrl_cg_enable(), hal_udma_ctrl_reset_clear(), cpi_itf_data_s::nb_open, pi_default_free, pi_fc_event_handler_clear(), pi_udma_core_lin_free(), cpi_itf_data_s::rx_channel, SOC_EVENT_UDMA_CHAN_LIN, SOC_EVENT_UDMA_CPI_RX, UDMA_CPI_ID, and udma_deinit_device().
void __pi_cpi_conf_init | ( | struct pi_cpi_conf * | conf | ) |
void __pi_cpi_copy | ( | struct cpi_itf_data_s * | device_data, |
void * | l2_buf, | ||
uint32_t | size, | ||
struct pi_task * | task | ||
) |
|
static |
References __pi_cpi_enqueue(), CPI_TRACE, cpi_itf_data_s::device_id, max_size, cpi_itf_data_s::rx_channel, and UDMA_DATA_MAX_SIZE.
Referenced by __pi_cpi_copy(), and __pi_cpi_handler().
|
static |
References hal_udma_core_lin_enqueue(), and hal_udma_core_lin_get().
Referenced by __pi_cpi_copy_exec(), and __pi_cpi_handler().
|
static |
References pi_task_push(), and pi_task_release().
Referenced by __pi_cpi_handler().
|
static |
References __pi_cpi_copy_exec(), __pi_cpi_enqueue(), __pi_cpi_handle_end_of_task(), __pi_cpi_task_fifo_pop(), CPI_TRACE, cpi_itf_data_s::fifo_head, and cpi_itf_data_s::rx_channel.
Referenced by __pi_cpi_open().
int32_t __pi_cpi_open | ( | struct pi_cpi_conf * | conf, |
struct cpi_itf_data_s ** | device_data | ||
) |
References __pi_cpi_handler(), CPI_TRACE, CPI_TRACE_ERR, cpi_itf_data_s::datasize, cpi_itf_data_s::device_id, cpi_itf_data_s::fifo_head, cpi_itf_data_s::fifo_tail, hal_cpi_rx_datasize_set(), hal_cpi_rx_dest_set(), hal_soc_eu_set_fc_mask(), hal_udma_ctrl_cg_disable(), hal_udma_ctrl_reset_set(), cpi_itf_data_s::hw_buffer, cpi_itf_data_s::nb_open, pi_default_malloc, pi_fc_event_handler_set(), pi_udma_core_lin_alloc(), cpi_itf_data_s::rx_channel, SOC_EVENT_UDMA_CHAN_LIN, SOC_EVENT_UDMA_CPI_RX, UDMA_CPI_ID, and udma_init_device().
|
static |
References cpi_itf_data_s::fifo_head, and cpi_itf_data_s::fifo_tail.
Referenced by __pi_cpi_copy().
|
static |
References cpi_itf_data_s::fifo_head, and cpi_itf_data_s::fifo_tail.
Referenced by __pi_cpi_handler().
struct cpi_itf_data_s* g_cpi_itf_data[UDMA_NB_CPI] |