Skip to content

Commit 062962a

Browse files
committed
[NUCLEO_L011K4] Update HAL API
1 parent f38c5e4 commit 062962a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32L0/pwmout_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ void pwmout_init(pwmout_t* obj, PinName pin)
5656
if (obj->pwm == PWM_3) __TIM3_CLK_ENABLE();
5757
#endif
5858
if (obj->pwm == PWM_21) __TIM21_CLK_ENABLE();
59+
#if defined(TIM22_BASE)
5960
if (obj->pwm == PWM_22) __TIM22_CLK_ENABLE();
61+
#endif
6062

6163
// Configure GPIO
6264
pinmap_pinout(pin, PinMap_PWM);

0 commit comments

Comments
 (0)