[STM32] Fix nucleo-f401re SPI pinout
This makes all pins part of the same group, it was also working
before, but this makes all pins close to each other on the headers.
diff --git a/hw/bsp/nucleo-f401re/src/hal_bsp.c b/hw/bsp/nucleo-f401re/src/hal_bsp.c
index a623e43..2fecf03 100644
--- a/hw/bsp/nucleo-f401re/src/hal_bsp.c
+++ b/hw/bsp/nucleo-f401re/src/hal_bsp.c
@@ -100,10 +100,10 @@
#if MYNEWT_VAL(SPI_0_SLAVE) || MYNEWT_VAL(SPI_0_MASTER)
struct stm32_hal_spi_cfg spi0_cfg = {
- .ss_pin = MCU_GPIO_PORTA(4), /* PA4 */
- .sck_pin = MCU_GPIO_PORTA(5), /* PA5 */
- .miso_pin = MCU_GPIO_PORTA(6), /* PA6 */
- .mosi_pin = MCU_GPIO_PORTB(5), /* PB5 */
+ .ss_pin = MCU_GPIO_PORTA(4), /* CN8 - A2 */
+ .sck_pin = MCU_GPIO_PORTA(5), /* CN5 - D13 */
+ .miso_pin = MCU_GPIO_PORTA(6), /* CN5 - D12 */
+ .mosi_pin = MCU_GPIO_PORTA(7), /* CN5 - D11 */
.irq_prio = 2
};
#endif