mirror of
https://github.com/apache/nuttx.git
synced 2026-09-02 07:03:04 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,8 @@ int stm32_bringup(void)
|
|||
{
|
||||
#if defined(CONFIG_STM32_SPI4)
|
||||
FAR struct spi_dev_s *spi;
|
||||
#endif
|
||||
#if defined(CONFIG_MTD)
|
||||
FAR struct mtd_dev_s *mtd;
|
||||
FAR struct mtd_geometry_s geo;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue