Skip to content

Commit

Permalink
tests: drivers: Add nucleo_f722ze board support
Browse files Browse the repository at this point in the history
Add overlays for the adc_api and counter_basic_api tests. Support
Nucleo F722ZE in the dac_api test.

Signed-off-by: Evan Perry Grove <evan@4grove.com>
  • Loading branch information
ryukoposting committed Dec 8, 2023
1 parent e704d1f commit 806cab0
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/drivers/adc/adc_api/boards/nucleo_f722ze.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2023 Evan Perry Grove
*/

/ {
zephyr,user {
io-channels = <&adc1 3>, <&adc1 10>;
};
};

&adc1 {
#address-cells = <1>;
#size-cells = <0>;

channel@3 {
reg = <3>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

channel@a {
reg = <10>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2023 Evan Perry Grove
*/

&clk_lsi {
status = "okay";
};

&timers2 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers3 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers4 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers5 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers6 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers7 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers9 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers10 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers11 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers12 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers13 {
st,prescaler = <79>;
counter {
status = "okay";
};
};

&timers14 {
st,prescaler = <79>;
counter {
status = "okay";
};
};
1 change: 1 addition & 0 deletions tests/drivers/dac/dac_api/src/test_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
defined(CONFIG_BOARD_NUCLEO_F429ZI) || \
defined(CONFIG_BOARD_NUCLEO_F746ZG) || \
defined(CONFIG_BOARD_NUCLEO_F767ZI) || \
defined(CONFIG_BOARD_NUCLEO_F722ZE) || \
defined(CONFIG_BOARD_NUCLEO_G071RB) || \
defined(CONFIG_BOARD_NUCLEO_G431RB) || \
defined(CONFIG_BOARD_NUCLEO_G474RE) || \
Expand Down

0 comments on commit 806cab0

Please sign in to comment.