Browse Source

[bsp][stm32][stm32f103-fire-arbitrary] 优化代码

杨连钊 6 years ago
parent
commit
0b63d83485

+ 3 - 3
bsp/stm32/libraries/HAL_Drivers/drv_can.h

@@ -10,8 +10,8 @@
  * 2019-01-26     YLZ          redefine `struct stm32_drv_can` add member `Rx1Message`
  * 2019-02-19     YLZ          port to BSP [stm32]
  */
-#ifndef __CAN_H__
-#define __CAN_H__
+#ifndef __DRV_CAN_H__
+#define __DRV_CAN_H__
 #include "board.h"
 #include <rtdevice.h>
 #include <rthw.h>
@@ -49,4 +49,4 @@ extern int rt_hw_can_init(void);
 #ifdef __cplusplus
  }
 #endif
-#endif /*__CAN_H__ */
+#endif /*__DRV_CAN_H__ */

+ 1 - 1
bsp/stm32/stm32f103-fire-arbitrary/README.md

@@ -45,7 +45,7 @@
 | 以太网       |     支持     | W5500                                 |
 | 电位器       |     支持     | 使用 ADC1                              |
 | SD卡         |   即将支持   |                                       |
-| CAN          |   即将支持   |                                       |
+| CAN          |     支持     |                                       |
 | SDRAM        |   即将支持   |                                       |
 | WIFI ESP8266 |   即将支持   |                                       |
 | **片上外设** | **支持情况** | **备注**                              |

+ 1 - 3
bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig

@@ -275,9 +275,7 @@ menu "On-chip Peripheral Drivers"
             config BSP_USING_CAN1
                 bool "using CAN1"
                 default n
-        endif
-		
-        if BSP_USING_CAN
+
             config BSP_USING_CAN2
                 bool "using CAN2"
                 default n