Skip to content

Commit b45a2d2

Browse files
committed
Recalibrate after latest changes.
1 parent 3b18d51 commit b45a2d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/esp8266/core_esp8266_waveform.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747
// Maximum delay between IRQs, Timer1, <= 2^23 / 80MHz
4848
constexpr int32_t MAXIRQTICKSCCYS = microsecondsToClockCycles(10000);
4949
// Maximum servicing time for any single IRQ
50-
constexpr uint32_t ISRTIMEOUTCCYS = microsecondsToClockCycles(14);
50+
constexpr uint32_t ISRTIMEOUTCCYS = microsecondsToClockCycles(18);
5151
// The SDK and hardware take some time to actually get to our NMI code, so
5252
// decrement the next IRQ's timer value by a bit so we can actually catch the
5353
// real CPU cycle count we want for the waveforms.
5454
constexpr int32_t DELTAIRQCCYS = clockCyclesPerMicrosecond() == 160 ?
55-
microsecondsToClockCycles(5) >> 1 : microsecondsToClockCycles(5);
55+
microsecondsToClockCycles(2) >> 1 : microsecondsToClockCycles(2);
5656
// The latency between in-ISR rearming of the timer and the earliest firing
5757
constexpr int32_t IRQLATENCYCCYS = clockCyclesPerMicrosecond() == 160 ?
58-
microsecondsToClockCycles(1) >> 1 : microsecondsToClockCycles(1);
58+
(microsecondsToClockCycles(3) / 2) >> 1 : (microsecondsToClockCycles(3) / 2);
5959

6060
// for INFINITE, the NMI proceeds on the waveform without expiry deadline.
6161
// for EXPIRES, the NMI expires the waveform automatically on the expiry ccy.

0 commit comments

Comments
 (0)