aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/boards/maple/include/board
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-07-24 19:09:05 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-07-24 19:12:29 -0400
commit1e1e10693c32869d36098274c3da7a531209d883 (patch)
tree72547fa8d7921abd0f7fb69792ff18c1ae3a8b54 /wirish/boards/maple/include/board
parent0fb19ff82b34dd455c1b607b84bd0dd0c5cd0bbe (diff)
downloadlibrambutan-1e1e10693c32869d36098274c3da7a531209d883.tar.gz
librambutan-1e1e10693c32869d36098274c3da7a531209d883.zip
Add pin alias enums to other boards.
Repeat Anton's VLDiscovery trick on the rest of the boards. Leave out st_stm3220g_eval since that's just a teaser to get people to play with F2. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/boards/maple/include/board')
-rw-r--r--wirish/boards/maple/include/board/board.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/wirish/boards/maple/include/board/board.h b/wirish/boards/maple/include/board/board.h
index 72a4282..e675806 100644
--- a/wirish/boards/maple/include/board/board.h
+++ b/wirish/boards/maple/include/board/board.h
@@ -94,4 +94,14 @@
#define BOARD_USB_DISC_DEV GPIOC
#define BOARD_USB_DISC_BIT 12
+/* Pin aliases: these give the GPIO port/bit for each pin as an
+ * enum. These are optional, but recommended. They make it easier to
+ * write code using low-level GPIO functionality. */
+enum {
+ PA3, PA2, PA0, PA1, PB5, PB6, PA8, PA9, PA10, PB7, PA4, PA7, PA6, PA5, PB8,
+ PC0, PC1, PC2, PC3, PC4, PC5, PC13, PC14, PC15, PB9, PD2, PC10, PB0, PB1,
+ PB10, PB11, PB12, PB13, PB14, PB15, PC6, PC7, PC8, PC9, PA13, PA14, PA15,
+ PB3, PB4
+};
+
#endif