以stm32为例,脉冲一般在cubemx里面配置以后,Kconfig里面大概这样
menuconfig BSP_USING_PWM
bool "enable pwm"
default n
select RT_USING_PWM
if BSP_USING_PWM
menuconfig BSP_USING_PWM2
bool "enable timer2 output pwm"
default n
if BSP_USING_PWM2
config BSP_USING_PWM2_CH4
bool "enable PWM2 channel4"
default n
endif
endif
如果现在再添加一个timer2的channel3作为输出pwm,是否可行?
非常感谢