Skip to content

Commit

Permalink
This commit introduces SPI6 hardware support for PB3-PB5 using the sp…
Browse files Browse the repository at this point in the history
…i6a configuration
  • Loading branch information
aam335 committed Dec 9, 2024
1 parent b7233d1 commit 9ce1f01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stm32/stm32h7_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ DECL_CONSTANT_STR("BUS_PINS_spi5a", "PH7,PF11,PH6");
#ifdef SPI6
DECL_ENUMERATION("spi_bus", "spi6", __COUNTER__);
DECL_CONSTANT_STR("BUS_PINS_spi6", "PG12,PG14,PG13");
DECL_ENUMERATION("spi_bus", "spi6a", __COUNTER__);
DECL_CONSTANT_STR("BUS_PINS_spi6a", "PB3,PB4,PB5");
#endif


Expand All @@ -76,6 +78,7 @@ static const struct spi_info spi_bus[] = {
#endif
#ifdef SPI6
{ SPI6, GPIO('G', 12), GPIO('G', 14), GPIO('G', 13), GPIO_FUNCTION(5)},
{ SPI6, GPIO('B', 3), GPIO('B', 4), GPIO('B', 5), GPIO_FUNCTION(8)},
#endif
};

Expand Down

0 comments on commit 9ce1f01

Please sign in to comment.