diff options
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_spi.h')
-rwxr-xr-x | nuttx/arch/arm/src/stm32/stm32_spi.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_spi.h b/nuttx/arch/arm/src/stm32/stm32_spi.h index 5b9f047ea..21d95d01d 100755 --- a/nuttx/arch/arm/src/stm32/stm32_spi.h +++ b/nuttx/arch/arm/src/stm32/stm32_spi.h @@ -134,8 +134,25 @@ * Public Data ************************************************************************************/ +#ifndef __ASSEMBLY__ + +#undef EXTERN +#if defined(__cplusplus) +#define EXTERN extern "C" +extern "C" { +#else +#define EXTERN extern +#endif + /************************************************************************************ * Public Functions ************************************************************************************/ +#undef EXTERN +#if defined(__cplusplus) +} +#endif + +#endif /* __ASSEMBLY__ */ + #endif /* __ARCH_ARM_STC_STM32_STM32_SPI_H */ |