FreeRTOS port on GAP8/RISC-V
|
Functions | |
static void | __pi_udma_timestamp_cnt_clr (uint8_t timestamp_id) |
static void | __pi_udma_timestamp_cnt_stop (uint8_t timestamp_id) |
static void | __pi_udma_timestamp_cnt_close () |
static void | __pi_udma_evt_cfg_init () |
static void | __pi_udma_timestamp_evt_cfg (uint8_t cfg_evt, uint32_t soc_evt) |
static void | __pi_udma_timestamp_input_set (pi_timestamp_gpio_input_t *gpio) |
pi_udma_timestamp_t * | pi_udma_timestamp_alloc () |
void | pi_udma_timestamp_free (pi_udma_timestamp_t *timestamp) |
void | pi_timestamp_conf_init (struct pi_timestamp_conf *conf) |
void | pi_udma_timestamp_open (struct pi_timestamp_conf *conf) |
void | pi_udma_timestamp_close () |
int32_t | pi_udma_timestamp_ioctl (pi_udma_timestamp_t *timestamp, uint32_t cmd, void *arg) |
Variables | |
static struct pi_udma_timestamp_cnt_s | timestamp_cnt |
static struct pi_udma_timestamp_s * | timestamp_ptr [UDMA_NB_TIMESTAMP_EVT] |
|
static |
|
static |
References __pi_udma_timestamp_cnt_stop(), pi_udma_timestamp_cnt_s::cnt_en, pi_udma_timestamp_cnt_s::cnt_trig_gpio, pi_udma_timestamp_cnt_s::device_id, hal_timestamp_clk_gpio_sel(), hal_timestamp_clk_mux_set(), hal_timestamp_clk_prescaler_set(), hal_timestamp_clk_pwm_sel(), hal_timestamp_cnt_ext_en_set(), hal_timestamp_cnt_ext_sel_set(), hal_timestamp_cnt_ext_type_set(), and memset().
Referenced by pi_udma_timestamp_close().
|
static |
References hal_timestamp_cnt_clr_set().
Referenced by pi_udma_timestamp_ioctl().
|
static |
References hal_timestamp_cnt_stop_set().
Referenced by __pi_udma_timestamp_cnt_close(), and pi_udma_timestamp_ioctl().
|
static |
|
static |
References pi_udma_timestamp_cnt_s::device_id, hal_timestamp_input_en_ch0_set(), hal_timestamp_input_en_ch1_set(), hal_timestamp_input_en_ch2_set(), hal_timestamp_input_en_ch3_set(), hal_timestamp_input_en_ch4_set(), hal_timestamp_input_en_ch5_set(), hal_timestamp_input_en_ch6_set(), hal_timestamp_input_en_ch7_set(), hal_timestamp_input_sel_ch0_set(), hal_timestamp_input_sel_ch1_set(), hal_timestamp_input_sel_ch2_set(), hal_timestamp_input_sel_ch3_set(), hal_timestamp_input_sel_ch4_set(), hal_timestamp_input_sel_ch5_set(), hal_timestamp_input_sel_ch6_set(), hal_timestamp_input_sel_ch7_set(), hal_timestamp_input_type_ch0_set(), hal_timestamp_input_type_ch1_set(), hal_timestamp_input_type_ch2_set(), hal_timestamp_input_type_ch3_set(), hal_timestamp_input_type_ch4_set(), hal_timestamp_input_type_ch5_set(), hal_timestamp_input_type_ch6_set(), hal_timestamp_input_type_ch7_set(), and TIMESTAMP_TRACE_ERR.
Referenced by pi_udma_timestamp_ioctl().
void pi_timestamp_conf_init | ( | struct pi_timestamp_conf * | conf | ) |
pi_udma_timestamp_t* pi_udma_timestamp_alloc | ( | ) |
void pi_udma_timestamp_close | ( | ) |
void pi_udma_timestamp_free | ( | pi_udma_timestamp_t * | timestamp | ) |
int32_t pi_udma_timestamp_ioctl | ( | pi_udma_timestamp_t * | timestamp, |
uint32_t | cmd, | ||
void * | arg | ||
) |
void pi_udma_timestamp_open | ( | struct pi_timestamp_conf * | conf | ) |
References __pi_udma_evt_cfg_init(), pi_udma_timestamp_cnt_s::cnt_en, pi_udma_timestamp_cnt_s::cnt_src, pi_udma_timestamp_cnt_s::cnt_src_id, pi_udma_timestamp_cnt_s::cnt_trig_gpio, pi_udma_timestamp_cnt_s::cnt_trig_type, pi_udma_timestamp_cnt_s::device_id, hal_timestamp_clk_gpio_sel(), hal_timestamp_clk_mux_set(), hal_timestamp_clk_prescaler_set(), hal_timestamp_clk_pwm_sel(), hal_timestamp_cnt_ext_en_set(), hal_timestamp_cnt_ext_sel_set(), hal_timestamp_cnt_ext_type_set(), hal_udma_ctrl_cg_disable(), hal_udma_ctrl_reset_set(), pi_udma_timestamp_cnt_s::prescaler, TIMESTAMP_TRACE, and UDMA_TIMESTAMP_ID.
|
static |
Referenced by pi_udma_timestamp_alloc().
|
static |