From 99a41baf71d574f8a4c55b2bf80cb5eff50c0f36 Mon Sep 17 00:00:00 2001 From: sun_shine Date: Tue, 29 Jan 2019 08:46:44 +0800 Subject: [PATCH] [bsp][stm32] delete main.c myself code, modify README.md,add blank line to SConscript --- bsp/stm32/stm32l053-st-nucleo/README.md | 2 +- .../stm32l053-st-nucleo/board/CubeMX_Config/Src/main.c | 8 ++------ bsp/stm32/stm32l053-st-nucleo/board/SConscript | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bsp/stm32/stm32l053-st-nucleo/README.md b/bsp/stm32/stm32l053-st-nucleo/README.md index 8c34b6fb8f..88fa5c0840 100644 --- a/bsp/stm32/stm32l053-st-nucleo/README.md +++ b/bsp/stm32/stm32l053-st-nucleo/README.md @@ -1,4 +1,4 @@ -# NUCLEO-L053R8 开发板的 BSP 说明 +# NUCLEO-L053R8 开发板 BSP 说明 ## 简介 diff --git a/bsp/stm32/stm32l053-st-nucleo/board/CubeMX_Config/Src/main.c b/bsp/stm32/stm32l053-st-nucleo/board/CubeMX_Config/Src/main.c index a4a4e7e80c..6fddba35ea 100644 --- a/bsp/stm32/stm32l053-st-nucleo/board/CubeMX_Config/Src/main.c +++ b/bsp/stm32/stm32l053-st-nucleo/board/CubeMX_Config/Src/main.c @@ -97,18 +97,14 @@ int main(void) MX_GPIO_Init(); MX_USART2_UART_Init(); /* USER CODE BEGIN 2 */ - uint32_t hell0; -hell0 = HAL_RCC_GetPCLK1Freq(); -//printf("hell0:%d",hell0); + /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { - HAL_UART_Transmit(&huart2, "hello\r\n", strlen("hello\r\n"), 10); -HAL_Delay(1000); - /* USER CODE END WHILE */ + /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ diff --git a/bsp/stm32/stm32l053-st-nucleo/board/SConscript b/bsp/stm32/stm32l053-st-nucleo/board/SConscript index be166aa941..74f501ff9b 100644 --- a/bsp/stm32/stm32l053-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l053-st-nucleo/board/SConscript @@ -31,4 +31,4 @@ elif rtconfig.CROSS_TOOL == 'iar': CPPDEFINES = ['STM32L053xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group')