Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9338442

Browse filesBrowse files
committed
Recalibrate after latest changes.
1 parent a0e3259 commit 9338442
Copy full SHA for 9338442

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎cores/esp8266/core_esp8266_waveform.cpp

Copy file name to clipboardExpand all lines: cores/esp8266/core_esp8266_waveform.cpp
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.