Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dual (RX/TX) activity LEDs #43

Merged
Prev Previous commit
Next Next commit
app: boards: add board overlay for the WeAct Studio USB2CANFDV1
Add a board overlay for the WeAct Studio USB2CANFDV1 USB to CAN adapter.

Fixes: #38

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
  • Loading branch information
henrikbrixandersen committed Dec 16, 2024
commit fa70e91c10c080986dfea452196a9ff7509c7cec
38 changes: 38 additions & 0 deletions app/boards/usb2canfdv1_stm32g0b1xx.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright (c) 2024 Henrik Brix Andersen <henrik@brixandersen.dk>
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/gpio.h>

/ {
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";
};
};