From 87b12ce67de1a5589d5b3a753bac82a39161c36d Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 1 Mar 2015 14:59:07 -0800 Subject: st_stm32f401c_discovery: fix SPI pin numbers --- .../boards/st_stm32f401cdiscovery/include/board/board.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'wirish/boards') 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 -- cgit v1.2.3