Skip to content

Commit 0285cb2

Browse files
Jim Lipseydpgeorge
Jim Lipsey
authored andcommitted
stm32/boards/ARDUINO_PORTENTA_H7: Add pin configuration for SPI1.
Currently, only the processor's SPI2 bus is enabled (though the related pins are labeled SPI1 in the Portenta H7 documentation). This commit enables the processor's SPI1 bus, which is accessible via the board's high-density connectors. Signed-off-by: Jim Lipsey <[email protected]>
1 parent 457f2cc commit 0285cb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ports/stm32/boards/ARDUINO_PORTENTA_H7/mpconfigboard.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ extern struct _spi_bdev_t spi_bdev;
170170
#define MICROPY_HW_I2C3_SCL (pin_H7)
171171
#define MICROPY_HW_I2C3_SDA (pin_H8)
172172

173-
// SPI
173+
// SPI buses
174+
#define MICROPY_HW_SPI1_NSS (pin_C13)
175+
#define MICROPY_HW_SPI1_SCK (pin_B3)
176+
#define MICROPY_HW_SPI1_MISO (pin_B4)
177+
#define MICROPY_HW_SPI1_MOSI (pin_D7)
178+
174179
#define MICROPY_HW_SPI2_NSS (pin_I0)
175180
#define MICROPY_HW_SPI2_SCK (pin_I1)
176181
#define MICROPY_HW_SPI2_MISO (pin_C2)

0 commit comments

Comments
 (0)