xtensa: esp32: configure default UART using ROM functions

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
Ivan Grokhotkov 2017-05-17 18:22:43 +08:00 committed by Anas Nashif
commit d58d5d1265
2 changed files with 3 additions and 1 deletions

View file

@ -26,6 +26,7 @@ PROVIDE ( __stack = 0x3ffe3f20 );
PROVIDE ( uart_tx_one_char = 0x40009200 );
PROVIDE ( uart_rx_one_char = 0x400092d0 );
PROVIDE ( uartAttach = 0x40008fd0 );
MEMORY
{

View file

@ -41,10 +41,11 @@ static int esp32_uart_init(struct device *dev)
{
ARG_UNUSED(dev);
uartAttach();
return 0;
}
static const struct uart_driver_api esp32_uart_api = {
.poll_in = &esp32_uart_rx,
.poll_out = &esp32_uart_tx,