From 282dafdd258ecc6207e798d12aec04ba79185b9a Mon Sep 17 00:00:00 2001 From: Michael Frey Date: Fri, 9 Jun 2017 14:55:43 +0200 Subject: [PATCH] kinetis: Use 9 bit UART config for 8E1, 8O1 modes --- cpu/kinetis_common/include/periph_cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/kinetis_common/include/periph_cpu.h b/cpu/kinetis_common/include/periph_cpu.h index d4ca43c4b9..650c514d78 100644 --- a/cpu/kinetis_common/include/periph_cpu.h +++ b/cpu/kinetis_common/include/periph_cpu.h @@ -205,9 +205,9 @@ typedef enum { /** @brief 8 data bits, no parity, 1 stop bit */ #define UART_MODE_8N1 (0) /** @brief 8 data bits, even parity, 1 stop bit */ -#define UART_MODE_8E1 (UART_C1_PE_MASK) +#define UART_MODE_8E1 (UART_C1_PE_MASK | UART_C1_M_MASK) /** @brief 8 data bits, odd parity, 1 stop bit */ -#define UART_MODE_8O1 (UART_C1_PE_MASK | UART_C1_PT_MASK) +#define UART_MODE_8O1 (UART_C1_PE_MASK | UART_C1_M_MASK | UART_C1_PT_MASK) /** @} */ #ifndef DOXYGEN