diff options
author | bnewbold <bnewbold@robocracy.org> | 2015-03-01 14:59:07 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2015-03-01 21:42:26 -0800 |
commit | 87b12ce67de1a5589d5b3a753bac82a39161c36d (patch) | |
tree | 8e428a8ee7bfafeb033056263415b59ac39c1a6e /wirish/boards/st_stm32f401cdiscovery/include/board | |
parent | 4cb5b2ceb9f540db0d0a18c1fb503d6303f1dd91 (diff) | |
download | librambutan-87b12ce67de1a5589d5b3a753bac82a39161c36d.tar.gz librambutan-87b12ce67de1a5589d5b3a753bac82a39161c36d.zip |
st_stm32f401c_discovery: fix SPI pin numbers
Diffstat (limited to 'wirish/boards/st_stm32f401cdiscovery/include/board')
-rw-r--r-- | wirish/boards/st_stm32f401cdiscovery/include/board/board.h | 17 |
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 |