[bsp][stm32] delete main.c myself code, modify README.md,add blank line to SConscript

This commit is contained in:
sun_shine 2019-01-29 08:46:44 +08:00
parent db6cc7d16a
commit 99a41baf71
3 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# NUCLEO-L053R8 开发板 BSP 说明
# NUCLEO-L053R8 开发板 BSP 说明
## 简介

View File

@ -97,17 +97,13 @@ 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 BEGIN 3 */