FreeRTOS port on GAP8/RISC-V
|
Data Structures | |
struct | pwm_data_s |
Macros | |
#define | PI_PWM_TIMER_ID_SHIFT |
#define | PI_PWM_TIMER_ID_MASK |
#define | PI_PWM_TIMER_ID(data) |
#define | PI_PWM_CHANNEL_ID_SHIFT |
#define | PI_PWM_CHANNEL_ID_MASK |
#define | PI_PWM_CHANNEL_ID(data) |
Functions | |
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) |
static void | pi_pwm_timer_start (struct pi_device *device) |
static void | pi_pwm_timer_stop (struct pi_device *device) |
#define PI_PWM_CHANNEL_ID | ( | data | ) |
#define PI_PWM_CHANNEL_ID_MASK |
#define PI_PWM_CHANNEL_ID_SHIFT |
#define PI_PWM_TIMER_ID | ( | data | ) |
#define PI_PWM_TIMER_ID_MASK |
#define PI_PWM_TIMER_ID_SHIFT |
void __pi_pwm_close | ( | uint32_t | pwm_ch | ) |
void __pi_pwm_conf_init | ( | struct pi_pwm_conf * | conf | ) |
Referenced by pi_pwm_conf_init().
uint32_t __pi_pwm_counter_get | ( | uint32_t | pwm_ch | ) |
References hal_pwm_counter_get(), and PI_PWM_TIMER_ID.
Referenced by pi_pwm_counter_get().
int32_t __pi_pwm_duty_cycle_set | ( | uint32_t | pwm_ch, |
uint32_t | pwm_freq, | ||
uint8_t | duty_cycle | ||
) |
int32_t __pi_pwm_ioctl | ( | uint32_t | pwm_ch, |
pi_pwm_ioctl_cmd_e | cmd, | ||
void * | arg | ||
) |
References __pi_pwm_channel_config_set(), __pi_pwm_command_set(), __pi_pwm_output_event_clear(), __pi_pwm_output_event_set(), __pi_pwm_threshold_set(), __pi_pwm_timer_conf_set(), __pi_pwm_timer_freq_reset(), __pi_pwm_user_cb_attach(), and PI_PWM_TIMER_ID.
Referenced by pi_pwm_ioctl(), pi_pwm_timer_start(), and pi_pwm_timer_stop().
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.
Referenced by pi_pwm_open().
|
inlinestatic |
References __pi_pwm_ioctl().
|
inlinestatic |
References __pi_pwm_ioctl().