Browse Source

[bsp] fix bxcan.c inline bug

flyingcys 8 years ago
parent
commit
35e59002ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      bsp/stm32f10x/drivers/bxcan.c

+ 2 - 0
bsp/stm32f10x/drivers/bxcan.c

@@ -20,7 +20,9 @@
 #endif
 #endif
 #ifdef RT_USING_CAN
 #ifdef RT_USING_CAN
 
 
+#ifdef __CC_ARM
 #define inline __inline
 #define inline __inline
+#endif
 #ifndef STM32F10X_CL
 #ifndef STM32F10X_CL
 #define BX_CAN_FMRNUMBER 14
 #define BX_CAN_FMRNUMBER 14
 #define BX_CAN2_FMRSTART 7
 #define BX_CAN2_FMRSTART 7