aboutsummaryrefslogtreecommitdiff
path: root/stm-led.h
diff options
context:
space:
mode:
Diffstat (limited to 'stm-led.h')
-rw-r--r--stm-led.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stm-led.h b/stm-led.h
index 7c20879..e2453e4 100644
--- a/stm-led.h
+++ b/stm-led.h
@@ -43,6 +43,8 @@
#define LED_GREEN GPIO_PIN_5
#define LED_BLUE GPIO_PIN_4
+#define LED_CLK_ENABLE __GPIOK_CLK_ENABLE
+
#define led_on(pin) HAL_GPIO_WritePin(LED_PORT,pin,SET)
#define led_off(pin) HAL_GPIO_WritePin(LED_PORT,pin,RESET)
#define led_toggle(pin) HAL_GPIO_TogglePin(LED_PORT,pin)