ピン変化割り込み拡張しよう的な

Dependents:   inte_mod_test test_irm2121 BallCheck_IRM2121_InterrputInAdd CatPot_SensorRight

Files at this revision

API Documentation at this revision

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);
             }