aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/native/platform.h
diff options
context:
space:
mode:
authorGareth McMullin2012-06-10 17:08:14 +1200
committerGareth McMullin2012-06-10 17:08:14 +1200
commitacff8d44976c0ffec1821318c73ce8948a19d0d2 (patch)
tree3efade59d8e0cee7c35d78352b1d97360543f7aa /src/platforms/native/platform.h
parent8d190cdbb9c4e4377d0c33424e453c5ac166eed8 (diff)
Made jtagtap.c and swdptap.c STM32 generic.
Diffstat (limited to 'src/platforms/native/platform.h')
-rw-r--r--src/platforms/native/platform.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/platforms/native/platform.h b/src/platforms/native/platform.h
index 56e0b77..c8f5f2b 100644
--- a/src/platforms/native/platform.h
+++ b/src/platforms/native/platform.h
@@ -58,15 +58,25 @@
/* Hardware definitions... */
#define JTAG_PORT GPIOA
+#define TDI_PORT JTAG_PORT
+#define TMS_PORT JTAG_PORT
+#define TCK_PORT JTAG_PORT
+#define TDO_PORT JTAG_PORT
#define TDI_PIN GPIO3
#define TMS_PIN GPIO4
#define TCK_PIN GPIO5
#define TDO_PIN GPIO6
-#define SWDP_PORT JTAG_PORT
+#define SWDIO_PORT JTAG_PORT
+#define SWCLK_PORT JTAG_PORT
#define SWDIO_PIN TMS_PIN
#define SWCLK_PIN TCK_PIN
+#define TRST_PORT GPIOB
+#define TRST_PIN GPIO1
+#define SRST_PORT GPIOA
+#define SRST_PIN GPIO2
+
#define USB_PU_PORT GPIOA
#define USB_PU_PIN GPIO8