From de7b63258a5a036d23ad1cabf0b6fc3956560b9e Mon Sep 17 00:00:00 2001 From: Amitesh Singh Date: Mon, 20 Jul 2020 18:35:05 +0530 Subject: [PATCH] f1: adc_inj - remove the code which clears EOC flag. According to DS, the EOC flag is reset by the next trigger In this example, we are already calling adc_start_conversion_injected() which resets the EOC flag. Signed-off-by: Amitesh Singh --- examples/stm32/f1/lisa-m-2/adc_injec/adc_injec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/stm32/f1/lisa-m-2/adc_injec/adc_injec.c b/examples/stm32/f1/lisa-m-2/adc_injec/adc_injec.c index 7b550bde..6025c5b6 100644 --- a/examples/stm32/f1/lisa-m-2/adc_injec/adc_injec.c +++ b/examples/stm32/f1/lisa-m-2/adc_injec/adc_injec.c @@ -154,7 +154,6 @@ int main(void) /* Wait for end of conversion. */ while (!(adc_eoc_injected(ADC1))); - ADC_SR(ADC2) &= ~ADC_SR_JEOC; //clear injected end of conversion temperature = adc_read_injected(ADC1,1); //get the result from ADC_JDR1 on ADC1 (only bottom 16bits)