Skip to content

Commit

Permalink
drivers/uart: stm32: Report 9bits transactions as not supported
Browse files Browse the repository at this point in the history
STM32 uart driver doesn't support 9bits transactions in any case,
so remove case were it was declared as supported.

Fixes zephyrproject-rtos#31799

Signed-off-by: Erwan Gouriou <[email protected]>
  • Loading branch information
erwango committed Feb 11, 2021
1 parent 8872526 commit eca6b0f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/serial/uart_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,7 @@ static int uart_stm32_configure(const struct device *dev,
#ifndef LL_USART_DATAWIDTH_7B
|| (UART_CFG_DATA_BITS_7 == cfg->data_bits)
#endif /* LL_USART_DATAWIDTH_7B */
#ifndef LL_USART_DATAWIDTH_9B
|| (UART_CFG_DATA_BITS_9 == cfg->data_bits)
#endif /* LL_USART_DATAWIDTH_9B */
) {
|| (UART_CFG_DATA_BITS_9 == cfg->data_bits)) {
return -ENOTSUP;
}

Expand Down

0 comments on commit eca6b0f

Please sign in to comment.