FSL_TICS_Robin 发表于 2013-12-5 13:45
你的意思是:串口接收中断在收满一串字符后将全局变量置1了,主循环也判断到该标志调用了LCDShow函数,但液 ...
DISABLE_INTERRUPTS;
LCDInit();
uart_init (UART_1, BUSCLK, 9600); //串口1初始化, 总线时钟24000Khz,波特率9600
uart_send_string(UART_1, "This is UART1 INT Test!\r\n");
uart_enable_re_int(UART_1);
ENABLE_INTERRUPTS;
if(NeedLCD==1)
LCDShow(k); |