boards: nucleo_l4r5zi: Correct SPI1 SCK pin setting
The original configuration mentioned, quote; /* SPI1_SCK should output on PA5, but is used for LD2 */ But according the the schematic MB1312 from 7-11-2019 LD2 is on pin PB6 or PB7 (jumper selectable). And PA5 shares LD1 with PC7, but the default jumper settings are that PC7 controls the LD1, and PA5 is not connected to anything but the extension header. Also the DTS file already has the green_led_0 (LD1) on pin PC7, and blue_led_0 (LD2) on pin PB7. So changed pinmux to set PA5 to SPI1 SCK to make Arduino shields work that need SPI1. Signed-off-by: Erwin Rol <erwin@erwinrol.com>
This commit is contained in:
parent
cb91977c48
commit
7219924ee0
2 changed files with 2 additions and 3 deletions
|
@ -178,7 +178,7 @@ Default Zephyr Peripheral Mapping:
|
|||
- I2C_1_SCL : PB6
|
||||
- I2C_1_SDA : PB7
|
||||
- SPI_1_NSS : PA4
|
||||
- SPI_1_SCK : PB3
|
||||
- SPI_1_SCK : PA5
|
||||
- SPI_1_MISO : PA6
|
||||
- SPI_1_MOSI : PA7
|
||||
- SPI_2_NSS : PB12
|
||||
|
|
|
@ -42,8 +42,7 @@ static const struct pin_config pinconf[] = {
|
|||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32L4X_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
/* SPI1_SCK should output on PA5, but is used for LD2 */
|
||||
{STM32_PIN_PB3, STM32L4X_PINMUX_FUNC_PB3_SPI1_SCK},
|
||||
{STM32_PIN_PA5, STM32L4X_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PA6, STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue