-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: adc: Enable ADC tests for frdm_mcxc242 board
Enable ADC tests for frdm_mcxc242 board. Signed-off-by: Michal Smola <michal.smola@nxp.com>
- Loading branch information
1 parent
ff01648
commit f810e13
Showing
5 changed files
with
65 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 @@ | ||
CONFIG_ADC_MCUX_ADC16_VREF_ALTERNATE=y |
28 changes: 28 additions & 0 deletions
28
tests/drivers/adc/adc_accuracy_test/boards/frdm_mcxc242.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,28 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2024 NXP | ||
*/ | ||
|
||
/* Please connect voltage reference to J6.AN pin to run the test. */ | ||
|
||
/ { | ||
zephyr,user { | ||
io-channels = <&adc0 1>; | ||
reference_mv = <1650>; | ||
}; | ||
}; | ||
|
||
&adc0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
channel@1 { | ||
reg = <1>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_VDD_1"; | ||
zephyr,vref-mv = <3300>; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,resolution = <12>; | ||
}; | ||
}; |
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ tests: | |
platform_allow: | ||
- frdm_kl25z | ||
- ek_ra8m1 | ||
- frdm_mcxc242 |
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 @@ | ||
CONFIG_ADC_MCUX_ADC16_VREF_ALTERNATE=y |
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,34 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright 2024 NXP | ||
*/ | ||
|
||
/ { | ||
zephyr,user { | ||
io-channels = <&adc0 0>, <&adc0 1>; | ||
}; | ||
}; | ||
|
||
&adc0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
channel@0 { | ||
reg = <0>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_VDD_1"; | ||
zephyr,vref-mv = <3300>; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,resolution = <12>; | ||
}; | ||
|
||
channel@1 { | ||
reg = <1>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_VDD_1"; | ||
zephyr,vref-mv = <3300>; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,resolution = <12>; | ||
}; | ||
}; |