diff --git a/app/boards/canbridge_g473_stm32g473xx.conf b/app/boards/canbridge_g473_stm32g473xx.conf new file mode 100644 index 00000000..33d49762 --- /dev/null +++ b/app/boards/canbridge_g473_stm32g473xx.conf @@ -0,0 +1,6 @@ +# Copyright (c) 2026 Oleksii Mamontov +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_CANNECTIVITY_USB_SELF_POWERED=n +CONFIG_LTO=y +CONFIG_ISR_TABLES_LOCAL_DECLARATION=y diff --git a/app/boards/canbridge_g473_stm32g473xx.overlay b/app/boards/canbridge_g473_stm32g473xx.overlay new file mode 100644 index 00000000..5bc1d687 --- /dev/null +++ b/app/boards/canbridge_g473_stm32g473xx.overlay @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2026 Oleksii Mamontov + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include "../app.overlay" + +/ { + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&counters2>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan1>; + activity-leds = <&led_can1>; + }; + channel1 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan2>; + activity-leds = <&led_can2>; + }; + channel2 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan3>; + activity-leds = <&led_can3>; + }; + + }; +}; + +&timers2 { + st,prescaler = <159>; + counters2: counter { + status = "okay"; + }; +}; diff --git a/app/boards/usbcan_iso_stm32f072xb.conf b/app/boards/usbcan_iso_stm32f072xb.conf new file mode 100644 index 00000000..98a93651 --- /dev/null +++ b/app/boards/usbcan_iso_stm32f072xb.conf @@ -0,0 +1,7 @@ +# Copyright (c) 2024-2025 Henrik Brix Andersen +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_CANNECTIVITY_USB_SELF_POWERED=n +CONFIG_CAN_FD_MODE=n +CONFIG_CAN_STM32_BXCAN_MAX_STD_ID_FILTERS=1 +CONFIG_CAN_STM32_BXCAN_MAX_EXT_ID_FILTERS=1 diff --git a/app/boards/usbcan_iso_stm32f072xb.overlay b/app/boards/usbcan_iso_stm32f072xb.overlay new file mode 100644 index 00000000..c98b685b --- /dev/null +++ b/app/boards/usbcan_iso_stm32f072xb.overlay @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2026 Oleksii Mamontov + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include "../app.overlay" + +/ { + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&counter2>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&can1>; + activity-leds = <&led_rx &led_tx>; + }; + }; +}; + +&timers2 { + status = "okay"; + st,prescaler = <47>; + + counter2: counter2 { + compatible = "st,stm32-counter"; + status = "okay"; + }; +}; diff --git a/app/boards/usbcanfd_dual_stm32g473xx.conf b/app/boards/usbcanfd_dual_stm32g473xx.conf new file mode 100644 index 00000000..33d49762 --- /dev/null +++ b/app/boards/usbcanfd_dual_stm32g473xx.conf @@ -0,0 +1,6 @@ +# Copyright (c) 2026 Oleksii Mamontov +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_CANNECTIVITY_USB_SELF_POWERED=n +CONFIG_LTO=y +CONFIG_ISR_TABLES_LOCAL_DECLARATION=y diff --git a/app/boards/usbcanfd_dual_stm32g473xx.overlay b/app/boards/usbcanfd_dual_stm32g473xx.overlay new file mode 100644 index 00000000..1fd9cd86 --- /dev/null +++ b/app/boards/usbcanfd_dual_stm32g473xx.overlay @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2026 Oleksii Mamontov + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include "../app.overlay" + +/ { + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&counters2>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan1>; + activity-leds = <&led_rx &led_tx>; + }; + channel1 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan2>; + activity-leds = <&led_rx2 &led_tx2>; + }; + }; +}; + +&timers2 { + st,prescaler = <159>; + counters2: counter { + status = "okay"; + }; +}; diff --git a/app/boards/usbcanfd_solo_stm32g431xx.conf b/app/boards/usbcanfd_solo_stm32g431xx.conf new file mode 100644 index 00000000..33d49762 --- /dev/null +++ b/app/boards/usbcanfd_solo_stm32g431xx.conf @@ -0,0 +1,6 @@ +# Copyright (c) 2026 Oleksii Mamontov +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_CANNECTIVITY_USB_SELF_POWERED=n +CONFIG_LTO=y +CONFIG_ISR_TABLES_LOCAL_DECLARATION=y diff --git a/app/boards/usbcanfd_solo_stm32g431xx.overlay b/app/boards/usbcanfd_solo_stm32g431xx.overlay new file mode 100644 index 00000000..c44fe845 --- /dev/null +++ b/app/boards/usbcanfd_solo_stm32g431xx.overlay @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2026 Oleksii Mamontov + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include "../app.overlay" + +/ { + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&counters2>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan1>; + activity-leds = <&led_rx &led_tx>; + }; + }; +}; + +&timers2 { + st,prescaler = <159>; + counters2: counter { + status = "okay"; + }; +};