debug testing commit

This commit is contained in:
Emanuele Trabattoni
2026-04-04 03:11:44 +02:00
parent 48df6a509d
commit 941a2b4eaa
11 changed files with 138 additions and 135 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
// Test device Flag
#define TEST
// #define TEST
// Arduino Libraries
#include <Arduino.h>
@@ -20,14 +20,14 @@
// =====================
// Event Flags (bitmask)
// =====================
#define TRIG_FLAG_12P (1 << 0)
#define TRIG_FLAG_12N (1 << 2)
#define TRIG_FLAG_34P (1 << 1)
#define TRIG_FLAG_34N (1 << 3)
static const uint32_t TRIG_FLAG_12P = (1 << 0);
static const uint32_t TRIG_FLAG_12N = (1 << 1);
static const uint32_t TRIG_FLAG_34P = (1 << 2);
static const uint32_t TRIG_FLAG_34N = (1 << 3);
#define SPARK_FLAG_NIL (1 << 8)
#define SPARK_FLAG_12 (1 << 9)
#define SPARK_FLAG_34 (1 << 10)
static const uint32_t SPARK_FLAG_NIL = (1 << 8);
static const uint32_t SPARK_FLAG_12 = (1 << 9);
static const uint32_t SPARK_FLAG_34 = (1 << 10);
// Spark Status
enum sparkStatus
@@ -75,11 +75,11 @@ struct ignitionBoxStatus
float volts_gen = 0.0;
};
struct isrParams {
struct isrParams
{
const uint32_t flag;
ignitionBoxStatus* ign_stat;
TaskHandle_t* rt_handle_ptr;
ignitionBoxStatus *ign_stat;
TaskHandle_t rt_handle_ptr;
};
void IRAM_ATTR trig_isr(void *arg);