aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2015-03-03 00:37:25 -0800
committerbnewbold <bnewbold@robocracy.org>2015-03-03 00:37:25 -0800
commit857dc1b540a3581ec8af61773d4024c22a55165b (patch)
tree5d4db9c92f7c59a3345e37aeab38387fcfcdfd87 /wirish
parent2c2e9ff751d46eac3d9564dfe91ec7734e75e07a (diff)
downloadlibrambutan-857dc1b540a3581ec8af61773d4024c22a55165b.tar.gz
librambutan-857dc1b540a3581ec8af61773d4024c22a55165b.zip
st_stm32f401cdiscovery: USART3 pins; clearer pin references
Diffstat (limited to 'wirish')
-rw-r--r--wirish/boards/st_stm32f401cdiscovery/include/board/board.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/wirish/boards/st_stm32f401cdiscovery/include/board/board.h b/wirish/boards/st_stm32f401cdiscovery/include/board/board.h
index a30bd3c..d93bc30 100644
--- a/wirish/boards/st_stm32f401cdiscovery/include/board/board.h
+++ b/wirish/boards/st_stm32f401cdiscovery/include/board/board.h
@@ -64,23 +64,21 @@
#define BOARD_NR_USARTS 3
/* USART pin numbers. */
-#define BOARD_USART1_TX_PIN 9
-#define BOARD_USART1_RX_PIN 10
-#define BOARD_USART2_TX_PIN 2
-#define BOARD_USART2_RX_PIN 3
-/* FIXME:
-#define BOARD_USART3_TX_PIN -1
-#define BOARD_USART3_RX_PIN -1
-*/
+#define BOARD_USART1_TX_PIN PA9
+#define BOARD_USART1_RX_PIN PA10
+#define BOARD_USART2_TX_PIN PA2
+#define BOARD_USART2_RX_PIN PA3
+#define BOARD_USART3_TX_PIN PB10
+#define BOARD_USART3_RX_PIN PB11
/* Number of SPI ports broken out to headers. */
#define BOARD_NR_SPI 2
/* SPI pin numbers. */
-#define BOARD_SPI1_NSS_PIN 4 // PA4
-#define BOARD_SPI1_MOSI_PIN 7 // PA7
-#define BOARD_SPI1_MISO_PIN 6 // PA6
-#define BOARD_SPI1_SCK_PIN 5 // PA5
+#define BOARD_SPI1_NSS_PIN PA4
+#define BOARD_SPI1_MOSI_PIN PA7
+#define BOARD_SPI1_MISO_PIN PA6
+#define BOARD_SPI1_SCK_PIN PA5
#define BOARD_SPI2_NSS_PIN 28
#define BOARD_SPI2_MOSI_PIN 31