Skip to content

Commit 1dd4a22

Browse files
samples: adc_sequence: add oversampling configuration option
This commit introduces a new Kconfig option for oversampling in the ADC sequence sample. It allows to test oversampling for IADC sequences. Signed-off-by: Martin Hoff <[email protected]>
1 parent a4c3060 commit 1dd4a22

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

samples/drivers/adc/adc_sequence/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ config SEQUENCE_RESOLUTION
99
int "Set the resolution of the sequence readings."
1010
default 12
1111

12+
config SEQUENCE_OVERSAMPLING
13+
int "Set the oversampling of the sequence readings."
14+
default 0
15+
1216
config SEQUENCE_32BITS_REGISTERS
1317
bool "ADC data sequences are on 32bits"
1418
default n

samples/drivers/adc/adc_sequence/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ int main(void)
4848
/* buffer size in bytes, not number of samples */
4949
.buffer_size = sizeof(channel_reading),
5050
.resolution = CONFIG_SEQUENCE_RESOLUTION,
51+
.oversampling = CONFIG_SEQUENCE_OVERSAMPLING,
5152
.options = &options,
5253
};
5354

0 commit comments

Comments
 (0)