串口Fifo设置

UART 寄存器组中的0x2   在写入时和读取时的bit意义是不一样的

写入时可以控制串口是不是用Fifo模式。

//set to fifo mode. Otherwise source level debugging will not work
//0x2 is Fifo control register when writting
// bit0: Fifo enable    bit 7~6:11   trigger intr when there are 14 bytes in fifo
OutputData = (UINT8) ((0x11 << 6) | gFiFoEnable);
IoWrite8 (gComBase + FCR_OFFSET, OutputData);  //FCR_OFFSET=0x2

 

在使能UEFI source level debugging时必须使能FIFO模式,不然调试器的协议分析会出错。

posted on 2011-12-06 16:28  lurker0  阅读(611)  评论(0编辑  收藏  举报

导航