aboutsummaryrefslogtreecommitdiff
path: root/src/stm32/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/platform.h')
-rw-r--r--src/stm32/platform.h49
1 files changed, 17 insertions, 32 deletions
diff --git a/src/stm32/platform.h b/src/stm32/platform.h
index d23d42b..69dc3b4 100644
--- a/src/stm32/platform.h
+++ b/src/stm32/platform.h
@@ -53,38 +53,23 @@
*/
/* Hardware definitions... */
-#ifndef LIGHT
-# define JTAG_PORT GPIOA
-# define TDI_PIN GPIO3
-# define TMS_PIN GPIO4
-# define TCK_PIN GPIO5
-# define TDO_PIN GPIO6
-
-# define SWDP_PORT JTAG_PORT
-# define SWDIO_PIN TMS_PIN
-# define SWCLK_PIN TCK_PIN
-
-# define USB_PU_PORT GPIOA
-# define USB_PU_PIN GPIO8
-
-# define LED_PORT GPIOB
-# define LED_RUN GPIO2
-# define LED_IDLE GPIO10
-# define LED_ERROR GPIO11
-#else
-# define JTAG_PORT GPIOA
-# define TDI_PIN GPIO3
-# define TMS_PIN GPIO2
-# define TCK_PIN GPIO7
-# define TDO_PIN GPIO6
-
-# define SWDP_PORT JTAG_PORT
-# define SWDIO_PIN TMS_PIN
-# define SWCLK_PIN TCK_PIN
-
-# define USB_PU_PORT GPIOA
-# define USB_PU_PIN GPIO15
-#endif
+#define JTAG_PORT GPIOA
+#define TDI_PIN GPIO3
+#define TMS_PIN GPIO4
+#define TCK_PIN GPIO5
+#define TDO_PIN GPIO6
+
+#define SWDP_PORT JTAG_PORT
+#define SWDIO_PIN TMS_PIN
+#define SWCLK_PIN TCK_PIN
+
+#define USB_PU_PORT GPIOA
+#define USB_PU_PIN GPIO8
+
+#define LED_PORT GPIOB
+#define LED_RUN GPIO2
+#define LED_IDLE GPIO10
+#define LED_ERROR GPIO11
#define DEBUG(...)