summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflyingcys <[email protected]>2017-06-23 23:23:58 +0800
committerflyingcys <[email protected]>2017-06-23 23:23:58 +0800
commit35e59002efb32ef4eda272a982ecae30636edc90 (patch)
treef6ba54df91fd3d67984ffca06847e49b28154777
parent8437c049e63ccf57dc64d676fae2c8e40319186f (diff)
[bsp] fix bxcan.c inline bug
-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