don't bit-band
This commit is contained in:
parent
aca9fc79ac
commit
d7b7ebc185
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ volatile uint32_t gADCErrors = 0; // number of missed ADC deadlines
|
||||||
void ADC_ISR(void)
|
void ADC_ISR(void)
|
||||||
{
|
{
|
||||||
// clear ADC1 sequence0 interrupt flag in the ADCISC register
|
// clear ADC1 sequence0 interrupt flag in the ADCISC register
|
||||||
HWREGBITW(ADC1_ISC_R, 16) = 1;
|
//HWREGBITW(ADC1_ISC_R, 1) = 1;
|
||||||
|
ADC1_ISC_R |= 1;
|
||||||
|
|
||||||
// check for ADC FIFO overflow
|
// check for ADC FIFO overflow
|
||||||
if(ADC1_OSTAT_R & ADC_OSTAT_OV0) {
|
if(ADC1_OSTAT_R & ADC_OSTAT_OV0) {
|
||||||
|
|
Loading…
Reference in a new issue