Skip to content

Commit ca98cbf

Browse files
committed
adc: iio: hardware: reduce STM32 ADC sampling rate to 80Hz
And 4x oversampling. The slower sampling rate and oversampling factor is still sufficient to keep the noise level low and reduces the CPU load a bit. Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
1 parent 2e08d94 commit ca98cbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/adc/iio/hardware.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ impl IioThread {
407407
"stm32",
408408
"48003000.adc:adc@0",
409409
"tim4_trgo",
410-
1024,
410+
80,
411411
CHANNELS_STM32,
412-
128,
412+
4,
413413
)
414414
.await
415415
}

0 commit comments

Comments
 (0)