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