From 4bb2d9267990acd9cb31119de35f5d6d7cab1ae6 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Nov 2020 20:45:41 +0900 Subject: [PATCH] arch/arm/src/eoss3/eoss3_serial.c: Fix a type mismatch --- arch/arm/src/eoss3/eoss3_serial.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/eoss3/eoss3_serial.c b/arch/arm/src/eoss3/eoss3_serial.c index b38bdcec1a..ad14b0d8ac 100644 --- a/arch/arm/src/eoss3/eoss3_serial.c +++ b/arch/arm/src/eoss3/eoss3_serial.c @@ -80,7 +80,7 @@ static int eoss3_attach(struct uart_dev_s *dev); static void eoss3_detach(struct uart_dev_s *dev); static int eoss3_interrupt(int irq, void *context, FAR void *arg); static int eoss3_ioctl(struct file *filep, int cmd, unsigned long arg); -static int eoss3_receive(struct uart_dev_s *dev, uint32_t *status); +static int eoss3_receive(struct uart_dev_s *dev, unsigned int *status); static void eoss3_rxint(struct uart_dev_s *dev, bool enable); static bool eoss3_rxavailable(struct uart_dev_s *dev); static void eoss3_send(struct uart_dev_s *dev, int ch); @@ -414,7 +414,7 @@ static int eoss3_ioctl(struct file *filep, int cmd, unsigned long arg) * ****************************************************************************/ -static int eoss3_receive(struct uart_dev_s *dev, uint32_t *status) +static int eoss3_receive(struct uart_dev_s *dev, unsigned int *status) { *status = getreg32(EOSS3_UART_RSR_ECR); return (getreg32(EOSS3_UART_DR) & UART_DR_DATA_MASK); @@ -633,4 +633,4 @@ int up_putc(int ch) return ch; } -#endif /* USE_SERIALDRIVER */ \ No newline at end of file +#endif /* USE_SERIALDRIVER */