diff --git a/app/boards/usb2canfdv1_stm32g0b1xx.overlay b/app/boards/usb2canfdv1_stm32g0b1xx.overlay new file mode 100644 index 0000000..802027f --- /dev/null +++ b/app/boards/usb2canfdv1_stm32g0b1xx.overlay @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2024 Henrik Brix Andersen + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&counter2>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan1>; + state-gpios = <&gpioa 2 GPIO_ACTIVE_LOW>; + activity-gpios = <&gpioa 0 GPIO_ACTIVE_LOW>, + <&gpioa 1 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&zephyr_udc0 { + gs_usb0: gs_usb0 { + compatible = "gs_usb"; + }; +}; + +&timers2 { + status = "okay"; + st,prescaler = <59>; + + counter2: counter2 { + compatible = "st,stm32-counter"; + status = "okay"; + }; +};