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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant