8000 Full consolidation of "phase locking" and "PWM locking" waveform generators by dok-net · Pull Request #8011 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Full consolidation of "phase locking" and "PWM locking" waveform generators #8011

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

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove paranoid check.
  • Loading branch information
dok-net committed Dec 23, 2022
commit 87500880df719452bb5e88e4b5e8468bd72d83ae
8 changes: 3 additions & 5 deletions cores/esp8266/core_esp8266_waveform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,9 @@ static IRAM_ATTR void timer1Interrupt() {
else {
do {
// Drop the pin at this edge
if (pwmState.mask & (1 << pwmState.pin[pwmState.idx])) {
GPOC = 1 << pwmState.pin[pwmState.idx];
if (pwmState.pin[pwmState.idx] == 16) {
GP16O = 0;
}
GPOC = 1 << pwmState.pin[pwmState.idx];
if (pwmState.pin[pwmState.idx] == 16) {
GP16O = 0;
}
pwmState.idx++;
// Any other pins at this same PWM value will have delta==0, drop them too.
Expand Down
0