Skip to content

Commit 0ca5771

Browse files
committed
serial: uart_native_pty: IRQ support
Add support for the interrupt-driven API. Interrupts are emulated using a polling thread. Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
1 parent b82a8eb commit 0ca5771

File tree

5 files changed

+340
-100
lines changed

5 files changed

+340
-100
lines changed

boards/native/native_sim/doc/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,7 @@ program ends, one could do:
564564
565565
$ zephyr.exe --uart_attach_uart_cmd='ln -s %s /tmp/somename' ; rm /tmp/somename
566566
567-
This driver supports poll mode or async mode with :kconfig:option:`CONFIG_UART_ASYNC_API`.
568-
Interrupt mode is not supported.
567+
This driver supports poll mode, interrupt mode and async mode.
569568
Neither runtime configuration or line control are supported.
570569

571570
.. _native_tty_uart:

drivers/serial/Kconfig.native_pty

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ config UART_NATIVE_PTY
77
depends on (DT_HAS_ZEPHYR_NATIVE_PTY_UART_ENABLED || DT_HAS_ZEPHYR_NATIVE_POSIX_UART_ENABLED)
88
select SERIAL_HAS_DRIVER
99
select SERIAL_SUPPORT_ASYNC
10+
select SERIAL_SUPPORT_INTERRUPT
1011
help
1112
This enables a PTY based UART driver for the POSIX ARCH with up to 2 UARTs.
1213
For the first UART port, the driver can be configured

0 commit comments

Comments
 (0)