Skip to content

Commit

Permalink
samples: drivers: uart: native tty: Add native_sim overlay
Browse files Browse the repository at this point in the history
Also include it in the twister tests.

Signed-off-by: Marko Sagadin <marko.sagadin42@gmail.com>
  • Loading branch information
MarkoSagadin committed Jul 11, 2023
1 parent 773cf11 commit 57dff46
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions samples/drivers/uart/native_tty/boards/native_sim.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/ {
uart0: uart {
status = "okay";
compatible = "zephyr,native-tty-uart";
current-speed = <115200>;
serial-port = "/dev/ttyUSB0";
};

uart2: uart2 {
status = "okay";
compatible = "zephyr,native-tty-uart";
current-speed = <115200>;
serial-port = "/dev/ttyUSB1";
};
};
4 changes: 3 additions & 1 deletion samples/drivers/uart/native_tty/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ sample:
tests:
sample.drivers.uart.native_tty:
build_only: true
platform_allow: native_posix
platform_allow:
- native_posix
- native_sim
tags:
- serial
- uart

0 comments on commit 57dff46

Please sign in to comment.