diff options
author | utzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-06 20:34:43 +0000 |
---|---|---|
committer | utzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-06 20:34:43 +0000 |
commit | 2a6b1563905ab06c9b9e59f3b77c9a34a2214f70 (patch) | |
tree | 33593b9a40b33004b9e8707fc15a5d08a1219518 /os | |
parent | e48246c26ab8f7779d1481c1bf56dac98ad6b55f (diff) | |
download | ChibiOS-2a6b1563905ab06c9b9e59f3b77c9a34a2214f70.tar.gz ChibiOS-2a6b1563905ab06c9b9e59f3b77c9a34a2214f70.tar.bz2 ChibiOS-2a6b1563905ab06c9b9e59f3b77c9a34a2214f70.zip |
[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
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/KINETIS/KL2x/serial_lld.c | 8 | ||||
-rw-r--r-- | 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.*/ \
|