what can I do for work with the UART with 9 data bits? I have the example "uart_echo_rs485". Here is the statement
Code: Select all
uart_config_t uart_config = {
.baud_rate = BAUD_RATE,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.rx_flow_ctrl_thresh = 122,
.source_clk = UART_SCLK_APB,
};
Code: Select all
uart_config_t uart_config = { .baud_rate = BAUD_RATE,
.data_bits = UART_DATA_BITS_MAX,
.parity = UART_PARITY_DISABLE, .stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE, .rx_flow_ctrl_thresh = 122,
.source_clk = UART_SCLK_APB, };