Parcourir la source

[bsp] fix bxcan.c inline bug

flyingcys il y a 8 ans
Parent
commit
35e59002ef
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      bsp/stm32f10x/drivers/bxcan.c

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

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