Explorar o código

[bsp] fix bxcan.c inline bug

flyingcys %!s(int64=8) %!d(string=hai) anos
pai
achega
35e59002ef
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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