InterruptMask library allows masking/unmasking GPIO interrupts (attached to either the rise or falling edges). It also allows clearing pending interrupts which may come handy before unmasking them.
Diff: InterruptMask.h
- Revision:
- 3:7b8a744ac27a
- Parent:
- 2:0e3b2bc65131
- Child:
- 4:a34eddd0a2be
--- a/InterruptMask.h Tue Feb 18 15:41:47 2014 +0000 +++ b/InterruptMask.h Tue Feb 18 15:44:49 2014 +0000 @@ -92,7 +92,7 @@ InterruptMask(); //Constructor to be used, initialize with any valid mbed pin (p5 thru p30 except pins 19-20) //you will need one InterruptMask for every pin you want ot have control over. - InterruptMask(int GPIOpin); + InterruptMask(PinName GPIOpin); //This method will mask (disable) any rising edge interrupts of the specified pin void maskIntR(void);