4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 11:53:53 +08:00

[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.

This commit is contained in:
bupleurum 2017-08-11 18:35:46 +08:00
parent 2569f66df8
commit e84bad92ee

View File

@ -16,6 +16,10 @@
#include <board.h>
#include <bxcan.h>
#if (defined (STM32F10X_LD_VL)) || (defined (STM32F10X_MD_VL)) || (defined (STM32F10X_HD_VL))
#undef RT_USING_CAN
#endif
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif