From 5e64a9fec2e17d008b9488faa027d2beaa130a88 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 5 Mar 2008 10:59:11 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@215 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/ARM7-LPC214x/lpc214x_serial.c | 8 ++++---- ports/ARM7-LPC214x/lpc214x_ssp.c | 2 +- ports/ARM7-LPC214x/lpc214x_ssp.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ports/ARM7-LPC214x') diff --git a/ports/ARM7-LPC214x/lpc214x_serial.c b/ports/ARM7-LPC214x/lpc214x_serial.c index 8f4e1d417..76f706ccb 100644 --- a/ports/ARM7-LPC214x/lpc214x_serial.c +++ b/ports/ARM7-LPC214x/lpc214x_serial.c @@ -33,7 +33,7 @@ static uint8_t ib2[SERIAL_BUFFERS_SIZE]; static uint8_t ob2[SERIAL_BUFFERS_SIZE]; static void SetError(IOREG32 err, FullDuplexDriver *com) { - uint16_t sts = 0; + dflags_t sts = 0; if (err & LSR_OVERRUN) sts |= SD_OVERRUN_ERROR; @@ -72,7 +72,7 @@ static void ServeInterrupt(UART *u, FullDuplexDriver *com) { #ifdef FIFO_PRELOAD int i = FIFO_PRELOAD; do { - t_msg b = chOQGetI(&com->sd_oqueue); + msg_t b = chOQGetI(&com->sd_oqueue); if (b < Q_OK) { u->UART_IER &= ~IER_THRE; chEvtSendI(&com->sd_oevent); @@ -81,7 +81,7 @@ static void ServeInterrupt(UART *u, FullDuplexDriver *com) { u->UART_THR = b; } while (--i); #else - t_msg b = chFDDRequestDataI(com); + msg_t b = chFDDRequestDataI(com); if (b < Q_OK) u->UART_IER &= ~IER_THRE; else @@ -123,7 +123,7 @@ static void preload(UART *u, FullDuplexDriver *com) { if (u->UART_LSR & LSR_THRE) { int i = FIFO_PRELOAD; do { - t_msg b = chOQGetI(&com->sd_oqueue); + msg_t b = chOQGetI(&com->sd_oqueue); if (b < Q_OK) { chEvtSendI(&com->sd_oevent); return; diff --git a/ports/ARM7-LPC214x/lpc214x_ssp.c b/ports/ARM7-LPC214x/lpc214x_ssp.c index 80a936f4a..708c2dbeb 100644 --- a/ports/ARM7-LPC214x/lpc214x_ssp.c +++ b/ports/ARM7-LPC214x/lpc214x_ssp.c @@ -55,7 +55,7 @@ void sspReleaseBus(void) { * rest of the system. This kind of peripheral would really need a * dedicated DMA channel. */ -void sspRW(uint8_t *in, uint8_t *out, t_size n) { +void sspRW(uint8_t *in, uint8_t *out, size_t n) { int icnt, ocnt; SSP *ssp = SSPBase; diff --git a/ports/ARM7-LPC214x/lpc214x_ssp.h b/ports/ARM7-LPC214x/lpc214x_ssp.h index 70a4be527..55929c2d8 100644 --- a/ports/ARM7-LPC214x/lpc214x_ssp.h +++ b/ports/ARM7-LPC214x/lpc214x_ssp.h @@ -34,7 +34,7 @@ void sspAcquireBus(void); void sspReleaseBus(void); - void sspRW(uint8_t *in, uint8_t *out, t_size n); + void sspRW(uint8_t *in, uint8_t *out, size_t n); #ifdef __cplusplus } #endif -- cgit v1.2.3