[Cryptech-Commits] [sw/stm32] 05/11: Restore LED definitions for dev-bridge board.

git at cryptech.is git at cryptech.is
Mon Jun 6 18:32:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository sw/stm32.

commit 77875805e069f19e8e3a2e120e8ba9d9e288905a
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Mon Jun 6 11:50:07 2016 -0400

    Restore LED definitions for dev-bridge board.
---
 stm-led.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/stm-led.h b/stm-led.h
index e2453e4..6693125 100644
--- a/stm-led.h
+++ b/stm-led.h
@@ -37,13 +37,21 @@
 
 #include "stm32f4xx_hal.h"
 
+#ifdef TARGET_CRYPTECH_DEV_BRIDGE
+#define LED_PORT        GPIOJ
+#define LED_RED         GPIO_PIN_1
+#define LED_YELLOW      GPIO_PIN_2
+#define LED_GREEN       GPIO_PIN_3
+#define LED_BLUE        GPIO_PIN_4
+#define LED_CLK_ENABLE  __GPIOJ_CLK_ENABLE
+#else
 #define LED_PORT        GPIOK
 #define LED_RED         GPIO_PIN_7
 #define LED_YELLOW      GPIO_PIN_6
 #define LED_GREEN       GPIO_PIN_5
 #define LED_BLUE        GPIO_PIN_4
-
 #define LED_CLK_ENABLE  __GPIOK_CLK_ENABLE
+#endif
 
 #define led_on(pin)     HAL_GPIO_WritePin(LED_PORT,pin,SET)
 #define led_off(pin)    HAL_GPIO_WritePin(LED_PORT,pin,RESET)



More information about the Commits mailing list