HAL_GPIO_Init(LED4_GPIO_PORT, &GPIO_InitStruct);/* -3- Toggle IOs in an infinite loop */while(1) {HAL_GPIO_TogglePin(LED1_GPIO_PORT, LED1_PIN);/* Insert delay 100 ms */HAL_Delay(100);HAL_GPIO_TogglePin(LED2_GPIO_PORT, LED2_PIN);/* Insert delay 100 ms */HAL_Delay(100);...
http://www.stmcu.org.cn/module/forum/thread-616613-1-1.html 看到大家经常写一些关于串口的问题...