Skip to content

Commit 3a280ba

Browse files
committed
boards: posix: native_posix: enable can_loopback0 by default
The .yaml file states that CAN is supported, but the basic sample application samples/drivers/can/counter cannot be compiled without additional configuration. The loopback driver does not require any additional steps like the linux SocketCAN driver, so it is safe to enable it by default and get rid of the many overlay files in the tests. ISO-TP tests and the counter sample are excluded via .yaml from twister tests because of timing issues. Signed-off-by: Martin Jäger <[email protected]>
1 parent 5af0fbc commit 3a280ba

File tree

12 files changed

+4
-73
lines changed

12 files changed

+4
-73
lines changed

boards/posix/native_posix/native_posix.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
};
189189

190190
can_loopback0: can_loopback0 {
191-
status = "disabled";
191+
status = "okay";
192192
compatible = "zephyr,can-loopback";
193193
sjw = <1>;
194194
sample-point = <875>;

samples/drivers/can/counter/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tests:
55
tags: can
66
depends_on: can
77
filter: dt_chosen_enabled("zephyr,canbus")
8+
platform_exclude: native_posix native_posix_64
89
harness: console
910
harness_config:
1011
type: one_line

samples/net/sockets/can/boards/native_posix.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

samples/net/sockets/can/boards/native_posix_64.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/drivers/can/api/boards/native_posix.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/drivers/can/api/boards/native_posix_64.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/drivers/can/canfd/boards/native_posix.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/drivers/can/canfd/boards/native_posix_64.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/drivers/can/timing/boards/native_posix.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/drivers/can/timing/boards/native_posix_64.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)