diff --git a/app/boards/nucleo_h745zi_q.overlay b/app/boards/nucleo_h745zi_q.overlay new file mode 100644 index 0000000..2d059f0 --- /dev/null +++ b/app/boards/nucleo_h745zi_q.overlay @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024 Alexander Kozhinov + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + chosen { + zephyr,canbus = &fdcan1; + }; + + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&counter2>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&fdcan1>; + state-gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>; + activity-gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&zephyr_udc0 { + gs_usb0: gs_usb0 { + compatible = "gs_usb"; + }; +}; + +&fdcan1 { + /* Allocate half of the M_CAN message RAM to FDCAN1 */ + reg = <0x4000a000 0x400>, <0x4000ac00 0x1400>; + reg-names = "m_can", "message_ram"; + bosch,mram-cfg = <0x0 1 1 10 10 0 10 10>; + pinctrl-0 = <&fdcan1_rx_pb8 &fdcan1_tx_pb9>; + status = "okay"; +}; + +&timers2 { + st,prescaler = <239>; + counter2: counter { + status = "okay"; + }; +}; + +&arduino_i2c { + status = "disabled"; +}; + +&arduino_serial { + status = "disabled"; +};