aboutsummaryrefslogtreecommitdiffstats
path: root/boards/GENERIC_SPC560P/board.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-26 15:31:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-26 15:31:12 +0000
commita8f264a8188aa0a3995f762ce0742bfd3521f574 (patch)
treeb6e69208fd7c053d0b8ffebdae82a0fca48cc036 /boards/GENERIC_SPC560P/board.h
parent12af66627696ae5f8191a7d07f4e9e991aeda4ac (diff)
downloadChibiOS-a8f264a8188aa0a3995f762ce0742bfd3521f574.tar.gz
ChibiOS-a8f264a8188aa0a3995f762ce0742bfd3521f574.tar.bz2
ChibiOS-a8f264a8188aa0a3995f762ce0742bfd3521f574.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4713 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/GENERIC_SPC560P/board.h')
-rw-r--r--boards/GENERIC_SPC560P/board.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/boards/GENERIC_SPC560P/board.h b/boards/GENERIC_SPC560P/board.h
index b3e74044f..6cbc6213a 100644
--- a/boards/GENERIC_SPC560P/board.h
+++ b/boards/GENERIC_SPC560P/board.h
@@ -41,18 +41,20 @@
/*
* I/O definitions.
*/
-#define GPIO_SCI_A_TX 89
-#define GPIO_SCI_A_RX 90
+#define PD_BUTTON1 0
+#define PD_BUTTON2 1
+#define PD_BUTTON3 2
+#define PD_BUTTON4 3
-#define GPIO_BUTTON1 179
-#define GPIO_BUTTON2 181
-#define GPIO_BUTTON3 183
-#define GPIO_BUTTON4 187
+#define PD_LED1 4
+#define PD_LED2 5
+#define PD_LED3 6
+#define PD_LED4 7
-#define GPIO_LED1 188
-#define GPIO_LED2 189
-#define GPIO_LED3 190
-#define GPIO_LED4 191
+/*
+ * Support macros.
+ */
+#define PCR(port, pin) (((port) * 16) + (pin))
#if !defined(_FROM_ASM_)
#ifdef __cplusplus