diff --git a/arch/avr/src/avr/avr.h b/arch/avr/src/avr/avr.h index 431c9250675..0326d6d8488 100644 --- a/arch/avr/src/avr/avr.h +++ b/arch/avr/src/avr/avr.h @@ -95,6 +95,8 @@ extern uint16_t g_idle_topstack; #ifndef __ASSEMBLY__ +struct spi_dev_s; /* Forward references */ + /************************************************************************************ * Name: up_copystate * @@ -150,7 +152,6 @@ uint8_t *up_doirq(uint8_t irq, uint8_t *regs); * ****************************************************************************/ -struct spi_dev_s; /* Forward references */ FAR struct spi_dev_s *avr_spibus_initialize(int port); /************************************************************************************ diff --git a/arch/x86/src/qemu/qemu.h b/arch/x86/src/qemu/qemu.h index 3a073376dc3..561c68da442 100644 --- a/arch/x86/src/qemu/qemu.h +++ b/arch/x86/src/qemu/qemu.h @@ -83,6 +83,8 @@ extern "C" * Public Function Prototypes ************************************************************************************/ +struct spi_dev_s; /* Forward reference */ + /************************************************************************************ * Name: i486_clockconfig * @@ -207,7 +209,6 @@ int i486_dumpgpio(uint16_t pinset, const char *msg); * ****************************************************************************/ -struct spi_dev_s; /* Forward reference */ FAR struct spi_dev_s *i486_spibus_initialize(int port); /************************************************************************************ @@ -239,8 +240,6 @@ FAR struct spi_dev_s *i486_spibus_initialize(int port); * ************************************************************************************/ -struct spi_dev_s; - #ifdef CONFIG_I486_SPI void i486_spiselect(FAR struct spi_dev_s *dev, uint32_t devid, bool selected); uint8_t i486_spistatus(FAR struct spi_dev_s *dev, uint32_t devid); @@ -265,7 +264,6 @@ int i486_spicmddata(FAR struct spi_dev_s *dev, uint32_t devid, bool cmd); * ****************************************************************************/ -struct spi_dev_s; #ifdef CONFIG_I486_SPI void spi_flush(FAR struct spi_dev_s *dev); #endif