Skip to content

Commit

Permalink
boards: arm: 96b_wistrio: Use STM32_OSPEEDR_VERY_HIGH_SPEED for SPI1_SCK
Browse files Browse the repository at this point in the history
Add Add STM32_OSPEEDR_VERY_HIGH_SPEED flag for SPI1_SCK to function
properly. This is needed for the proper communication with the LoRa
modem. Without this flag, the received data is mangled when burst
read is performed.

Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
  • Loading branch information
Mani-Sadhasivam authored and carlescufi committed Dec 21, 2019
1 parent c8d1261 commit ad34e48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boards/arm/96b_wistrio/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PB9, STM32L1X_PINMUX_FUNC_PB9_I2C1_SDA},
#endif /* CONFIG_I2C_1 */
#ifdef CONFIG_SPI_1
{STM32_PIN_PA5, STM32L1X_PINMUX_FUNC_PA5_SPI1_SCK},
{STM32_PIN_PA5, STM32L1X_PINMUX_FUNC_PA5_SPI1_SCK |
STM32_OSPEEDR_VERY_HIGH_SPEED},
{STM32_PIN_PA6, STM32L1X_PINMUX_FUNC_PA6_SPI1_MISO},
{STM32_PIN_PA7, STM32L1X_PINMUX_FUNC_PA7_SPI1_MOSI},
#endif /* CONFIG_SPI_1 */
Expand Down

0 comments on commit ad34e48

Please sign in to comment.