Skip to content

Commit

Permalink
app: boards: add configuration for the fysetc ucan board
Browse files Browse the repository at this point in the history
Add configuration for the FYSETC UCAN board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
  • Loading branch information
henrikbrixandersen committed Dec 21, 2024
1 parent 3a3d971 commit acae8d2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/boards/ucan_stm32f072xb.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2024 Henrik Brix Andersen <henrik@brixandersen.dk>
# SPDX-License-Identifier: Apache-2.0

CONFIG_CAN_FD_MODE=n
37 changes: 37 additions & 0 deletions app/boards/ucan_stm32f072xb.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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 = <&can1>;
activity-gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>,
<&gpioa 1 GPIO_ACTIVE_HIGH>;
};
};
};

&zephyr_udc0 {
gs_usb0: gs_usb0 {
compatible = "gs_usb";
};
};

&timers2 {
status = "okay";
st,prescaler = <47>;

counter2: counter2 {
compatible = "st,stm32-counter";
status = "okay";
};
};
1 change: 1 addition & 0 deletions app/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ tests:
- nucleo_h723zg
- usb2canfdv1
- candlelight
- ucan
app.cannectivity.sof:
depends_on:
- usb_device
Expand Down

0 comments on commit acae8d2

Please sign in to comment.