Browse Source

[bsp][stm32] sync bsp template file

SummerGift 6 years ago
parent
commit
ea9958a506

+ 1 - 1
bsp/stm32/libraries/templates/stm32f10x/README.md

@@ -28,7 +28,7 @@
 - 常用外设
   - LED:x个,DS0(红色,PB1),DS1(绿色,PB0)
   - 按键:x个,K0(兼具唤醒功能,PA0),K1(PC13)
-- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口、...
+- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口
 - 调试接口,标准 JTAG/SWD
 
 开发板更多详细信息请参考【厂商名】 [xxx开发板介绍](https://xxx)。

+ 0 - 9
bsp/stm32/libraries/templates/stm32f10x/board/board.c

@@ -42,12 +42,3 @@ void SystemClock_Config(void)
     Error_Handler();
   }
 }
-
-void MX_GPIO_Init(void)
-{
-
-  /* GPIO Ports Clock Enable */
-  __HAL_RCC_GPIOD_CLK_ENABLE();
-  __HAL_RCC_GPIOA_CLK_ENABLE();
-
-}

+ 0 - 1
bsp/stm32/libraries/templates/stm32f10x/board/board.h

@@ -33,6 +33,5 @@ extern int __bss_end;
 #define HEAP_END        STM32_SRAM_END
 
 void SystemClock_Config(void);
-void MX_GPIO_Init(void);
 
 #endif /* __BOARD_H__ */

+ 1 - 0
bsp/stm32/libraries/templates/stm32f10x/rtconfig.py

@@ -36,6 +36,7 @@ if PLATFORM == 'gcc':
     CC = PREFIX + 'gcc'
     AS = PREFIX + 'gcc'
     AR = PREFIX + 'ar'
+    CXX = PREFIX + 'g++'
     LINK = PREFIX + 'gcc'
     TARGET_EXT = 'elf'
     SIZE = PREFIX + 'size'

+ 1 - 1
bsp/stm32/libraries/templates/stm32f4xx/README.md

@@ -28,7 +28,7 @@
 - 常用外设
   - LED:x个,DS0(红色,PB1),DS1(绿色,PB0)
   - 按键:x个,K0(兼具唤醒功能,PA0),K1(PC13)
-- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口、...
+- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口
 - 调试接口,标准 JTAG/SWD
 
 开发板更多详细信息请参考【厂商名】 [xxx开发板介绍](https://xxx)。

+ 0 - 9
bsp/stm32/libraries/templates/stm32f4xx/board/board.c

@@ -47,12 +47,3 @@ void SystemClock_Config(void)
     Error_Handler();
   }
 }
-
-void MX_GPIO_Init(void)
-{
-
-  /* GPIO Ports Clock Enable */
-  __HAL_RCC_GPIOH_CLK_ENABLE();
-  __HAL_RCC_GPIOA_CLK_ENABLE();
-
-}

+ 0 - 1
bsp/stm32/libraries/templates/stm32f4xx/board/board.h

@@ -32,7 +32,6 @@ extern int __bss_end;
 #define HEAP_END        STM32_SRAM_END
 
 void SystemClock_Config(void);
-void MX_GPIO_Init(void);
 
 #endif
 

+ 1 - 0
bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py

@@ -36,6 +36,7 @@ if PLATFORM == 'gcc':
     CC = PREFIX + 'gcc'
     AS = PREFIX + 'gcc'
     AR = PREFIX + 'ar'
+    CXX = PREFIX + 'g++'
     LINK = PREFIX + 'gcc'
     TARGET_EXT = 'elf'
     SIZE = PREFIX + 'size'

+ 1 - 1
bsp/stm32/libraries/templates/stm32f7xx/README.md

@@ -28,7 +28,7 @@
 - 常用外设
   - LED:x个,DS0(红色,PB1),DS1(绿色,PB0)
   - 按键:x个,K0(兼具唤醒功能,PA0),K1(PC13)
-- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口、...
+- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口
 - 调试接口,标准 JTAG/SWD
 
 开发板更多详细信息请参考【厂商名】 [xxx开发板介绍](https://xxx)。

+ 0 - 17
bsp/stm32/libraries/templates/stm32f7xx/board/board.c

@@ -61,20 +61,3 @@ void SystemClock_Config(void)
   }
 }
 
-void MX_GPIO_Init(void)
-{
-
-  /* GPIO Ports Clock Enable */
-  __HAL_RCC_GPIOH_CLK_ENABLE();
-  __HAL_RCC_GPIOA_CLK_ENABLE();
-
-}
-
-#ifdef RT_USING_PIN
-// int board_pin_init(void)
-// {
-//     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
-//     return 0;
-// }
-// INIT_BOARD_EXPORT(board_pin_init);
-#endif /* RT_USING_PIN */

+ 0 - 5
bsp/stm32/libraries/templates/stm32f7xx/board/board.h

@@ -16,10 +16,6 @@
 #include "drv_common.h"
 
 #ifdef BSP_USING_GPIO
-#include "drv_gpio.h"
-/* Board Pin definitions */
-// #define LED0_PIN                       GET_PIN(H,  10)
-#endif
 
 #define STM32_SRAM_SIZE           256
 #define STM32_SRAM_END            (0x20000000 + STM32_SRAM_SIZE * 1024)
@@ -38,7 +34,6 @@ extern int __bss_end;
 #define HEAP_END        STM32_SRAM_END
 
 void SystemClock_Config(void);
-void MX_GPIO_Init(void);
 
 #endif
 

+ 1 - 0
bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py

@@ -34,6 +34,7 @@ if PLATFORM == 'gcc':
     CXX = PREFIX + 'g++'
     AS = PREFIX + 'gcc'
     AR = PREFIX + 'ar'
+    CXX = PREFIX + 'g++'
     LINK = PREFIX + 'gcc'
     TARGET_EXT = 'elf'
     SIZE = PREFIX + 'size'

+ 1 - 1
bsp/stm32/libraries/templates/stm32l4xx/README.md

@@ -28,7 +28,7 @@
 - 常用外设
   - LED:x个,DS0(红色,PB1),DS1(绿色,PB0)
   - 按键:x个,K0(兼具唤醒功能,PA0),K1(PC13)
-- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口、...
+- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口
 - 调试接口,标准 JTAG/SWD
 
 开发板更多详细信息请参考【厂商名】 [xxx开发板介绍](https://xxx)。

+ 0 - 9
bsp/stm32/libraries/templates/stm32l4xx/board/board.c

@@ -57,12 +57,3 @@ void SystemClock_Config(void)
     Error_Handler();
   }
 }
-
-void MX_GPIO_Init(void)
-{
-
-  /* GPIO Ports Clock Enable */
-  __HAL_RCC_GPIOH_CLK_ENABLE();
-  __HAL_RCC_GPIOA_CLK_ENABLE();
-
-}

+ 0 - 3
bsp/stm32/libraries/templates/stm32l4xx/board/board.h

@@ -32,8 +32,5 @@ extern int __bss_end;
 #define HEAP_END        STM32_SRAM_END
 
 void SystemClock_Config(void);
-void MX_GPIO_Init(void);
 
 #endif
-
-

+ 1 - 0
bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py

@@ -36,6 +36,7 @@ if PLATFORM == 'gcc':
     CC = PREFIX + 'gcc'
     AS = PREFIX + 'gcc'
     AR = PREFIX + 'ar'
+    CXX = PREFIX + 'g++'
     LINK = PREFIX + 'gcc'
     TARGET_EXT = 'elf'
     SIZE = PREFIX + 'size'