Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed behaviour when analog is disabled. Now the SPI bus is (mostly) …
…left alone and the audio still runs. Closes #7. We could use an improvement to the PRU code that removes any SPI transaction.
- Loading branch information
1 parent
4479ea0
commit d7f71f0
Showing
3 changed files
with
8 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@apmcpherson The issue was that by setting
when analog was disabled (and thus
context->analogFrames == 0
), then the PRU loop would never exit becausereg_frame_total
would be in turn set to 0 and the conditionwould never be met (given that you get there the first time when
reg_frame_current == 2
).