6,7 → 6,8 |
* Paolo Gai <pj@gandalf.sssup.it> |
* |
* Authors : |
* Paolo Gai <pj@gandalf.sssup.it> |
* Michele Cirinei |
* Giacomo Guidi <giacomo@gandalf.sssup.it> |
* (see the web pages for full authors list) |
* |
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
196,14 → 197,11 |
|
void THRE_handler (unsigned port) /* Transmit Data Register Ready for next byte */ |
{ |
if (SCom_TX_data[port].ptr < SCom_TX_data[port].len) { |
if (SCom_TX_data[port].ptr < SCom_TX_data[port].len) |
com_write(port, THR, SCom_TX_data[port].buf[SCom_TX_data[port].ptr++]); |
} else { |
SCom_Access.confirm(port, COM_OK); |
else SCom_Access.confirm(port, COM_OK); |
} |
|
} |
|
void RBRF_handler (unsigned port) /* Receive Data Register Full */ |
{ |
SCom_Access.indication(port, com_read(port, RBR)); |