mirror of https://github.com/ARMmbed/mbed-os.git
fixed bug with pwm5
parent
05ee7852bd
commit
c90cbb7663
|
@ -64,7 +64,7 @@ typedef enum {
|
|||
|
||||
typedef enum {
|
||||
PWM_1 = (int)TIM1_BASE,
|
||||
PWM_5 = (int)TIM5_BASE,
|
||||
PWM_9 = (int)TIM9_BASE,
|
||||
PWM_11 = (int)TIM11_BASE
|
||||
} PWMName;
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ void pwmout_period_us(pwmout_t* obj, int us)
|
|||
#if defined(TIM4_BASE)
|
||||
case PWM_4:
|
||||
#endif
|
||||
#if defined(TIM5_BASE)
|
||||
#if defined(TIM5_BASE) && defined(PWM_5)
|
||||
case PWM_5:
|
||||
#endif
|
||||
#if defined(TIM12_BASE)
|
||||
|
|
Loading…
Reference in New Issue