4 #include <twr_system.h>
35 TWR_PWM_TIM2_P0_P1_P2_P3,
36 TWR_PWM_TIM3_P6_P7_P8,
@ TWR_GPIO_P12
GPIO channel P12, MISO.
@ TWR_GPIO_P1
GPIO channel P1, A1, RXD0.
@ TWR_GPIO_P8
GPIO channel P8.
@ TWR_GPIO_P3
GPIO channel P3, A3, RXD1.
@ TWR_GPIO_P6
GPIO channel P6.
@ TWR_GPIO_P2
GPIO channel P2, A2, TXD1.
@ TWR_GPIO_P0
GPIO channel P0, A0, TXD0.
@ TWR_GPIO_P14
GPIO channel P14, SCLK.
@ TWR_GPIO_P7
GPIO channel P7, A6.
void twr_pwm_enable(twr_pwm_channel_t channel)
Enable PWM output on GPIO pin.
void twr_pwm_set(twr_pwm_channel_t channel, uint16_t pwm_value)
Set PWM value for GPIO pin.
void twr_pwm_tim_configure(twr_pwm_tim_t tim, uint32_t resolution_us, uint32_t period_cycles)
Reconfigure TIM3.
void twr_pwm_init(twr_pwm_channel_t channel)
Initialize PWM timers based on GPIO pin.
twr_pwm_channel_t
PWM channels.
void twr_pwm_disable(twr_pwm_channel_t channel)
Disable PWM output on GPIO pin.