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:
parent
50512e8a8c
commit
5fa0656a9a
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user