File tree Expand file tree Collapse file tree 6 files changed +43
-50
lines changed Expand file tree Collapse file tree 6 files changed +43
-50
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ toolchain:
13
13
supported :
14
14
- watchdog
15
15
- dma
16
+ - adc
16
17
vendor : gd
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ toolchain:
14
14
- zephyr
15
15
- gnuarmemb
16
16
supported :
17
+ - adc
17
18
- arduino_gpio
18
19
- can
19
20
- dac
Original file line number Diff line number Diff line change
1
+ # ADC DT sample configuration options
2
+
3
+ # Copyright The Zephyr Project Contributors
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
+ source "Kconfig.zephyr"
7
+
8
+ ZEPHYR_USER := zephyr,user
9
+
10
+ config SAMPLE_ADC_DT_RUN
11
+ bool "Run ADC DT Sample"
12
+ default y if $(dt_node_has_prop,/$(ZEPHYR_USER),io-channels)
13
+ help
14
+ Platform supports ADC DT Sample
Original file line number Diff line number Diff line change 1
1
sample :
2
2
name : ADC devicetree driver sample
3
+ common :
4
+ tags :
5
+ - adc
6
+ depends_on : adc
7
+ filter : CONFIG_SAMPLE_ADC_DT_RUN
8
+
3
9
tests :
4
10
sample.drivers.adc.adc_dt :
5
- tags :
6
- - adc
7
- depends_on : adc
8
- platform_allow :
9
- - nucleo_l073rz
10
- - disco_l475_iot1
11
+ integration_platforms :
11
12
- cc3220sf_launchxl
12
- - cc3235sf_launchxl
13
- - cy8cproto_063_ble
14
- - stm32l496g_disco
15
- - stm32h735g_disco
16
- - nrf51dk/nrf51822
17
- - nrf52840dk/nrf52840
18
- - nrf54h20dk/nrf54h20/cpuapp
19
- - nrf54l15dk/nrf54l15/cpuapp
20
- - nrf54lm20dk/nrf54lm20a/cpuapp
21
- - ophelia4ev/nrf54l15/cpuapp
22
- - mec172xevb_assy6906
23
- - gd32f350r_eval
24
- - gd32f450i_eval
25
- - gd32vf103v_eval
26
- - gd32f403z_eval
27
- - esp32_devkitc/esp32/procpu
28
- - esp32s2_saola
29
13
- esp32c3_devkitm
30
- - gd32l233r_eval
14
+ - frdm_mcxa166
15
+ - gd32f350r_eval
31
16
- lpcxpresso55s36
32
- - mr_canhubk3
33
- - longan_nano
34
- - longan_nano/gd32vf103/lite
35
- - rd_rw612_bga
36
- - frdm_mcxn947/mcxn947/cpu0
37
17
- mcx_n9xx_evk/mcxn947/cpu0
38
- - frdm_mcxc242
39
- - ucans32k1sic
40
- - xg24_rb4187c
41
- - xg29_rb4412a
42
- - raytac_an54l15q_db/nrf54l15/cpuapp
43
- - frdm_mcxa166
44
- - frdm_mcxa276
45
- - s32k148_evb
46
- integration_platforms :
47
- - nucleo_l073rz
18
+ - mec172xevb_assy6906
48
19
- nrf52840dk/nrf52840
20
+ - nucleo_l073rz
21
+ - rd_rw612_bga
22
+ - s32k148_evb
23
+ - xg24_rb4187c
49
24
harness : console
50
25
timeout : 10
51
26
harness_config :
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2024 Centro de Inovacao EDGE.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
+ config SAMPLE_ADC_SEQ_RUN
5
+ bool "Run ADC Sequence Sample"
6
+ default y if $(dt_alias_enabled,adc0)
7
+ help
8
+ Platform supports ADC Sequence Sample
9
+
10
+ if SAMPLE_ADC_SEQ_RUN
11
+
4
12
config SEQUENCE_SAMPLES
5
13
int "Number of samples to be made on the sequence for each channel."
6
14
default 5
@@ -13,4 +21,6 @@ config SEQUENCE_32BITS_REGISTERS
13
21
bool "ADC data sequences are on 32bits"
14
22
default n
15
23
24
+ endif # SAMPLE_ADC_SEQ_RUN
25
+
16
26
source "Kconfig.zephyr"
Original file line number Diff line number Diff line change 4
4
tags :
5
5
- adc
6
6
depends_on : adc
7
+ filter : CONFIG_SAMPLE_ADC_SEQ_RUN
7
8
harness : console
8
9
timeout : 10
9
10
harness_config :
@@ -14,21 +15,12 @@ common:
14
15
- " - - \\ d+ (= \\ d+mV)|(\\ (value in mV not available\\ ))"
15
16
tests :
16
17
sample.drivers.adc.adc_sequence :
17
- platform_allow :
18
+ integration_platforms :
18
19
- cy8cproto_063_ble
19
- - cy8cproto_062_4343w
20
+ - frdm_mcxc242
20
21
- nrf52840dk/nrf52840
21
- - nrf54h20dk/nrf54h20/cpuapp
22
- - nrf54l15dk/nrf54l15/cpuapp
23
- - nrf54lm20dk/nrf54lm20a/cpuapp
24
- - ophelia4ev/nrf54l15/cpuapp
25
- - raytac_an54l15q_db/nrf54l15/cpuapp
26
- - ucans32k1sic
27
22
- s32k148_evb
28
- - frdm_mcxc242
29
23
- stm32f3_disco
30
- integration_platforms :
31
- - nrf52840dk/nrf52840
32
24
sample.drivers.adc.adc_sequence.8bit :
33
25
platform_allow :
34
26
- nrf54h20dk/nrf54h20/cpuapp
You can’t perform that action at this time.
0 commit comments