Skip to content

Commit

Permalink
app: boards: add configuration for the candleLight board
Browse files Browse the repository at this point in the history
Add configuration for the candleLight board.

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

CONFIG_CAN_FD_MODE=n
37 changes: 37 additions & 0 deletions app/boards/candlelight_stm32f072xb.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2024 Henrik Brix Andersen <[email protected]>
*
* 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_LOW>,
<&gpioa 1 GPIO_ACTIVE_LOW>;
};
};
};

&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 @@ -25,6 +25,7 @@ tests:
- lpcxpresso55s16
- nucleo_h723zg
- usb2canfdv1
- candlelight
app.cannectivity.sof:
depends_on:
- usb_device
Expand Down

0 comments on commit 3a3d971

Please sign in to comment.