From ae046fe5eab8221e49558f49775d543071d23d77 Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Mon, 26 Aug 2024 20:20:24 +1000 Subject: [PATCH] adc: adc_nrfx_saadc: support `ADC_ACQ_TIME_MAX` Support the `ADC_ACQ_TIME_MAX` define in addition to `ADC_ACQ_TIME_DEFAULT`. Signed-off-by: Jordan Yates --- drivers/adc/adc_nrfx_saadc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/adc/adc_nrfx_saadc.c b/drivers/adc/adc_nrfx_saadc.c index 23ddbc2a5b0..052eab45b6c 100644 --- a/drivers/adc/adc_nrfx_saadc.c +++ b/drivers/adc/adc_nrfx_saadc.c @@ -133,6 +133,7 @@ static int adc_convert_acq_time(uint16_t acquisition_time, nrf_saadc_acqtime_t * case ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 20): *p_tacq_val = NRF_SAADC_ACQTIME_20US; break; + case ADC_ACQ_TIME_MAX: case ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 40): *p_tacq_val = NRF_SAADC_ACQTIME_40US; break;