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:
parent
9653255cff
commit
704ad2faeb
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user