diff --git a/bsp/stm32/libraries/templates/stm32f10x/README.md b/bsp/stm32/libraries/templates/stm32f10x/README.md index 3c6df4d1ba1f496fc4cde6aa3c11c5b1f9775576..e7d97509ef4b9997bbc7f2b1827f7099ebd810d8 100644 --- a/bsp/stm32/libraries/templates/stm32f10x/README.md +++ b/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)。 diff --git a/bsp/stm32/libraries/templates/stm32f10x/board/board.c b/bsp/stm32/libraries/templates/stm32f10x/board/board.c index 36c127c5b73902711cfbff3737281e5a8eaed29c..33588783eccac1d8e314eb98411a7da77f474461 100644 --- a/bsp/stm32/libraries/templates/stm32f10x/board/board.c +++ b/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(); - -} diff --git a/bsp/stm32/libraries/templates/stm32f10x/board/board.h b/bsp/stm32/libraries/templates/stm32f10x/board/board.h index 1c00e71dca539607c0b0473289e094fe8d9eaf0c..cc564baf4f527e42fbda3bc28d15664b666759cb 100644 --- a/bsp/stm32/libraries/templates/stm32f10x/board/board.h +++ b/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__ */ diff --git a/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py b/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py index 79904118e5fc9d15a5e34a064d5df90335565d95..40826ac99e18049c751f057ab72c8c53c0cdd13c 100644 --- a/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py +++ b/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' diff --git a/bsp/stm32/libraries/templates/stm32f4xx/README.md b/bsp/stm32/libraries/templates/stm32f4xx/README.md index 74a5ecae8918a8a08fe8e882d616c0c7e58bb5e0..8026a8f499be1bcc5e850372d8cbd3bdbd8c4a6f 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/README.md +++ b/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)。 diff --git a/bsp/stm32/libraries/templates/stm32f4xx/board/board.c b/bsp/stm32/libraries/templates/stm32f4xx/board/board.c index b3cf3b07546d57cef45a9bc5f6da9763ddf6057d..9adbd0f32b45a1f1800210cce4f1c6da889d2658 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/board/board.c +++ b/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(); - -} diff --git a/bsp/stm32/libraries/templates/stm32f4xx/board/board.h b/bsp/stm32/libraries/templates/stm32f4xx/board/board.h index f7944b4ed70df4dcf27ccdcc6d0457d41f8583f8..47a4822cb5dd085320aa7d3f4c300a92528d7b62 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/board/board.h +++ b/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 diff --git a/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py index 2e3b7cf4929d22771893e59487c441aed871e6f6..3241586f69fbfa0128724a3900c004ca490b5dba 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py +++ b/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' diff --git a/bsp/stm32/libraries/templates/stm32f7xx/README.md b/bsp/stm32/libraries/templates/stm32f7xx/README.md index 74a5ecae8918a8a08fe8e882d616c0c7e58bb5e0..8026a8f499be1bcc5e850372d8cbd3bdbd8c4a6f 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/README.md +++ b/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)。 diff --git a/bsp/stm32/libraries/templates/stm32f7xx/board/board.c b/bsp/stm32/libraries/templates/stm32f7xx/board/board.c index 0da45bd43773a4681958e3db45b0355ccf83bfbe..3b2573866113928148951902ca52e8037a013a7b 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/board/board.c +++ b/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 */ diff --git a/bsp/stm32/libraries/templates/stm32f7xx/board/board.h b/bsp/stm32/libraries/templates/stm32f7xx/board/board.h index 86fd25c980e45bd30e6321b3602aded43c556721..e0e0ede5640ad585040821f3c7513db6ff8db098 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/board/board.h +++ b/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 diff --git a/bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py index ced944e0b6104aea2dbb0e68d788ab5e02a2a6a8..fd2682b838a92f7773aa869a81bd5b23f05d978c 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py +++ b/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' diff --git a/bsp/stm32/libraries/templates/stm32l4xx/README.md b/bsp/stm32/libraries/templates/stm32l4xx/README.md index 3c6df4d1ba1f496fc4cde6aa3c11c5b1f9775576..e7d97509ef4b9997bbc7f2b1827f7099ebd810d8 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/README.md +++ b/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)。 diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/board.c b/bsp/stm32/libraries/templates/stm32l4xx/board/board.c index 5f8113f4d7699d355ca6e2729930ef87e7c41ac3..a64660e5520016b9918b5faeac3820aece9181d3 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/board/board.c +++ b/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(); - -} diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/board.h b/bsp/stm32/libraries/templates/stm32l4xx/board/board.h index 29e1ba42675c499ce402be771baae993b7c09118..9e1f66bf244a0241e5b14d0784ffa446ea6f3cc7 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/board/board.h +++ b/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 - - diff --git a/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py index 50c1d8a0f7627358dc1ec268296464fed272c753..d632114e2d35f232096fde113c44c96790ae288c 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py +++ b/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'