summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bsp/stm32f10x/drivers/bxcan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bsp/stm32f10x/drivers/bxcan.c b/bsp/stm32f10x/drivers/bxcan.c
index 73ccb8fc00..5a3ad380d7 100644
--- a/bsp/stm32f10x/drivers/bxcan.c
+++ b/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