[bsp][stm32] sync bsp template file

This commit is contained in:
SummerGift 2018-12-26 10:27:05 +08:00
parent 2999fa301f
commit ea9958a506
16 changed files with 8 additions and 58 deletions

View File

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

View File

@ -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();
}

View File

@ -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__ */

View File

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

View File

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

View File

@ -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();
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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();
}

View File

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

View File

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