From 220949f0fa26e08e45f502e3923ea65ba9c378c4 Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 23 Jan 2018 13:04:30 -0500 Subject: [PATCH] docs --- firmware/hw_layer/hardware.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/firmware/hw_layer/hardware.cpp b/firmware/hw_layer/hardware.cpp index 409633c920..ee0fdf6834 100644 --- a/firmware/hw_layer/hardware.cpp +++ b/firmware/hw_layer/hardware.cpp @@ -59,6 +59,16 @@ extern bool hasFirmwareErrorFlag; static mutex_t spiMtx; +/** + * this depends on patch to chdebug.c ++extern int maxNesting; + ch.dbg.isr_cnt++; ++ if (ch.dbg.isr_cnt > maxNesting) ++ maxNesting = ch.dbg.isr_cnt; + port_unlock_from_isr(); + * + */ +// todo: rename this to 'rusefiMaxISRNesting' one day int maxNesting = 0; #if HAL_USE_SPI || defined(__DOXYGEN__)