From 2a6b1563905ab06c9b9e59f3b77c9a34a2214f70 Mon Sep 17 00:00:00 2001 From: utzig Date: Wed, 6 Aug 2014 20:34:43 +0000 Subject: [PATCH] [KINETIS] Fix KL2x serial driver for osal compatibility git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7144 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/KINETIS/KL2x/serial_lld.c | 8 ++++---- os/hal/ports/KINETIS/KL2x/serial_lld.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/os/hal/ports/KINETIS/KL2x/serial_lld.c b/os/hal/ports/KINETIS/KL2x/serial_lld.c index 3b93e8875..598b19d5d 100644 --- a/os/hal/ports/KINETIS/KL2x/serial_lld.c +++ b/os/hal/ports/KINETIS/KL2x/serial_lld.c @@ -22,7 +22,7 @@ * @{ */ -#include "ch.h" +#include "osal.h" #include "hal.h" #if HAL_USE_SERIAL || defined(__DOXYGEN__) @@ -136,7 +136,7 @@ static void preload(SerialDriver *sdp) { * @brief Driver output notification. */ #if KINETIS_SERIAL_USE_UART0 || defined(__DOXYGEN__) -static void notify1(GenericQueue *qp) +static void notify1(io_queue_t *qp) { (void)qp; preload(&SD1); @@ -144,7 +144,7 @@ static void notify1(GenericQueue *qp) #endif #if KINETIS_SERIAL_USE_UART1 || defined(__DOXYGEN__) -static void notify2(GenericQueue *qp) +static void notify2(io_queue_t *qp) { (void)qp; preload(&SD2); @@ -152,7 +152,7 @@ static void notify2(GenericQueue *qp) #endif #if KINETIS_SERIAL_USE_UART2 || defined(__DOXYGEN__) -static void notify3(GenericQueue *qp) +static void notify3(io_queue_t *qp) { (void)qp; preload(&SD3); diff --git a/os/hal/ports/KINETIS/KL2x/serial_lld.h b/os/hal/ports/KINETIS/KL2x/serial_lld.h index 9b642a737..f9db6f129 100644 --- a/os/hal/ports/KINETIS/KL2x/serial_lld.h +++ b/os/hal/ports/KINETIS/KL2x/serial_lld.h @@ -115,9 +115,9 @@ typedef struct { /* Driver state.*/ \ sdstate_t state; \ /* Input queue.*/ \ - InputQueue iqueue; \ + input_queue_t iqueue; \ /* Output queue.*/ \ - OutputQueue oqueue; \ + output_queue_t oqueue; \ /* Input circular buffer.*/ \ uint8_t ib[SERIAL_BUFFERS_SIZE]; \ /* Output circular buffer.*/ \