We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it is called twice because the flag is cleared before the reading of the data in the user callback
void __attribute__((used)) ADC_DF1_InterruptHandler(void) { IFS1CLR = _IFS1_ADCDF1IF_MASK; if (ADCHS_DFCallbackObj[0].callback_fn != NULL) { ADCHS_DFCallbackObj[0].callback_fn(ADCHS_DFCallbackObj[0].context); } }
I have fixed it clearing the flag again in the callback after the reading but I think that the library should be fixed this way
void __attribute__((used)) ADC_DF1_InterruptHandler(void) { if (ADCHS_DFCallbackObj[0].callback_fn != NULL) { ADCHS_DFCallbackObj[0].callback_fn(ADCHS_DFCallbackObj[0].context); } IFS1CLR = _IFS1_ADCDF1IF_MASK; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
it is called twice because the flag is cleared before the reading of the data in the user callback
I have fixed it clearing the flag again in the callback after the reading but I think that the library should be fixed this way
The text was updated successfully, but these errors were encountered: