drivers: serial: Move esp32 serial UART API from DRAM to ROM
The API was placed in RAM to support logging stack unwinding, however device instances are also placed in ROM, so should the API instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
29c9b91340
commit
c896dd370e
2 changed files with 2 additions and 2 deletions
|
@ -249,7 +249,7 @@ static void serial_esp32_usb_isr(void *arg)
|
|||
|
||||
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
|
||||
|
||||
static const DRAM_ATTR struct uart_driver_api serial_esp32_usb_api = {
|
||||
static DEVICE_API(uart, serial_esp32_usb_api) = {
|
||||
.poll_in = serial_esp32_usb_poll_in,
|
||||
.poll_out = serial_esp32_usb_poll_out,
|
||||
.err_check = serial_esp32_usb_err_check,
|
||||
|
|
|
@ -963,7 +963,7 @@ static int uart_esp32_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const DRAM_ATTR struct uart_driver_api uart_esp32_api = {
|
||||
static DEVICE_API(uart, uart_esp32_api) = {
|
||||
.poll_in = uart_esp32_poll_in,
|
||||
.poll_out = uart_esp32_poll_out,
|
||||
.err_check = uart_esp32_err_check,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue