From a92a025e5f0f2bc9636d70107fcd4b92446f1cfe Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 15 Nov 2018 17:14:49 +0000 Subject: [PATCH] Merged in david_s5/nuttx/master_f4_446_469_GPIO (pull request #760) stm32:STM32F446 & STM32F469 correct PC1 SPI assignments Approved-by: GregoryN --- arch/arm/src/stm32/chip/stm32f40xxx_pinmap.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32/chip/stm32f40xxx_pinmap.h b/arch/arm/src/stm32/chip/stm32f40xxx_pinmap.h index 5fbcb8a8566..a4bab5de833 100644 --- a/arch/arm/src/stm32/chip/stm32f40xxx_pinmap.h +++ b/arch/arm/src/stm32/chip/stm32f40xxx_pinmap.h @@ -610,10 +610,13 @@ # define GPIO_SPI2_SCK_4 (GPIO_ALT|GPIO_AF5|GPIO_SPEED_50MHz|GPIO_PORTD|GPIO_PIN3) #endif #if defined(CONFIG_STM32_STM32F446) || defined(CONFIG_STM32_STM32F469) -# define GPIO_SPI2_MOSI_4 (GPIO_ALT|GPIO_AF5|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN1) # define GPIO_SPI2_SCK_5 (GPIO_ALT|GPIO_AF5|GPIO_SPEED_50MHz|GPIO_PORTA|GPIO_PIN9) #endif +#if defined(CONFIG_STM32_STM32F469) +# define GPIO_SPI2_MOSI_4 (GPIO_ALT|GPIO_AF5|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN1) +#endif #if defined(CONFIG_STM32_STM32F446) +# define GPIO_SPI2_MOSI_4 (GPIO_ALT|GPIO_AF7|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN1) # define GPIO_SPI2_NSS_4 (GPIO_ALT|GPIO_AF7|GPIO_SPEED_50MHz|GPIO_PORTB|GPIO_PIN4) # define GPIO_SPI2_NSS_5 (GPIO_ALT|GPIO_AF7|GPIO_SPEED_50MHz|GPIO_PORTD|GPIO_PIN1) # define GPIO_SPI2_SCK_6 (GPIO_ALT|GPIO_AF5|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN7) @@ -634,7 +637,7 @@ #if defined(CONFIG_STM32_STM32F446) # define GPIO_SPI3_MOSI_4 (GPIO_ALT|GPIO_AF7|GPIO_SPEED_50MHz|GPIO_PORTB|GPIO_PIN0) # define GPIO_SPI3_MOSI_5 (GPIO_ALT|GPIO_AF7|GPIO_SPEED_50MHz|GPIO_PORTB|GPIO_PIN2) -# define GPIO_SPI3_MOSI_6 (GPIO_ALT|GPIO_AF7|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN1) +# define GPIO_SPI3_MOSI_6 (GPIO_ALT|GPIO_AF5|GPIO_SPEED_50MHz|GPIO_PORTC|GPIO_PIN1) # define GPIO_SPI3_MOSI_7 (GPIO_ALT|GPIO_AF6|GPIO_SPEED_50MHz|GPIO_PORTD|GPIO_PIN0) #endif