Browse Source

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

bupleurum 8 years ago
parent
commit
e84bad92ee
1 changed files with 4 additions and 0 deletions
  1. 4 0
      bsp/stm32f10x/drivers/bxcan.c

+ 4 - 0
bsp/stm32f10x/drivers/bxcan.c

@@ -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