mirror of https://github.com/rusefi/rusefi-1.git
auto-sync
This commit is contained in:
parent
cac7d97683
commit
aff55c3a6f
|
@ -156,18 +156,20 @@ void dbg_check_unlock_from_isr(void) {
|
|||
|
||||
void firmwareError(const char *fmt, ...);
|
||||
|
||||
extern int maxNesting;
|
||||
|
||||
/**
|
||||
* @brief Guard code for @p CH_IRQ_PROLOGUE().
|
||||
*
|
||||
* @notapi
|
||||
*/
|
||||
void dbg_check_enter_isr(void) {
|
||||
if (dbg_isr_cnt >= 2)
|
||||
firmwareError("nesting3");
|
||||
port_lock_from_isr();
|
||||
if ((dbg_isr_cnt < 0) || (dbg_lock_cnt != 0))
|
||||
chDbgPanic("SV#8");
|
||||
dbg_isr_cnt++;
|
||||
if (dbg_isr_cnt > maxNesting)
|
||||
maxNesting = dbg_isr_cnt;
|
||||
port_unlock_from_isr();
|
||||
}
|
||||
|
||||
|
|
|
@ -36,6 +36,8 @@ static Logging logger;
|
|||
|
||||
static char LOGGING_BUFFER[1000];
|
||||
|
||||
int maxNesting = 0;
|
||||
|
||||
/*
|
||||
static void printIntArray(int array[], int size) {
|
||||
for (int j = 0; j < size; j++) {
|
||||
|
@ -160,7 +162,8 @@ void printConfiguration(engine_configuration_s *engineConfiguration, engine_conf
|
|||
|
||||
printOutputs(engineConfiguration, engineConfiguration2);
|
||||
|
||||
scheduleMsg(&logger, "boardTestModeJumperPin: %s", hwPortname(boardConfiguration->boardTestModeJumperPin));
|
||||
scheduleMsg(&logger, "boardTestModeJumperPin: %s/nesting=%d", hwPortname(boardConfiguration->boardTestModeJumperPin),
|
||||
maxNesting);
|
||||
|
||||
scheduleMsg(&logger, "digitalPotentiometerSpiDevice %d", boardConfiguration->digitalPotentiometerSpiDevice);
|
||||
|
||||
|
|
|
@ -216,7 +216,7 @@ static void triggerInfo(Engine *engine) {
|
|||
scheduleMsg(&logger, "expected duty #0=%f/#1=%f", engineConfiguration2->triggerShape.dutyCycle[0],
|
||||
engineConfiguration2->triggerShape.dutyCycle[1]);
|
||||
|
||||
scheduleMsg(&logger, "isError %d, total errors=%d/total revolutions=%d", isTriggerDecoderError(),
|
||||
scheduleMsg(&logger, "isError %d/total errors=%d/total revolutions=%d", isTriggerDecoderError(),
|
||||
triggerCentral.triggerState.totalTriggerErrorCounter,
|
||||
triggerCentral.triggerState.getTotalRevolutionCounter());
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by Version2Header
|
||||
// Tue Nov 11 16:09:04 EST 2014
|
||||
// Thu Nov 13 18:00:01 EST 2014
|
||||
#ifndef VCS_VERSION
|
||||
#define VCS_VERSION "5296"
|
||||
#define VCS_VERSION "5333"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue