Skip to content

Commit

Permalink
tests: drivers: adc: adc_api: support numaker_pfm_m467
Browse files Browse the repository at this point in the history
Add support for Nuvoton numaker board numaker_pfm_m467.

Signed-off-by: cyliang tw <[email protected]>
  • Loading branch information
cyliangtw authored and carlescufi committed Jan 2, 2024
1 parent 9ad8e1a commit d001258
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions tests/drivers/adc/adc_api/boards/numaker_pfm_m467.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* SPDX-License-Identifier: Apache-2.0 */

/ {
zephyr,user {
io-channels = <&eadc0 0>, <&eadc0 2>;
};
};

&pinctrl {
/* EVB's UNO Pin A4 & D0 for channel 0 & 2 --> PB0, PB2 */
eadc0_default: eadc0_default {
group0 {
pinmux = <PB0MFP_EADC0_CH0>, <PB2MFP_EADC0_CH2>;
};
};
};

&eadc0 {
status = "okay";
pinctrl-0 = <&eadc0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;

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

channel@2 {
reg = <2>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <10>;
};
};
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ manifest:
groups:
- hal
- name: hal_nuvoton
revision: 584190e131655de1046088bd0d0735d83429ec7c
revision: 68a91bb343ff47e40dbd9189a7d6e3ee801a7135
path: modules/hal/nuvoton
groups:
- hal
Expand Down

0 comments on commit d001258

Please sign in to comment.