diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-10-15 23:16:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-10-15 23:16:14 +0000 |
commit | 9328ea4048154b6e2392e0102cbbb33712fa0fe6 (patch) | |
tree | 47e4c87128d5218aa0d61bdb6d1bb7a34f12f250 /nuttx/arch/arm/src/stm32/stm32_spi.h | |
parent | c0b9d8a745841fb1d713a63182230b491369f219 (diff) | |
download | px4-nuttx-9328ea4048154b6e2392e0102cbbb33712fa0fe6.tar.gz px4-nuttx-9328ea4048154b6e2392e0102cbbb33712fa0fe6.tar.bz2 px4-nuttx-9328ea4048154b6e2392e0102cbbb33712fa0fe6.zip |
Fix SPI compilation errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2139 42af7a65-404d-4744-a932-0658087f49c3
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 */ |