FreeRTOS port on GAP8/RISC-V
|
Functions | |
static void | __initialize_ch_mux (void) |
static void | __pi_pwm_handler (void *arg) |
static void | __pi_pwm_timer_conf_set (uint8_t pwm_id, struct pi_pwm_conf *conf) |
static void | __pi_pwm_threshold_set (uint8_t pwm_id, uint16_t counter_start, uint16_t counter_end) |
static void | __pi_pwm_channel_config_set (uint8_t pwm_id, pi_pwm_channel_e channel, uint16_t threshold, pi_pwm_ch_config_e config) |
static void | __pi_pwm_output_event_set (pi_pwm_evt_sel_e evt_sel, pi_pwm_output_evt_e evt_output) |
static void | __pi_pwm_output_event_clear (pi_pwm_evt_sel_e evt_sel) |
static int32_t | __pi_pwm_user_cb_attach (uint8_t pwm_id, pi_task_t *cb) |
static void | __pi_pwm_command_set (uint8_t pwm_id, pi_pwm_cmd_e cmd) |
static void | __pi_pwm_timer_freq_reset (uint8_t pwm_id) |
void | __pi_pwm_conf_init (struct pi_pwm_conf *conf) |
int32_t | __pi_pwm_open (struct pi_pwm_conf *conf, uint32_t **device_data) |
void | __pi_pwm_close (uint32_t pwm_ch) |
int32_t | __pi_pwm_ioctl (uint32_t pwm_ch, pi_pwm_ioctl_cmd_e cmd, void *arg) |
uint32_t | __pi_pwm_counter_get (uint32_t pwm_ch) |
int32_t | __pi_pwm_duty_cycle_set (uint32_t pwm_ch, uint32_t pwm_freq, uint8_t duty_cycle) |
Variables | |
static struct pwm_data_s * | g_pwm_data [ARCHI_NB_PWM] |
static uint8_t | ch_mux_initialized |
|
static |
References adv_timer_ch_mux_ch_sel_0_set(), adv_timer_ch_mux_ch_sel_1_set(), adv_timer_ch_mux_ch_sel_2_set(), adv_timer_ch_mux_ch_sel_3_set(), adv_timer_ch_mux_ch_sel_4_set(), adv_timer_ch_mux_ch_sel_5_set(), adv_timer_ch_mux_ch_sel_6_set(), adv_timer_ch_mux_ch_sel_7_set(), ch_mux_initialized, and pwm.
Referenced by __pi_pwm_open().
|
static |
References hal_pwm_channel_th_mode_set().
Referenced by __pi_pwm_duty_cycle_set(), and __pi_pwm_ioctl().
void __pi_pwm_close | ( | uint32_t | pwm_ch | ) |
|
static |
References hal_pwm_cmd_set().
Referenced by __pi_pwm_ioctl(), and __pi_pwm_timer_freq_reset().
void __pi_pwm_conf_init | ( | struct pi_pwm_conf * | conf | ) |
uint32_t __pi_pwm_counter_get | ( | uint32_t | pwm_ch | ) |
References hal_pwm_counter_get(), and PI_PWM_TIMER_ID.
int32_t __pi_pwm_duty_cycle_set | ( | uint32_t | pwm_ch, |
uint32_t | pwm_freq, | ||
uint8_t | duty_cycle | ||
) |
|
static |
References pwm_data_s::event_task, and pi_task_push().
Referenced by __pi_pwm_open().
int32_t __pi_pwm_ioctl | ( | uint32_t | pwm_ch, |
pi_pwm_ioctl_cmd_e | cmd, | ||
void * | arg | ||
) |
int32_t __pi_pwm_open | ( | struct pi_pwm_conf * | conf, |
uint32_t ** | device_data | ||
) |
References __initialize_ch_mux(), __pi_pwm_freq_cb(), __pi_pwm_handler(), __pi_pwm_timer_conf_set(), ch_mux_initialized, pwm_data_s::device_id, pwm_data_s::duty_cycle, pwm_data_s::event_task, pwm_data_s::frequency, hal_pwm_ctrl_cg_disable(), pwm_data_s::nb_open, pi_fc_event_handler_set(), pi_freq_callback_add(), pi_freq_callback_init(), pi_l2_malloc(), PI_PWM_CHANNEL_ID_SHIFT, PI_PWM_TIMER_ID_SHIFT, pwm_data_s::pwm_freq_cb, PWM_TRACE, PWM_TRACE_ERR, and SOC_EVENT_PWM.
|
static |
References hal_pwm_ctrl_evt_cfg_disable().
Referenced by __pi_pwm_ioctl().
|
static |
References hal_pwm_ctrl_evt_cfg_set().
Referenced by __pi_pwm_ioctl().
|
static |
References hal_pwm_threshold_set().
Referenced by __pi_pwm_duty_cycle_set(), and __pi_pwm_ioctl().
|
static |
References hal_pwm_config_mask_set().
Referenced by __pi_pwm_ioctl(), and __pi_pwm_open().
|
static |
References __pi_pwm_command_set(), pwm_data_s::frequency, and PWM_TRACE.
Referenced by __pi_pwm_ioctl().
|
static |
|
static |
Referenced by __initialize_ch_mux(), and __pi_pwm_open().
|
static |