ESP32-PaxCounter/include/irqhandler.h

43 lines
750 B
C
Raw Normal View History

#ifndef _IRQHANDLER_H
#define _IRQHANDLER_H
2019-05-07 21:17:06 +02:00
#define DISPLAY_IRQ 0x001
#define BUTTON_IRQ 0x002
#define SENDCYCLE_IRQ 0x004
#define CYCLIC_IRQ 0x008
#define TIMESYNC_IRQ 0x010
#define MASK_IRQ 0x020
#define UNMASK_IRQ 0x040
#define BME_IRQ 0x080
2019-05-07 21:17:06 +02:00
#define MATRIX_DISPLAY_IRQ 0x100
#define PMU_IRQ 0x200
#include "globals.h"
#include "cyclic.h"
#include "senddata.h"
2019-02-27 00:52:27 +01:00
#include "timekeeper.h"
#include "bmesensor.h"
#include "power.h"
void irqHandler(void *pvParameters);
void mask_user_IRQ();
void unmask_user_IRQ();
2018-10-04 23:24:34 +02:00
2019-03-13 22:08:05 +01:00
#ifdef HAS_DISPLAY
2018-10-04 22:59:02 +02:00
void IRAM_ATTR DisplayIRQ();
#endif
2018-10-04 23:24:34 +02:00
#ifdef HAS_MATRIX_DISPLAY
void IRAM_ATTR MatrixDisplayIRQ();
#endif
2018-10-04 22:59:02 +02:00
#ifdef HAS_BUTTON
void IRAM_ATTR ButtonIRQ();
#endif
#ifdef HAS_PMU
void IRAM_ATTR PMUIRQ();
#endif
#endif