Merged in raiden00/nuttx (pull request #515)

stm32_adc.c: clear pending interrupts

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Mateusz Szafoni 2017-10-20 17:15:48 +00:00 committed by Gregory Nutt
parent 9653255cff
commit 704ad2faeb
2 changed files with 6 additions and 6 deletions

View File

@ -2808,10 +2808,10 @@ static int adc_interrupt(FAR struct adc_dev_s *dev)
}
}
/* by MR regval &= ~pending; */
/* by MR adc_putreg(priv, STM32_ADC_ISR_OFFSET, regval);
/* Clear pending interrupts */
adc_putreg(priv, STM32_ADC_ISR_OFFSET, pending);
adc_putreg(priv, STM32_ADC_ISR_OFFSET, pending); */
return OK;
}

View File

@ -1895,10 +1895,10 @@ static int adc_interrupt(FAR struct adc_dev_s *dev)
}
}
/* by MR regval &= ~pending; */
/* by MR adc_putreg(priv, STM32_ADC_ISR_OFFSET, regval);
/* Clear pending interrupts */
adc_putreg(priv, STM32_ADC_ISR_OFFSET, pending);
adc_putreg(priv, STM32_ADC_ISR_OFFSET, pending); */
return OK;
}
#endif