bousiya03 / Mbed 2 deprecated inte_mod_test

Dependencies:   interruptin_mod mbed

Files at this revision

API Documentation at this revision

Comitter:
bousiya03
Date:
Thu Nov 13 11:49:26 2014 +0000
Commit message:
typo

Changed in this revision

interruptin_mod.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/interruptin_mod.lib	Thu Nov 13 11:49:26 2014 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/bousiya03/code/interruptin_mod/#c63d872cfdb7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 13 11:49:26 2014 +0000
@@ -0,0 +1,56 @@
+#include "mbed.h"
+//#include "IRM2121.h"
+#include"interruptin_mod.h"
+
+interruptin_mod test(p5);
+
+//InterruptIn test1(p5);
+
+//IRM2121 test(p5);
+/*
+    class intruptin_mod:public InterruptIn{
+    
+        public:
+    
+        intruptin_mod(PinName pin): InterruptIn(pin){}
+    
+        void rise_disable(void (*fptr)(void)) {
+    
+            _rise.attach(fptr);
+            gpio_irq_set(&gpio_irq, IRQ_RISE, 0);
+    
+    }
+
+        void fall_disable(void (*fptr)(void)) {
+        
+            _fall.attach(fptr);
+            gpio_irq_set(&gpio_irq, IRQ_FALL, 0);
+    
+    }    
+    
+};
+
+*/
+
+void test_f(){
+    
+    
+    
+    }
+
+int main(){
+    
+    //int value = 0;
+    
+    test.fall(&test_f);
+    test.fall_disable(NULL);
+    
+   // test.Set();
+    
+    //value = test.Read();
+    
+    //printf("value = %d\n" ,value);
+    
+    for(;;);
+    
+    }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Nov 13 11:49:26 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file