mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-04 12:34:08 -06:00
stm32: Add support for spi6 on stm32f42x chips
Signed-off-by: Russell Cloran <rcloran@gmail.com>
This commit is contained in:
parent
5001983d34
commit
f2b27d17b7
1 changed files with 7 additions and 0 deletions
|
@ -42,6 +42,10 @@ DECL_CONSTANT_STR("BUS_PINS_spi1a", "PB4,PB5,PB3");
|
|||
DECL_ENUMERATION("spi_bus", "spi2b", 6);
|
||||
DECL_CONSTANT_STR("BUS_PINS_spi2b", "PI2,PI3,PI1");
|
||||
#endif
|
||||
#ifdef SPI6
|
||||
DECL_ENUMERATION("spi_bus", "spi6_PG12_PG14_PG13", 7);
|
||||
DECL_CONSTANT_STR("BUS_PINS_spi6_PG12_PG14_PG13", "PG12,PG14,PG13");
|
||||
#endif
|
||||
#endif
|
||||
#if CONFIG_MACH_STM32G0B1
|
||||
DECL_ENUMERATION("spi_bus", "spi2_PB2_PB11_PB10", 5);
|
||||
|
@ -76,6 +80,9 @@ static const struct spi_info spi_bus[] = {
|
|||
#elif defined(GPIOI)
|
||||
{ SPI2, GPIO('I', 2), GPIO('I', 3), GPIO('I', 1), GPIO_FUNCTION_ALL(5) },
|
||||
#endif
|
||||
#ifdef SPI6
|
||||
{ SPI6, GPIO('G', 12), GPIO('G', 14), GPIO('G', 13), SPI_FUNCTION_ALL}
|
||||
#endif
|
||||
#endif
|
||||
#if CONFIG_MACH_STM32G0B1
|
||||
{ SPI2, GPIO('B', 2), GPIO('B', 11), GPIO('B', 10),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue