This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 23443d550 spi_stm32: Add missing pin configuration for STM32H5
23443d550 is described below
commit 23443d55049e8faf533f3cc9b44b0fae1f1e8307
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed Oct 7 12:36:43 2026 +0200
spi_stm32: Add missing pin configuration for STM32H5
This adds several additional pin definitions
that can be used with STM32H5 devices.
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
hw/bus/drivers/spi_stm32/src/spi_stm32.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/bus/drivers/spi_stm32/src/spi_stm32.c
b/hw/bus/drivers/spi_stm32/src/spi_stm32.c
index 1964fdfef..9e3270502 100644
--- a/hw/bus/drivers/spi_stm32/src/spi_stm32.c
+++ b/hw/bus/drivers/spi_stm32/src/spi_stm32.c
@@ -201,12 +201,14 @@ static const struct spi_pin_def spi_pin[] = {
#if MYNEWT_VAL(SPI_0_MASTER)
SPI_PIN_DEF(0, MCU_GPIO_PORTA(5), SPI_SCK, SPI_AF_5),
SPI_PIN_DEF(0, MCU_GPIO_PORTB(3), SPI_SCK, SPI_AF_5),
+ SPI_PIN_DEF(0, MCU_GPIO_PORTG(11), SPI_SCK, SPI_AF_5),
SPI_PIN_DEF(0, MCU_GPIO_PORTA(7), SPI_MOSI, SPI_AF_5),
SPI_PIN_DEF(0, MCU_GPIO_PORTB(5), SPI_MOSI, SPI_AF_5),
SPI_PIN_DEF(0, MCU_GPIO_PORTA(6), SPI_MISO, SPI_AF_5),
SPI_PIN_DEF(0, MCU_GPIO_PORTB(4), SPI_MISO, SPI_AF_5),
+ SPI_PIN_DEF(0, MCU_GPIO_PORTG(9), SPI_MISO, SPI_AF_5),
#endif
#if MYNEWT_VAL(SPI_1_MASTER)
SPI_PIN_DEF(1, MCU_GPIO_PORTB(10), SPI_SCK, SPI_AF_5),
@@ -218,6 +220,7 @@ static const struct spi_pin_def spi_pin[] = {
SPI_PIN_DEF(1, MCU_GPIO_PORTB(15), SPI_MOSI, SPI_AF_5),
SPI_PIN_DEF(1, MCU_GPIO_PORTC(3), SPI_MOSI, SPI_AF_5),
SPI_PIN_DEF(1, MCU_GPIO_PORTI(3), SPI_MOSI, SPI_AF_5),
+ SPI_PIN_DEF(1, MCU_GPIO_PORTG(1), SPI_MOSI, SPI_AF_7),
SPI_PIN_DEF(1, MCU_GPIO_PORTB(14), SPI_MISO, SPI_AF_5),
SPI_PIN_DEF(1, MCU_GPIO_PORTC(2), SPI_MISO, SPI_AF_5),