configs/stm32f429i-disco: Separate SPI4 from MTD init. I was trying to attach a non-MTD peripheral to an STM32F429I Discovery Board's SPI4 port and was hitting compilation problems, since CONFIG_MTD and thus 'struct mtd_geometry_s' was not defined. This patch separates SPI4 initialization logic from MTD initialization logic.
This commit is contained in:
parent
873ffd13bc
commit
cbd8fa31d1
@ -103,6 +103,8 @@ int stm32_bringup(void)
|
|||||||
{
|
{
|
||||||
#if defined(CONFIG_STM32_SPI4)
|
#if defined(CONFIG_STM32_SPI4)
|
||||||
FAR struct spi_dev_s *spi;
|
FAR struct spi_dev_s *spi;
|
||||||
|
#endif
|
||||||
|
#if defined(CONFIG_MTD)
|
||||||
FAR struct mtd_dev_s *mtd;
|
FAR struct mtd_dev_s *mtd;
|
||||||
FAR struct mtd_geometry_s geo;
|
FAR struct mtd_geometry_s geo;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user