This examples shows how to use the AD4114 ADC on a stm32f3_disco board. As the AD4114 is a 24bits ADC resolution we need to be able to pass 32bits buffer to get the samples. CONFIG_SEQUENCE_RESOLUTION is set to 12 instead of 24, and the gain zephyr,vref-mv is adapted to avoid overflows using the exisiting adc_raw_to_millivolts function. Signed-off-by: Pierrick Curt <pierrickcurt@gmail.com>
27 lines
677 B
YAML
27 lines
677 B
YAML
sample:
|
|
name: ADC driver sequence sample
|
|
tests:
|
|
sample.drivers.adc.adc_sequence:
|
|
tags:
|
|
- adc
|
|
depends_on: adc
|
|
platform_allow:
|
|
- cy8cproto_063_ble
|
|
- cy8cproto_062_4343w
|
|
- nrf52840dk/nrf52840
|
|
- nrf54l15dk/nrf54l15/cpuapp
|
|
- nrf54h20dk/nrf54h20/cpuapp
|
|
- ucans32k1sic
|
|
- frdm_mcxc242
|
|
- stm32f3_disco
|
|
integration_platforms:
|
|
- nrf52840dk/nrf52840
|
|
harness: console
|
|
timeout: 10
|
|
harness_config:
|
|
type: multi_line
|
|
regex:
|
|
- "ADC sequence reading \\[\\d+\\]:"
|
|
- "- .+, channel \\d+, \\d+ sequence samples:"
|
|
- "- - \\d+ (= \\d+mV)|(\\(value in mV not available\\))"
|