From 1f7dd2586a16b6f47ba6214faf954481de6c4086 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 3 May 2009 10:43:54 +0000 Subject: 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 --- ports/ARM7-LPC214x/lpc214x_serial.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ports') 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; } -- cgit v1.2.3