diff --git a/app/boards/usb2canfdv2_stm32g431xx.overlay b/app/boards/usb2canfdv2_stm32g431xx.overlay new file mode 100644 index 0000000..eb562ff --- /dev/null +++ b/app/boards/usb2canfdv2_stm32g431xx.overlay @@ -0,0 +1,31 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2026 Henrik Brix Andersen + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include "../app.overlay" + +/ { + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&counter2>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan1>; + state-led = <&led_ready>; + activity-leds = <&led_rxd &led_txd>; + }; + }; +}; + +&timers2 { + status = "okay"; + st,prescaler = <159>; + + counter2: counter2 { + compatible = "st,stm32-counter"; + status = "okay"; + }; +}; diff --git a/app/sample.yaml b/app/sample.yaml index f380592..6317350 100644 --- a/app/sample.yaml +++ b/app/sample.yaml @@ -28,6 +28,7 @@ tests: - lpcxpresso55s16 - nucleo_h723zg - usb2canfdv1 + - usb2canfdv2 extra_args: - FILE_SUFFIX=debug app.cannectivity: @@ -46,6 +47,7 @@ tests: - nucleo_h723zg - ucan - usb2canfdv1 + - usb2canfdv2 build_only: true app.cannectivity.sof: depends_on: diff --git a/west.yml b/west.yml index ccdb2ae..71aa8e2 100644 --- a/west.yml +++ b/west.yml @@ -9,7 +9,7 @@ manifest: projects: - name: zephyr remote: zephyrproject-rtos - revision: main + revision: pull/109791/head clone-depth: 1 import: name-allowlist: