1.rt-thread settings ->组件->设备驱动程序->使用PWM设备驱动程序;
2.rt-thread settings ->组件->示例->rt thread设备驱动示例->pwm device;
3.board.h->
#define BSP_USING_PWM3
#define BSP_USING_PWM3_CH1
#define BSP_USING_PWM3_CH2
4.stm32f1xx_hal_conf.h->
#define HAL_TIM_MODULE_ENABLED
#define HAL_PWR_MODULE_ENABLED
5.board.c->
void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_base)
void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle)
void HAL_MspInit(void)
标签:rt,HAL,thread,void,TIM,pwm,define From: https://www.cnblogs.com/liusheldon/p/17496351.html