Thanks, Yang.
I want to minimize the RX/TX interrupt number, some thing just like DMA do:
1), when TX data finished, an interrupt to notify me that, it finished, then i could update user defined TX finished status, and
2), when RX line is idle, an interrupt to notify me that, there's no more data.
I do not know is this robust?
The following file is KEA128's UART driver and Events.c, i want to optimize it if possible.