xtensa: esp32: configure default UART using ROM functions
Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
parent
f7005105e9
commit
d58d5d1265
2 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,7 @@ PROVIDE ( __stack = 0x3ffe3f20 );
|
||||||
|
|
||||||
PROVIDE ( uart_tx_one_char = 0x40009200 );
|
PROVIDE ( uart_tx_one_char = 0x40009200 );
|
||||||
PROVIDE ( uart_rx_one_char = 0x400092d0 );
|
PROVIDE ( uart_rx_one_char = 0x400092d0 );
|
||||||
|
PROVIDE ( uartAttach = 0x40008fd0 );
|
||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,10 +41,11 @@ static int esp32_uart_init(struct device *dev)
|
||||||
{
|
{
|
||||||
ARG_UNUSED(dev);
|
ARG_UNUSED(dev);
|
||||||
|
|
||||||
|
uartAttach();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static const struct uart_driver_api esp32_uart_api = {
|
static const struct uart_driver_api esp32_uart_api = {
|
||||||
.poll_in = &esp32_uart_rx,
|
.poll_in = &esp32_uart_rx,
|
||||||
.poll_out = &esp32_uart_tx,
|
.poll_out = &esp32_uart_tx,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue