mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user