A simple example that uses the GPIO group and pin interrupts. LED1 turns on when P21 and P22 are grounded (using group 0 interrupt) LED1 turns of when P23 or P24 are grounded (using group 1 interrupt) LED2 turns on when P19 is grounded (using GPIO interrupt 0) LED2 turns off when P18 is grounded (using GPIO interrupt 1)

Dependencies:   mbed

History

Changed interrupt priority comment, the CortexM0 has four levels 0-3. default tip

2012-05-24, by alexan_e [Thu, 24 May 2012 15:25:54 +0000] rev 2

Changed interrupt priority comment, the CortexM0 has four levels 0-3.
Moved the SetPriority function before the interrupt enable. In CortexM0 the priority shouldnt be changed while the interrupt is enabled


made changes for the code to work when compiled in the online compiler

2012-05-19, by alexan_e [Sat, 19 May 2012 23:33:19 +0000] rev 1

made changes for the code to work when compiled in the online compiler


2012-05-18, by alexan_e [Fri, 18 May 2012 16:51:07 +0000] rev 0