Skip to content
New issue

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

SGPIO deadline check #1510

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

martinling
Copy link
Member

Checks whether the M0 core missed its deadline: i.e. if the next SGPIO interrupt already occurred by the time it finished processing the last one.

If so, the M0 returns to the idle mode with an error code in the M0 state. This should cause the host tools to time out, at which point the error can be checked with hackrf_debug -S.

Counter-intuitively, this actually saves us two cycles because we unroll
the first iteration of the loop that spins on the interrupt flag, saving
a branch in the case that the flag is clear the first time.
@martinling martinling marked this pull request as ready for review November 27, 2024 14:04
@martinling martinling requested a review from mndza December 2, 2024 17:15
@martinling martinling added the enhancement potential new feature label Dec 4, 2024
@mossmann mossmann merged commit 7543153 into greatscottgadgets:master Dec 5, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement potential new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants