-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to a lockless waveform generator
Make the waveform generator lockless by doing all dangerous structure updates in the interrupt handler. start/stopWaveform set a flag and cause an interrupt. They wait for the interrupt to complete and clear those flags before returning. Also rework the Waveform[] array to be lockless, results in ~48b additonal heap. About 40b of IRAM additional code generated vs. non-NMI. Tweak parameters to make more accurate timing at 80 and 160 MHz.
- Loading branch information
1 parent
c43b321
commit 99af25c
Showing
1 changed file
with
114 additions
and
145 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