2018-10-04 22:08:54 +02:00
|
|
|
#ifndef _IRQHANDLER_H
|
|
|
|
#define _IRQHANDLER_H
|
|
|
|
|
2021-01-09 23:52:29 +01:00
|
|
|
#define DISPLAY_IRQ _bitl(0)
|
|
|
|
#define BUTTON_IRQ _bitl(1)
|
|
|
|
#define SENDCYCLE_IRQ _bitl(2)
|
|
|
|
#define CYCLIC_IRQ _bitl(3)
|
|
|
|
#define TIMESYNC_IRQ _bitl(4)
|
|
|
|
#define MASK_IRQ _bitl(5)
|
|
|
|
#define UNMASK_IRQ _bitl(6)
|
|
|
|
#define BME_IRQ _bitl(7)
|
|
|
|
#define MATRIX_DISPLAY_IRQ _bitl(8)
|
|
|
|
#define PMU_IRQ _bitl(9)
|
2018-10-04 22:08:54 +02:00
|
|
|
|
|
|
|
#include "globals.h"
|
2020-03-29 18:08:52 +02:00
|
|
|
#include "button.h"
|
2018-10-04 22:08:54 +02:00
|
|
|
#include "cyclic.h"
|
|
|
|
#include "senddata.h"
|
2019-02-27 00:52:27 +01:00
|
|
|
#include "timekeeper.h"
|
2019-07-29 20:23:27 +02:00
|
|
|
#include "bmesensor.h"
|
2019-09-09 21:45:19 +02:00
|
|
|
#include "power.h"
|
2020-03-29 18:08:52 +02:00
|
|
|
#include "ledmatrixdisplay.h"
|
2018-10-04 22:08:54 +02:00
|
|
|
|
|
|
|
void irqHandler(void *pvParameters);
|
2019-07-23 20:07:24 +02:00
|
|
|
void mask_user_IRQ();
|
|
|
|
void unmask_user_IRQ();
|
2020-06-16 20:29:49 +02:00
|
|
|
void doIRQ(int 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
|
|
|
|
2019-05-05 23:43:18 +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
|
2018-10-04 22:08:54 +02:00
|
|
|
|
2019-09-09 21:45:19 +02:00
|
|
|
#ifdef HAS_PMU
|
|
|
|
void IRAM_ATTR PMUIRQ();
|
|
|
|
#endif
|
|
|
|
|
2019-01-27 18:19:25 +01:00
|
|
|
#endif
|