-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: drivers: Add nucleo_f722ze board support
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
1 parent
e704d1f
commit 806cab0
Showing
3 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; | ||
}; |
93 changes: 93 additions & 0 deletions
93
tests/drivers/counter/counter_basic_api/boards/nucleo_f722ze.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters