Skip to content

Commit d39c3b0

Browse files
committed
Adjust interrupt_overhead values to account for faster interrupt switches.
1 parent ad6faf4 commit d39c3b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/esp8266/test/test_interrupt_overhead.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ TEST_CASE("Test interrupt overhead time", "[log]") {
6969
uint32_t overhead_total = cpu_clk_cnt_stop - cpu_clk_cnt_start;
7070

7171
#if CONFIG_OPTIMIZATION_LEVEL_DEBUG
72-
# define INTERRUPT_OVERHEAD_ENTER_TIME 334
73-
# define INTERRUPT_OVERHEAD_TOTAL_TIME 459
72+
# define INTERRUPT_OVERHEAD_ENTER_TIME 119
73+
# define INTERRUPT_OVERHEAD_TOTAL_TIME 189
7474
#else // CONFIG_OPTIMIZATION_LEVEL_RELEASE
75-
# define INTERRUPT_OVERHEAD_ENTER_TIME 258
76-
# define INTERRUPT_OVERHEAD_TOTAL_TIME 385
75+
# define INTERRUPT_OVERHEAD_ENTER_TIME 120
76+
# define INTERRUPT_OVERHEAD_TOTAL_TIME 190
7777
#endif
7878

7979
if (overhead_enter != INTERRUPT_OVERHEAD_ENTER_TIME ||

0 commit comments

Comments
 (0)