mirror of https://github.com/rusefi/rusefi-1.git
status check
This commit is contained in:
parent
4832d893ba
commit
d25ba6a3ef
|
@ -60,6 +60,7 @@ static void waAnaWidthCallback(WaveReader *reader) {
|
||||||
efitick_t nowUs = getTimeNowUs();
|
efitick_t nowUs = getTimeNowUs();
|
||||||
reader->riseEventCounter++;
|
reader->riseEventCounter++;
|
||||||
reader->lastActivityTimeUs = nowUs;
|
reader->lastActivityTimeUs = nowUs;
|
||||||
|
assertIsrContext(CUSTOM_ERR_6670);
|
||||||
addEngineSniffferEvent(reader->name, WC_UP);
|
addEngineSniffferEvent(reader->name, WC_UP);
|
||||||
|
|
||||||
uint32_t width = nowUs - reader->periodEventTimeUs;
|
uint32_t width = nowUs - reader->periodEventTimeUs;
|
||||||
|
@ -73,6 +74,7 @@ void WaveReader::onFallEvent() {
|
||||||
efitick_t nowUs = getTimeNowUs();
|
efitick_t nowUs = getTimeNowUs();
|
||||||
fallEventCounter++;
|
fallEventCounter++;
|
||||||
lastActivityTimeUs = nowUs;
|
lastActivityTimeUs = nowUs;
|
||||||
|
assertIsrContext(CUSTOM_ERR_6670);
|
||||||
addEngineSniffferEvent(name, WC_DOWN);
|
addEngineSniffferEvent(name, WC_DOWN);
|
||||||
|
|
||||||
efitick_t width = nowUs - widthEventTimeUs;
|
efitick_t width = nowUs - widthEventTimeUs;
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
#define isLocked() (ch.dbg.lock_cnt > 0)
|
#define isLocked() (ch.dbg.lock_cnt > 0)
|
||||||
#define isIsrContext() (ch.dbg.isr_cnt > 0)
|
#define isIsrContext() (ch.dbg.isr_cnt > 0)
|
||||||
|
|
||||||
|
#define assertIsrContext(code) efiAssertVoid(code, isIsrContext(), "NOT_ISR")
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue