int main(void){int iWORD wTimeoutTicks 定义超时变量HAL_Init_ConfigureHAL()初始化UART和定时器模式{HAL_Init_Global_Interrupt_Switch(ENABLE) 使能总中断 HAL_Timer_InitTimer0() HAL_UART_UART0Init(UART0_BaudRate)