diff options
| author | bupleurum <[email protected]> | 2017-08-11 18:35:46 +0800 |
|---|---|---|
| committer | bupleurum <[email protected]> | 2017-08-11 18:35:46 +0800 |
| commit | e84bad92ee52282c1d6231bc494950a024955e49 (patch) | |
| tree | b5c79fe385cecf470fc2177d172a6eda61091aa7 /bsp | |
| parent | 2569f66df86f9a8ab1523fe933032102bcfda832 (diff) | |
[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.
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/stm32f10x/drivers/bxcan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bsp/stm32f10x/drivers/bxcan.c b/bsp/stm32f10x/drivers/bxcan.c index 29c1eaeac7..876848df4c 100644 --- a/bsp/stm32f10x/drivers/bxcan.c +++ b/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 |
