Skip to content

Commit e744c53

Browse files
kartbendkalowsk
authored andcommitted
drivers: serial: fix Rx pin configuration in lpuart_esp32
Updated the Rx pin configuration in the lpuart_esp32 driver to fix a typo and use correct MUX function. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 48566d8 commit e744c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/lpuart_esp32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static void lp_uart_esp32_set_pin(const struct device *dev)
144144
lp_uart_esp32_config_io(cfg->tx_io_num, RTC_GPIO_MODE_OUTPUT_ONLY, LP_U0TXD_MUX_FUNC);
145145

146146
/* Configure Rx Pin */
147-
lp_uart_esp32_config_io(cfg->rx_io_num, RTC_GPIO_MODE_INPUT_ONLY, LP_U0RXD_GPIO_NUM);
147+
lp_uart_esp32_config_io(cfg->rx_io_num, RTC_GPIO_MODE_INPUT_ONLY, LP_U0RXD_MUX_FUNC);
148148

149149
/* Configure RTS Pin */
150150
lp_uart_esp32_config_io(cfg->rts_io_num, RTC_GPIO_MODE_OUTPUT_ONLY, LP_U0RTS_MUX_FUNC);

0 commit comments

Comments
 (0)