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.*/ \