diff --git a/src/stm32/spi.c b/src/stm32/spi.c index 8927bd23..cdc57341 100644 --- a/src/stm32/spi.c +++ b/src/stm32/spi.c @@ -20,20 +20,20 @@ DECL_CONSTANT_STR("BUS_PINS_spi2", "PB14,PB15,PB13"); DECL_ENUMERATION("spi_bus", "spi1", 1); DECL_CONSTANT_STR("BUS_PINS_spi1", "PA6,PA7,PA5"); #if CONFIG_MACH_STM32F0 || CONFIG_MACH_STM32F4 -DECL_ENUMERATION("spi_bus", "spi2a", 2); -DECL_CONSTANT_STR("BUS_PINS_spi2a", "PC2,PC3,PB10"); -DECL_ENUMERATION("spi_bus", "spi1a", 3); -DECL_CONSTANT_STR("BUS_PINS_spi1a", "PB4,PB5,PB3"); + DECL_ENUMERATION("spi_bus", "spi2a", 2); + DECL_CONSTANT_STR("BUS_PINS_spi2a", "PC2,PC3,PB10"); + DECL_ENUMERATION("spi_bus", "spi1a", 3); + DECL_CONSTANT_STR("BUS_PINS_spi1a", "PB4,PB5,PB3"); #endif #ifdef SPI3 -DECL_ENUMERATION("spi_bus", "spi3", 4); -DECL_CONSTANT_STR("BUS_PINS_spi3", "PB4,PB5,PB3"); + DECL_ENUMERATION("spi_bus", "spi3", 4); + DECL_CONSTANT_STR("BUS_PINS_spi3", "PB4,PB5,PB3"); #if CONFIG_MACH_STM32F4 -DECL_ENUMERATION("spi_bus", "spi3a", 5); -DECL_CONSTANT_STR("BUS_PINS_spi3a", "PC11,PC12,PC10"); + DECL_ENUMERATION("spi_bus", "spi3a", 5); + DECL_CONSTANT_STR("BUS_PINS_spi3a", "PC11,PC12,PC10"); #ifdef SPI4 -DECL_ENUMERATION("spi_bus", "spi4", 6); -DECL_CONSTANT_STR("BUS_PINS_spi4", "PE13,PE14,PE12"); + DECL_ENUMERATION("spi_bus", "spi4", 6); + DECL_CONSTANT_STR("BUS_PINS_spi4", "PE13,PE14,PE12"); #endif #endif #endif