8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c510c8a commit 69e2016Copy full SHA for 69e2016
cores/esp8266/core_esp8266_waveform.cpp
@@ -407,16 +407,16 @@ static ICACHE_RAM_ATTR void timer1Interrupt() {
407
nextTimerCcys = callbackCcys;
408
}
409
410
+ // Firing timer too soon, the NMI occurs before ISR has returned.
411
+ if (nextTimerCcys < IRQLATENCYCCYS) {
412
+ nextTimerCcys = IRQLATENCYCCYS;
413
+ }
414
+
415
// Timer is 80MHz fixed. 160MHz CPU frequency need scaling.
416
if (ISCPUFREQ160MHZ || isCPU2X) {
417
nextTimerCcys >>= 1;
418
419
- // Firing timer too soon, the NMI occurs before ISR has returned.
- if (nextTimerCcys <= IRQLATENCYCCYS) {
- nextTimerCcys = IRQLATENCYCCYS;
- }
-
420
// Register access is fast and edge IRQ was configured before.
421
T1L = nextTimerCcys;
422
0 commit comments