From 1e1e10693c32869d36098274c3da7a531209d883 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 24 Jul 2012 19:09:05 -0400 Subject: 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 --- wirish/boards/maple/include/board/board.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'wirish/boards/maple/include') 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 -- cgit v1.2.3