| /bsp/nuvoton/libraries/m480/rtt_port/ |
| A D | drv_epwm.c | 84 EPWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 85 EPWM_Start(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 89 EPWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 90 EPWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 108 if ((pwm_channel % 2) == 0) in nu_epwm_set() 109 pwm_channel_pair = pwm_channel + 1; in nu_epwm_set() 111 pwm_channel_pair = pwm_channel - 1; in nu_epwm_set() 127 …EPWM_SET_CNR(pwm_base, pwm_channel, ((EPWM_GET_CNR(pwm_base, pwm_channel) + 1) * (EPWM_GET_PRESCAL… in nu_epwm_set() 128 …EPWM_SET_CMR(pwm_base, pwm_channel, (EPWM_GET_CMR(pwm_base, pwm_channel) * (EPWM_GET_PRESCALER(pwm… in nu_epwm_set() 175 rt_uint32_t pwm_period = EPWM_GET_CNR(pwm_base, pwm_channel); in nu_epwm_get() [all …]
|
| A D | drv_bpwm.c | 84 rt_uint32_t pwm_channel = configuration->channel; in nu_bpwm_enable() local 88 BPWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 89 BPWM_Start(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 93 BPWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 94 BPWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 106 rt_uint8_t pwm_channel = configuration->channel; in nu_bpwm_set() local 112 if (BPWM_GET_CNR(pwm_base, pwm_channel) != 0) in nu_bpwm_set() 125 BPWM_ConfigOutputChannel(pwm_base, pwm_channel, pwm_freq, pwm_dutycycle) ; in nu_bpwm_set() 169 rt_uint32_t pwm_channel = configuration->channel; in nu_bpwm_get() local 171 rt_uint32_t pwm_period = BPWM_GET_CNR(pwm_base, pwm_channel); in nu_bpwm_get() [all …]
|
| /bsp/nuvoton/libraries/ma35/rtt_port/ |
| A D | drv_epwm.c | 86 EPWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 87 EPWM_Start(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 91 EPWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 92 EPWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 111 if ((pwm_channel % 2) == 0) in nu_epwm_set() 112 pwm_channel_pair = pwm_channel + 1; in nu_epwm_set() 114 pwm_channel_pair = pwm_channel - 1; in nu_epwm_set() 130 …EPWM_SET_CNR(pwm_base, pwm_channel, ((EPWM_GET_CNR(pwm_base, pwm_channel) + 1) * (EPWM_GET_PRESCAL… in nu_epwm_set() 131 …EPWM_SET_CMR(pwm_base, pwm_channel, (EPWM_GET_CMR(pwm_base, pwm_channel) * (EPWM_GET_PRESCALER(pwm… in nu_epwm_set() 149 rt_uint32_t pwm_period = EPWM_GET_CNR(pwm_base, pwm_channel); in nu_epwm_get() [all …]
|
| /bsp/nuvoton/libraries/m2354/rtt_port/ |
| A D | drv_epwm.c | 84 EPWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 85 EPWM_Start(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 89 EPWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 90 EPWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 108 if ((pwm_channel % 2) == 0) in nu_epwm_set() 109 pwm_channel_pair = pwm_channel + 1; in nu_epwm_set() 111 pwm_channel_pair = pwm_channel - 1; in nu_epwm_set() 127 …EPWM_SET_CNR(pwm_base, pwm_channel, ((EPWM_GET_CNR(pwm_base, pwm_channel) + 1) * (EPWM_GET_PRESCAL… in nu_epwm_set() 128 …EPWM_SET_CMR(pwm_base, pwm_channel, (EPWM_GET_CMR(pwm_base, pwm_channel) * (EPWM_GET_PRESCALER(pwm… in nu_epwm_set() 175 rt_uint32_t pwm_period = EPWM_GET_CNR(pwm_base, pwm_channel); in nu_epwm_get() [all …]
|
| A D | drv_bpwm.c | 84 rt_uint32_t pwm_channel = configuration->channel; in nu_bpwm_enable() local 88 BPWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 89 BPWM_Start(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 93 BPWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 94 BPWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 106 rt_uint8_t pwm_channel = configuration->channel; in nu_bpwm_set() local 112 if (BPWM_GET_CNR(pwm_base, pwm_channel) != 0) in nu_bpwm_set() 125 BPWM_ConfigOutputChannel(pwm_base, pwm_channel, pwm_freq, pwm_dutycycle) ; in nu_bpwm_set() 169 rt_uint32_t pwm_channel = configuration->channel; in nu_bpwm_get() local 171 rt_uint32_t pwm_period = BPWM_GET_CNR(pwm_base, pwm_channel); in nu_bpwm_get() [all …]
|
| /bsp/nuvoton/libraries/m460/rtt_port/ |
| A D | drv_epwm.c | 82 EPWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 83 EPWM_Start(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 87 EPWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 88 EPWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_epwm_enable() 107 if ((pwm_channel % 2) == 0) in nu_epwm_set() 108 pwm_channel_pair = pwm_channel + 1; in nu_epwm_set() 110 pwm_channel_pair = pwm_channel - 1; in nu_epwm_set() 126 …EPWM_SET_CNR(pwm_base, pwm_channel, ((EPWM_GET_CNR(pwm_base, pwm_channel) + 1) * (EPWM_GET_PRESCAL… in nu_epwm_set() 127 …EPWM_SET_CMR(pwm_base, pwm_channel, (EPWM_GET_CMR(pwm_base, pwm_channel) * (EPWM_GET_PRESCALER(pwm… in nu_epwm_set() 145 rt_uint32_t pwm_period = EPWM_GET_CNR(pwm_base, pwm_channel); in nu_epwm_get() [all …]
|
| A D | drv_bpwm.c | 79 rt_uint32_t pwm_channel = ((struct rt_pwm_configuration *)configuration)->channel; in nu_bpwm_enable() local 83 BPWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 84 BPWM_Start(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 88 BPWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 89 BPWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 102 rt_uint8_t pwm_channel = ((struct rt_pwm_configuration *)configuration)->channel; in nu_bpwm_set() local 108 if (BPWM_GET_CNR(pwm_base, pwm_channel) != 0) in nu_bpwm_set() 121 BPWM_ConfigOutputChannel(pwm_base, pwm_channel, pwm_freq, pwm_dutycycle) ; in nu_bpwm_set() 136 rt_uint32_t pwm_channel = ((struct rt_pwm_configuration *)configuration)->channel; in nu_bpwm_get() local 138 rt_uint32_t pwm_period = BPWM_GET_CNR(pwm_base, pwm_channel); in nu_bpwm_get() [all …]
|
| /bsp/nuvoton/libraries/m031/rtt_port/ |
| A D | drv_pwm.c | 85 PWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_pwm_enable() 86 PWM_Start(pwm_base, 1 << pwm_channel); in nu_pwm_enable() 90 PWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_pwm_enable() 91 PWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_pwm_enable() 110 if ((pwm_channel % 2) == 0) in nu_pwm_set() 111 pwm_channel_pair = pwm_channel + 1; in nu_pwm_set() 113 pwm_channel_pair = pwm_channel - 1; in nu_pwm_set() 127 PWM_ConfigOutputChannel(pwm_base, pwm_channel, pwm_freq, pwm_dutycycle) ; in nu_pwm_set() 172 rt_uint32_t pwm_prescale = PWM_GET_PRESCALER(pwm_base, pwm_channel); in nu_pwm_get() 173 rt_uint32_t pwm_period = PWM_GET_CNR(pwm_base, pwm_channel); in nu_pwm_get() [all …]
|
| A D | drv_bpwm.c | 84 rt_uint32_t pwm_channel = configuration->channel; in nu_bpwm_enable() local 88 BPWM_EnableOutput(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 89 BPWM_Start(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 93 BPWM_DisableOutput(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 94 BPWM_ForceStop(pwm_base, 1 << pwm_channel); in nu_bpwm_enable() 106 rt_uint8_t pwm_channel = configuration->channel; in nu_bpwm_set() local 112 if (BPWM_GET_CNR(pwm_base, pwm_channel) != 0) in nu_bpwm_set() 125 BPWM_ConfigOutputChannel(pwm_base, pwm_channel, pwm_freq, pwm_dutycycle) ; in nu_bpwm_set() 169 rt_uint32_t pwm_channel = configuration->channel; in nu_bpwm_get() local 171 rt_uint32_t pwm_period = BPWM_GET_CNR(pwm_base, pwm_channel); in nu_bpwm_get() [all …]
|
| /bsp/essemi/es32f0654/drivers/ |
| A D | drv_pwm.c | 54 timer_channel_t pwm_channel; in es32f0_pwm_control() local 64 pwm_channel = TIMER_CHANNEL_1; in es32f0_pwm_control() 69 pwm_channel = TIMER_CHANNEL_2; in es32f0_pwm_control() 74 pwm_channel = TIMER_CHANNEL_3; in es32f0_pwm_control() 79 pwm_channel = TIMER_CHANNEL_4; in es32f0_pwm_control() 88 ald_timer_pwm_start(timer_initstruct, pwm_channel); in es32f0_pwm_control() 92 ald_timer_pwm_stop(timer_initstruct, pwm_channel); in es32f0_pwm_control() 106 ald_timer_oc_config_channel(timer_initstruct, &tim_ocinit, pwm_channel); in es32f0_pwm_control() 132 pwm_set_duty(timer_initstruct, pwm_channel, cfg->pulse); in es32f0_pwm_control() 137 cfg->pulse = ald_timer_read_capture_value(timer_initstruct, pwm_channel) * 100 / in es32f0_pwm_control()
|
| /bsp/essemi/es32vf2264/drivers/ |
| A D | drv_pwm.c | 54 ald_timer_channel_t pwm_channel; in es32f3_pwm_control() local 65 pwm_channel = ALD_TIMER_CHANNEL_1; in es32f3_pwm_control() 70 pwm_channel = ALD_TIMER_CHANNEL_2; in es32f3_pwm_control() 75 pwm_channel = ALD_TIMER_CHANNEL_3; in es32f3_pwm_control() 80 pwm_channel = ALD_TIMER_CHANNEL_4; in es32f3_pwm_control() 89 ald_timer_pwm_start(timer_initstruct, pwm_channel); in es32f3_pwm_control() 93 ald_timer_pwm_stop(timer_initstruct, pwm_channel); in es32f3_pwm_control() 108 ald_timer_oc_config_channel(timer_initstruct, &tim_ocinit, pwm_channel); in es32f3_pwm_control() 142 pwm_set_duty(timer_initstruct, pwm_channel, cfg->pulse); in es32f3_pwm_control() 147 cfg->pulse = ald_timer_read_capture_value(timer_initstruct, pwm_channel) * 100 / in es32f3_pwm_control()
|
| /bsp/essemi/es32f369x/drivers/ |
| A D | drv_pwm.c | 54 timer_channel_t pwm_channel; in es32f3_pwm_control() local 65 pwm_channel = TIMER_CHANNEL_1; in es32f3_pwm_control() 70 pwm_channel = TIMER_CHANNEL_2; in es32f3_pwm_control() 75 pwm_channel = TIMER_CHANNEL_3; in es32f3_pwm_control() 80 pwm_channel = TIMER_CHANNEL_4; in es32f3_pwm_control() 89 ald_timer_pwm_start(timer_initstruct, pwm_channel); in es32f3_pwm_control() 93 ald_timer_pwm_stop(timer_initstruct, pwm_channel); in es32f3_pwm_control() 108 ald_timer_oc_config_channel(timer_initstruct, &tim_ocinit, pwm_channel); in es32f3_pwm_control() 142 pwm_set_duty(timer_initstruct, pwm_channel, cfg->pulse); in es32f3_pwm_control() 147 cfg->pulse = ald_timer_read_capture_value(timer_initstruct, pwm_channel) * 100 / in es32f3_pwm_control()
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/tc/tc_sam_d_r_h/ |
| A D | tc.c | 204 if (config->pwm_channel[0].enabled) { in tc_init() 206 pin_config.mux_position = config->pwm_channel[0].pin_mux; in tc_init() 209 config->pwm_channel[0].pin_out, &pin_config); in tc_init() 213 if (config->pwm_channel[1].enabled) { in tc_init() 215 pin_config.mux_position = config->pwm_channel[1].pin_mux; in tc_init() 218 config->pwm_channel[1].pin_out, &pin_config); in tc_init()
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/tc/ |
| A D | tc.h | 934 struct tc_pwm_channel pwm_channel[NUMBER_OF_COMPARE_CAPTURE_CHANNELS]; member 1101 config->pwm_channel[TC_COMPARE_CAPTURE_CHANNEL_0].enabled = false; in tc_get_config_defaults() 1102 config->pwm_channel[TC_COMPARE_CAPTURE_CHANNEL_0].pin_out = 0; in tc_get_config_defaults() 1103 config->pwm_channel[TC_COMPARE_CAPTURE_CHANNEL_0].pin_mux = 0; in tc_get_config_defaults() 1105 config->pwm_channel[TC_COMPARE_CAPTURE_CHANNEL_1].enabled = false; in tc_get_config_defaults() 1106 config->pwm_channel[TC_COMPARE_CAPTURE_CHANNEL_1].pin_out = 0; in tc_get_config_defaults() 1107 config->pwm_channel[TC_COMPARE_CAPTURE_CHANNEL_1].pin_mux = 0; in tc_get_config_defaults()
|
| /bsp/samd21/sam_d2x_asflib/sam0/drivers/tc/tc_sam_l_c/ |
| A D | tc.c | 206 if (config->pwm_channel[0].enabled) { in tc_init() 208 pin_config.mux_position = config->pwm_channel[0].pin_mux; in tc_init() 211 config->pwm_channel[0].pin_out, &pin_config); in tc_init() 215 if (config->pwm_channel[1].enabled) { in tc_init() 217 pin_config.mux_position = config->pwm_channel[1].pin_mux; in tc_init() 220 config->pwm_channel[1].pin_out, &pin_config); in tc_init()
|
| /bsp/phytium/board/cus_demo_board/ |
| A D | fio_mux.c | 64 void FIOPadSetPwmMux(u32 pwm_id, u32 pwm_channel) in FIOPadSetPwmMux() argument
|
| A D | fio_mux.h | 15 void FIOPadSetPwmMux(u32 pwm_id, u32 pwm_channel);
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/lcd/ |
| A D | lcd_source.h | 79 s32 sunxi_lcd_pwm_enable(u32 pwm_channel); 85 s32 sunxi_lcd_pwm_disable(u32 pwm_channel);
|