samples: drivers: adc: add gd32l233r_eval board

adc sample support gd32l233r_eval board.

Signed-off-by: HaiLong Yang <hailong.yang@brainco.cn>
This commit is contained in:
HaiLong Yang 2022-11-30 17:39:24 +08:00 committed by Carles Cufí
commit d850bec2c8
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,27 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2022 BrainCo Inc.
*/
#include <zephyr/dt-bindings/adc/adc.h>
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
io-channels = <&adc0 1>;
};
};
&adc0 {
#address-cells = <1>;
#size-cells = <0>;
channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};

View file

@ -7,7 +7,7 @@ tests:
platform_allow: nucleo_l073rz disco_l475_iot1 cc3220sf_launchxl
cc3235sf_launchxl stm32l496g_disco nrf51dk_nrf51422 nrf52840dk_nrf52840
mec172xevb_assy6906 gd32f350r_eval gd32f450i_eval gd32vf103v_eval gd32f403z_eval
esp32 esp32s2_saola esp32c3_devkitm
esp32 esp32s2_saola esp32c3_devkitm gd32l233r_eval
integration_platforms:
- nucleo_l073rz
- nrf52840dk_nrf52840