Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: inte_mod_test test_irm2121 BallCheck_IRM2121_InterrputInAdd CatPot_SensorRight
Revision 3:1cc9d9e3cf8c, committed 2014-12-03
- Comitter:
- bousiya03
- Date:
- Wed Dec 03 07:31:00 2014 +0000
- Parent:
- 2:9f98488efd06
- Commit message:
- 0?NULL????
Changed in this revision
| interruptin_mod.cpp | Show annotated file Show diff for this revision Revisions of this file | 
| interruptin_mod.h | Show annotated file Show diff for this revision Revisions of this file | 
--- a/interruptin_mod.cpp	Sat Nov 15 00:34:10 2014 +0000
+++ b/interruptin_mod.cpp	Wed Dec 03 07:31:00 2014 +0000
@@ -7,14 +7,14 @@
     
     void interruptin_mod::fall_disable(void (*fptr)(void)){
             _rise.attach(fptr);
-            gpio_irq_set(&gpio_irq, IRQ_RISE, 0);
+            gpio_irq_set(&gpio_irq, IRQ_RISE, NULL);
         
     }
         
     void interruptin_mod::rise_disable(void (*fptr)(void)) {
         
             _fall.attach(fptr);
-            gpio_irq_set(&gpio_irq, IRQ_FALL, 0);
+            gpio_irq_set(&gpio_irq, IRQ_FALL, NULL);
     
     } 
     
--- a/interruptin_mod.h	Sat Nov 15 00:34:10 2014 +0000
+++ b/interruptin_mod.h	Wed Dec 03 07:31:00 2014 +0000
@@ -16,12 +16,12 @@
         template<typename T>
         void rise_disable(T* tptr, void (T::*mptr)(void)) {
             _rise.attach(tptr, mptr);
-            gpio_irq_set(&gpio_irq, IRQ_RISE, 0);
+            gpio_irq_set(&gpio_irq, IRQ_RISE, NULL);
         }        
         template<typename T>
         void fall_disable(T* tptr, void (T::*mptr)(void)) {
             _fall.attach(tptr, mptr);
-            gpio_irq_set(&gpio_irq, IRQ_RISE, 0);
+            gpio_irq_set(&gpio_irq, IRQ_RISE, NULL);
             }