4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 10:53:30 +08:00

add PWM1_CONFIG

This commit is contained in:
z14git 2020-04-13 15:28:12 +08:00
parent 50512e8a8c
commit 5fa0656a9a

View File

@ -17,6 +17,17 @@
extern "C" {
#endif
#ifdef BSP_USING_PWM1
#ifndef PWM1_CONFIG
#define PWM1_CONFIG \
{ \
.tim_handle.Instance = TIM1, \
.name = "pwm1", \
.channel = 0 \
}
#endif /* PWM1_CONFIG */
#endif /* BSP_USING_PWM1 */
#ifdef BSP_USING_PWM2
#ifndef PWM2_CONFIG
#define PWM2_CONFIG \