RSeries astromech firmware
PinInterruptHandler.h File Reference
#include "ReelTwo.h"
+ Include dependency graph for PinInterruptHandler.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PinInterruptHandler
 

Macros

#define ATTACH_INTTERUPT(num)
 
#define MAX_ISR_COUNT   20
 
#define DEFINE_ISR_HANDLER(n)
 

Macro Definition Documentation

◆ ATTACH_INTTERUPT

#define ATTACH_INTTERUPT (   num)
Value:
case num: \
::attachInterrupt(inum, ISR_##num, CHANGE); \
break;

◆ DEFINE_ISR_HANDLER

#define DEFINE_ISR_HANDLER (   n)
Value:
static void ISR_##n() \
{ \
PinInterruptHandler* handler = handlerToISR(n); \
if (handler != nullptr) \
handler->interrupt(); \
}

◆ MAX_ISR_COUNT

#define MAX_ISR_COUNT   20