/* Configure the USART1 */ USART_Init(USART1, &USART_InitStructure);
/* Enable the USART Transmoit interrupt: this interrupt is generated when the USART1 transmit data register is empty */ USART_ITConfig(USART1, USART_IT_TXE, ENABLE); 怎么执行到上面这句就直接进入UART_IT_TXE中断啦,还没有发送数据啊,也没接收数据, um0427FWLibexamplesUSARTHyperTerminal_Interrupt中的例子,不解,麻烦大虾解释下,谢谢! |