From e84bad92ee52282c1d6231bc494950a024955e49 Mon Sep 17 00:00:00 2001 From: bupleurum Date: Fri, 11 Aug 2017 18:35:46 +0800 Subject: [PATCH] [bsp] Prevent compilation errors in bxcan.c when using STM32F10X_LD_VL,STM32F10X_MD_VL,STM32F10X_HD_VL incorrectly choose to use the RT_USING_CAN. --- bsp/stm32f10x/drivers/bxcan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bsp/stm32f10x/drivers/bxcan.c b/bsp/stm32f10x/drivers/bxcan.c index 29c1eaeac..876848df4 100644 --- a/bsp/stm32f10x/drivers/bxcan.c +++ b/bsp/stm32f10x/drivers/bxcan.c @@ -16,6 +16,10 @@ #include #include +#if (defined (STM32F10X_LD_VL)) || (defined (STM32F10X_MD_VL)) || (defined (STM32F10X_HD_VL)) +#undef RT_USING_CAN +#endif + #ifdef RT_USING_COMPONENTS_INIT #include #endif -- GitLab