Mercurial > ecos
comparison packages/io/serial/current/src/arm/pid_serial_with_ints.c @ 48:1370c5e55234 ecos-sw-1999-10-25
Merge from eCos master repository on 1999-10-25-21:18:27-BST
| author | jlarmour |
|---|---|
| date | Mon, 25 Oct 1999 20:48:32 +0000 |
| parents | 7253dcc42a09 |
| children | 6e51d764f8f1 |
comparison
equal
deleted
inserted
replaced
| 47:dda182546c3f | 48:1370c5e55234 |
|---|---|
| 303 volatile struct serial_port *port = (volatile struct serial_port *)pid_chan->base; | 303 volatile struct serial_port *port = (volatile struct serial_port *)pid_chan->base; |
| 304 unsigned char isr; | 304 unsigned char isr; |
| 305 isr = port->isr & 0x0E; | 305 isr = port->isr & 0x0E; |
| 306 if (isr == ISR_Tx) { | 306 if (isr == ISR_Tx) { |
| 307 (chan->callbacks->xmt_char)(chan); | 307 (chan->callbacks->xmt_char)(chan); |
| 308 } else if (isr == ISR_RxTO) { | |
| 309 (chan->callbacks->rcv_char)(chan, port->rhr); | |
| 308 } else if (isr == ISR_Rx) { | 310 } else if (isr == ISR_Rx) { |
| 309 (chan->callbacks->rcv_char)(chan, port->rhr); | 311 (chan->callbacks->rcv_char)(chan, port->rhr); |
| 310 } | 312 } |
| 311 cyg_drv_interrupt_unmask(pid_chan->int_num); | 313 cyg_drv_interrupt_unmask(pid_chan->int_num); |
| 312 } | 314 } |
