summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/stm32/led.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/stm32/led.c b/ports/stm32/led.c
index 923171884..adcb240cc 100644
--- a/ports/stm32/led.c
+++ b/ports/stm32/led.c
@@ -141,9 +141,11 @@ STATIC void led_pwm_init(int led) {
case 2:
__TIM2_CLK_ENABLE();
break;
+ #if defined(TIM3)
case 3:
__TIM3_CLK_ENABLE();
break;
+ #endif
default:
assert(0);
}