diff options
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_eth.h')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_eth.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_eth.h b/nuttx/arch/arm/src/stm32/stm32_eth.h index e96557875..52e944689 100644 --- a/nuttx/arch/arm/src/stm32/stm32_eth.h +++ b/nuttx/arch/arm/src/stm32/stm32_eth.h @@ -44,6 +44,10 @@ #include "chip.h" +#if STM32_NETHERNET > 1 + +#include "chip/stm32_eth.h" + #ifndef __ASSEMBLY__ /************************************************************************************ @@ -77,9 +81,7 @@ extern "C" { * ************************************************************************************/ -#if STM32_NTHERNET > 1 EXTERN int stm32_ethinitialize(int intf); -#endif #undef EXTERN #if defined(__cplusplus) @@ -87,5 +89,6 @@ EXTERN int stm32_ethinitialize(int intf); #endif #endif /* __ASSEMBLY__ */ +#endif /* STM32_NETHERNET > 1 */ #endif /* __ARCH_ARM_SRC_STM32_STM32_ETH_H */ |