aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2015-03-01 14:59:07 -0800
committerbnewbold <bnewbold@robocracy.org>2015-03-01 21:42:26 -0800
commit87b12ce67de1a5589d5b3a753bac82a39161c36d (patch)
tree8e428a8ee7bfafeb033056263415b59ac39c1a6e /wirish
parent4cb5b2ceb9f540db0d0a18c1fb503d6303f1dd91 (diff)
downloadlibrambutan-87b12ce67de1a5589d5b3a753bac82a39161c36d.tar.gz
librambutan-87b12ce67de1a5589d5b3a753bac82a39161c36d.zip
st_stm32f401c_discovery: fix SPI pin numbers
Diffstat (limited to 'wirish')
-rw-r--r--wirish/boards/st_stm32f401cdiscovery/include/board/board.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/wirish/boards/st_stm32f401cdiscovery/include/board/board.h b/wirish/boards/st_stm32f401cdiscovery/include/board/board.h
index 119f111..3d4b44c 100644
--- a/wirish/boards/st_stm32f401cdiscovery/include/board/board.h
+++ b/wirish/boards/st_stm32f401cdiscovery/include/board/board.h
@@ -55,14 +55,15 @@
#define BOARD_NR_SPI 2
/* SPI pin numbers. */
-#define BOARD_SPI1_NSS_PIN 10
-#define BOARD_SPI1_MOSI_PIN 11
-#define BOARD_SPI1_MISO_PIN 12
-#define BOARD_SPI1_SCK_PIN 13
-#define BOARD_SPI2_NSS_PIN 31
-#define BOARD_SPI2_MOSI_PIN 34
-#define BOARD_SPI2_MISO_PIN 33
-#define BOARD_SPI2_SCK_PIN 32
+#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_SPI2_NSS_PIN 28
+#define BOARD_SPI2_MOSI_PIN 31
+#define BOARD_SPI2_MISO_PIN 30
+#define BOARD_SPI2_SCK_PIN 29
/* Total number of GPIO pins that are broken out to headers and
* intended for use. This includes pins like the LED, button, and