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

app: boards: add nucleo_h723zg overlay #7

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions app/boards/nucleo_h723zg.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* 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 = <&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>;
};

&timers2 {
st,prescaler = <274>;
counter2: counter {
status = "okay";
};
};
17 changes: 14 additions & 3 deletions app/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,34 @@ sample:
common:
tags: usb can
build_only: true
integration_platforms:
- frdm_k64f
- lpcxpresso55s16
platform_exclude:
- native_sim
tests:
app.cannectivity:
depends_on: usb_device can
integration_platforms:
- frdm_k64f
- lpcxpresso55s16
- nucleo_h723zg
app.cannectivity.release:
depends_on: usb_device can
extra_args:
- FILE_SUFFIX=release
integration_platforms:
- frdm_k64f
- lpcxpresso55s16
- nucleo_h723zg
app.cannectivity.usbd_next:
depends_on: usbd can
extra_args:
- FILE_SUFFIX=usbd_next
integration_platforms:
- frdm_k64f
- lpcxpresso55s16
app.cannectivity.usbd_next.release:
depends_on: usbd can
extra_args:
- FILE_SUFFIX=usbd_next_release
integration_platforms:
- frdm_k64f
- lpcxpresso55s16