fixed bug with pwm5

pull/1412/head
Wojciech Gorniak 2015-10-30 16:13:12 +01:00
parent 05ee7852bd
commit c90cbb7663
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)