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>
16 lines
393 B
Text
16 lines
393 B
Text
# Copyright (c) 2024 Centro de Inovacao EDGE.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config SEQUENCE_SAMPLES
|
|
int "Number of samples to be made on the sequence for each channel."
|
|
default 5
|
|
|
|
config SEQUENCE_RESOLUTION
|
|
int "Set the resolution of the sequence readings."
|
|
default 12
|
|
|
|
config SEQUENCE_32BITS_REGISTERS
|
|
bool "ADC data sequences are on 32bits"
|
|
default n
|
|
|
|
source "Kconfig.zephyr"
|