aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-06-06 11:50:07 -0400
committerPaul Selkirk <paul@psgd.org>2016-06-06 11:50:07 -0400
commit77875805e069f19e8e3a2e120e8ba9d9e288905a (patch)
tree3f314ebe229800584a859e9577ae6a45cc131b40
parent1899e233a4e6aa75f93a42ee5c3249896be91485 (diff)
Restore LED definitions for dev-bridge board.
-rw-r--r--stm-led.h10
1 files changed, 9 insertions, 1 deletions
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)