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.

Revision:
3:7b8a744ac27a
Parent:
2:0e3b2bc65131
Child:
4:a34eddd0a2be
--- a/InterruptMask.cpp	Tue Feb 18 15:41:47 2014 +0000
+++ b/InterruptMask.cpp	Tue Feb 18 15:44:49 2014 +0000
@@ -8,7 +8,7 @@
 //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. The constructor
 //will only accept a valid pin, otherwise it will cause the prgram to exit with an error.   
-InterruptMask::InterruptMask(int somePin){
+InterruptMask::InterruptMask(PinName somePin){
     switch(somePin){
     case p5:
     case p6: