Skip to content

Commit 76e0357

Browse files
committed
cpu/esp32: fixups after merge
1 parent e73e849 commit 76e0357

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cpu/esp32/periph/uart.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg)
119119
}
120120

121121
/* try to initialize the pins as GPIOs first */
122-
if (gpio_init (uart_config[uart].txd, GPIO_OUT) ||
123-
gpio_init (uart_config[uart].rxd, GPIO_IN)) {
122+
if (gpio_init (uart_config[uart].rxd, GPIO_IN) ||
123+
gpio_init (uart_config[uart].txd, GPIO_OUT)) {
124124
return -1;
125125
}
126126

@@ -161,7 +161,7 @@ void uart_poweron (uart_t uart)
161161
CHECK_PARAM (uart < UART_NUMOF);
162162

163163
periph_module_enable(_uarts[uart].mod);
164-
__uart_config(uart);
164+
_uart_config(uart);
165165
}
166166

167167
void uart_poweroff (uart_t uart)
@@ -184,7 +184,7 @@ void uart_print_config(void)
184184
{
185185
for (unsigned uart = 0; uart < UART_NUMOF; uart++) {
186186
ets_printf("\tUART_DEV(%d)\ttxd=%d rxd=%d\n", uart,
187-
_uarts[uart].pin_txd, _uarts[uart].pin_rxd);
187+
uart_config[uart].txd, uart_config[uart].rxd);
188188
}
189189
}
190190

0 commit comments

Comments
 (0)