Gadget
Functions
interrupthandler.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void registerInterrupts (volatile int *interrupted)
 This is the function that registers the interrupt handler. More...
 
void interruptHandler (int signal)
 This is the function that gets called when an interrupt occurs. More...
 

Function Documentation

◆ interruptHandler()

void interruptHandler ( int  signal)

This is the function that gets called when an interrupt occurs.

Parameters
signalis the signal to handle

◆ registerInterrupts()

void registerInterrupts ( volatile int *  interrupted)

This is the function that registers the interrupt handler.

Parameters
interruptedis a pointer to a flag that will be set to 1 when an interrupt occurs