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 <martin@libre.solar>
This commit is contained in:
parent
6b23044f4f
commit
9cec058e8e
12 changed files with 4 additions and 73 deletions
|
@ -188,7 +188,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
can_loopback0: can_loopback0 {
|
can_loopback0: can_loopback0 {
|
||||||
status = "disabled";
|
status = "okay";
|
||||||
compatible = "zephyr,can-loopback";
|
compatible = "zephyr,can-loopback";
|
||||||
sjw = <1>;
|
sjw = <1>;
|
||||||
sample-point = <875>;
|
sample-point = <875>;
|
||||||
|
|
|
@ -5,6 +5,7 @@ tests:
|
||||||
tags: can
|
tags: can
|
||||||
depends_on: can
|
depends_on: can
|
||||||
filter: dt_chosen_enabled("zephyr,canbus")
|
filter: dt_chosen_enabled("zephyr,canbus")
|
||||||
|
platform_exclude: native_posix native_posix_64
|
||||||
harness: console
|
harness: console
|
||||||
harness_config:
|
harness_config:
|
||||||
type: one_line
|
type: one_line
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2022 Vestas Wind Systems A/S
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&can_loopback0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2022 Vestas Wind Systems A/S
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&can_loopback0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2021 Vestas Wind Systems A/S
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&can_loopback0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2021 Vestas Wind Systems A/S
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&can_loopback0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2022 Vestas Wind Systems A/S
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&can_loopback0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2022 Vestas Wind Systems A/S
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&can_loopback0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2021 Vestas Wind Systems A/S
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&can_loopback0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
|
@ -1,9 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2021 Vestas Wind Systems A/S
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&can_loopback0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
|
@ -3,3 +3,4 @@ tests:
|
||||||
tags: can isotp
|
tags: can isotp
|
||||||
depends_on: can
|
depends_on: can
|
||||||
filter: dt_chosen_enabled("zephyr,canbus")
|
filter: dt_chosen_enabled("zephyr,canbus")
|
||||||
|
platform_exclude: native_posix native_posix_64
|
||||||
|
|
|
@ -3,3 +3,4 @@ tests:
|
||||||
tags: can isotp
|
tags: can isotp
|
||||||
depends_on: can
|
depends_on: can
|
||||||
filter: dt_chosen_enabled("zephyr,canbus")
|
filter: dt_chosen_enabled("zephyr,canbus")
|
||||||
|
platform_exclude: native_posix native_posix_64
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue