36 #ifndef __OS_HAL_PWM_H__
37 #define __OS_HAL_PWM_H__
198 #define MAX_CHANNEL_NUM 4
327 bool global_kick_enable,
PWM channel2 bit map.
Definition: os_hal_pwm.h:231
int mtk_os_hal_pwm_config_stay_cycle_2_state(pwm_groups group_num, pwm_channels pwm_num, struct mtk_com_pwm_data state_config)
Config 2-state stay cycle.
int mtk_os_hal_pwm_ctlr_init(pwm_groups group_num, u32 channel_bit_map)
Init PWM controller.
int mtk_os_hal_pwm_start_normal(pwm_groups group_num, pwm_channels pwm_num)
Start PWM controller.
pwms_bit_map
Defines the PWM channel bit map.
Definition: os_hal_pwm.h:226
PWM max channel bit map<invalid>
Definition: os_hal_pwm.h:235
PWM max group <invalid>
Definition: os_hal_pwm.h:221
int mtk_os_hal_pwm_ctlr_deinit(pwm_groups group_num, u32 channel_bit_map)
Deinit PWM controller.
PWM channel1 bit map.
Definition: os_hal_pwm.h:229
int mtk_os_hal_pwm_stop_normal(pwm_groups group_num, pwm_channels pwm_num)
Stop PWM controller.
PWM channel3 bit map.
Definition: os_hal_pwm.h:233
PWM group0.
Definition: os_hal_pwm.h:215
int mtk_os_hal_pwm_feature_enable(pwm_groups group_num, pwm_channels pwm_num, bool global_kick_enable, bool io_ctrl_sel, bool polarity_set)
PWM feature enable.
pwm_channels
Defines the PWM channel number.
Definition: mhal_pwm.h:180
pwm_groups
Defines the PWM group number.
Definition: os_hal_pwm.h:214
PWM group1.
Definition: os_hal_pwm.h:217
int mtk_os_hal_pwm_config_freq_duty_2_state(pwm_groups group_num, pwm_channels pwm_num, struct mtk_com_pwm_data state_config)
Config 2-state freq & duty.
int mtk_os_hal_pwm_config_freq_duty_normal(pwm_groups group_num, pwm_channels pwm_num, u32 frequency, u32 duty_cycle)
Config freq & duty.
int mtk_os_hal_pwm_config_dpsel(pwm_groups group_num, pwm_channels pwm_num, pwm_differential_select mode)
Config dpsel.
PWM group2.
Definition: os_hal_pwm.h:219
pwm_differential_select
Defines the PWM channel's differential mode.
Definition: mhal_pwm.h:166
PWM channel0 bit map.
Definition: os_hal_pwm.h:227
Used to store the PWM base address, group number, clock source, pwm channel common structure informat...
Definition: mhal_pwm.h:226