diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-05-03 10:43:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-05-03 10:43:54 +0000 |
commit | 1f7dd2586a16b6f47ba6214faf954481de6c4086 (patch) | |
tree | f3aa85ae4da155f12ad5f609c8738cb5027c7f11 /ports/ARM7-LPC214x/lpc214x_serial.c | |
parent | a7b4044f9eba2c506e233d0c140f95b215cde116 (diff) | |
download | ChibiOS-1f7dd2586a16b6f47ba6214faf954481de6c4086.tar.gz ChibiOS-1f7dd2586a16b6f47ba6214faf954481de6c4086.tar.bz2 ChibiOS-1f7dd2586a16b6f47ba6214faf954481de6c4086.zip |
Adjusted LPC214x serial driver and MinGW demo because the latest changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@942 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports/ARM7-LPC214x/lpc214x_serial.c')
-rw-r--r-- | ports/ARM7-LPC214x/lpc214x_serial.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ports/ARM7-LPC214x/lpc214x_serial.c b/ports/ARM7-LPC214x/lpc214x_serial.c index f9ed67260..e452cec8d 100644 --- a/ports/ARM7-LPC214x/lpc214x_serial.c +++ b/ports/ARM7-LPC214x/lpc214x_serial.c @@ -92,12 +92,12 @@ static void ServeInterrupt(UART *u, FullDuplexDriver *com) { case IIR_SRC_RX:
while (u->UART_LSR & LSR_RBR_FULL) {
chSysLockFromIsr();
- if (chIQPutI(&com->sd_iqueue, u->UART_RBR) < Q_OK)
+ if (chIQPutI(&com->d2.iqueue, u->UART_RBR) < Q_OK)
chFDDAddFlagsI(com, SD_OVERRUN_ERROR);
chSysUnlockFromIsr();
}
chSysLockFromIsr();
- chEvtBroadcastI(&com->sd_ievent);
+ chEvtBroadcastI(&com->d1.ievent);
chSysUnlockFromIsr();
break;
case IIR_SRC_TX:
@@ -106,12 +106,12 @@ static void ServeInterrupt(UART *u, FullDuplexDriver *com) { int i = UART_FIFO_PRELOAD;
do {
chSysLockFromIsr();
- msg_t b = chOQGetI(&com->sd_oqueue);
+ msg_t b = chOQGetI(&com->d2.oqueue);
chSysUnlockFromIsr();
if (b < Q_OK) {
u->UART_IER &= ~IER_THRE;
chSysLockFromIsr();
- chEvtBroadcastI(&com->sd_oevent);
+ chEvtBroadcastI(&com->d1.oevent);
chSysUnlockFromIsr();
break;
}
@@ -141,11 +141,11 @@ static void preload(UART *u, FullDuplexDriver *com) { int i = UART_FIFO_PRELOAD;
do {
chSysLockFromIsr();
- msg_t b = chOQGetI(&com->sd_oqueue);
+ msg_t b = chOQGetI(&com->d2.oqueue);
chSysUnlockFromIsr();
if (b < Q_OK) {
chSysLockFromIsr();
- chEvtBroadcastI(&com->sd_oevent);
+ chEvtBroadcastI(&com->d1.oevent);
chSysUnlockFromIsr();
return;
}
|