Skip to content

Commit

Permalink
tests: adc: adc_api: add overlay for Nucleo-WB07CC
Browse files Browse the repository at this point in the history
Add an overlay to allow the test to build and run on Nucleo-WB07CC.

Signed-off-by: Mathieu Choplain <[email protected]>
  • Loading branch information
mathieuchopstm committed Jan 8, 2025
1 parent 086fa1a commit c234e3d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions tests/drivers/adc/adc_api/boards/nucleo_wb07cc.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2025 STMicroelectronics
*/

/ {
zephyr,user {
io-channels = <&adc1 4>, <&adc1 12>, <&adc1 13>;
};
};

&adc1 {
status = "okay";

pinctrl-0 = <&adc1_vinp0_pb3>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;

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

adc_vbat_ch: channel@c {
reg = <12>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_VDD_1";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

adc_tempsensor_ch: channel@d {
reg = <13>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_VDD_1_3";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};

0 comments on commit c234e3d

Please sign in to comment.