#pragma once

// Test device Flag
// #define TEST

// Arduino Libraries
#include <Arduino.h>
#include "soc/gpio_struct.h"
#include <map>
#ifndef TEST
#include "pins.h"
#else
#include "pins_test.h"
#endif
#include "datastruct.h"

#define CORE_0 0
#define CORE_1 1
#define RT_TASK_STACK 4096                          // in words
#define RT_TASK_PRIORITY (configMAX_PRIORITIES - 4) // highest priority after wifi tasks

struct isrParams
{
    const uint32_t flag;
    ignitionBoxStatus *ign_stat;
    TaskHandle_t rt_handle_ptr;
};

void IRAM_ATTR trig_isr(void *arg);
