1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #7165 from mfrey/kinetis-uart

kinetis: Use 9 bit UART config for 8E1, 8O1 modes
This commit is contained in:
Joakim Nohlgård 2017-06-13 09:04:04 +02:00 committed by GitHub
commit 54b68844e0

View File

@ -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