t
Fork of mbed-dev by
Diff: targets/hal/TARGET_STM/TARGET_STM32F4/pwmout_api.c
- Revision:
- 19:112740acecfa
- Parent:
- 0:9b334a45a8ff
- Child:
- 23:ee8ca7052b3c
diff -r da299f395b9e -r 112740acecfa targets/hal/TARGET_STM/TARGET_STM32F4/pwmout_api.c --- a/targets/hal/TARGET_STM/TARGET_STM32F4/pwmout_api.c Mon Nov 09 13:30:11 2015 +0000 +++ b/targets/hal/TARGET_STM/TARGET_STM32F4/pwmout_api.c Tue Nov 10 09:30:11 2015 +0000 @@ -55,6 +55,9 @@ if (obj->pwm == PWM_2) __HAL_RCC_TIM2_CLK_ENABLE(); if (obj->pwm == PWM_3) __HAL_RCC_TIM3_CLK_ENABLE(); if (obj->pwm == PWM_4) __HAL_RCC_TIM4_CLK_ENABLE(); +#if defined(TIM5_BASE) + if (obj->pwm == PWM_5) __HAL_RCC_TIM5_CLK_ENABLE(); +#endif #if defined(TIM8_BASE) if (obj->pwm == PWM_8) __HAL_RCC_TIM8_CLK_ENABLE(); #endif