Zimin Wang / Mbed 2 deprecated DDRO_Farrari

Dependencies:   mbed-rtos mbed

Fork of DDRO_Farrari by Liangzhen Lai

Revision:
10:95e9932f7990
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GPIOInterrupt.h	Tue Feb 25 02:14:41 2014 +0000
@@ -0,0 +1,26 @@
+/*
+ * Written by Zimin Wang
+ *  
+ */
+#ifndef GPIO_INTERRUPT_H_
+#define GPIO_INTERRUPT_H_
+
+#include <InterruptIn.h>
+
+// enable and disable interrupt from GPIO
+extern void enable_GPIO_intr(void (*handler)(void));
+extern void disable_GPIO_intr(void);
+
+// GPIO_out should be put in main loop. When an output request interrupt from chip occurs,
+// this function read output data from chip and print data. Then it sends an output acknowledge
+// signal to unblock task in the chip. 
+// When there is no output request interrupt it returns quietly.
+extern void listen_req(void const *args);
+
+// GPIO_in should be put in main loop. When an input request interrupt from chip occurs,
+// this functino read user input and write user input to the chip. Then it sends an input
+// acknowledge interrupt to unblock task in the chip.
+// When there is no input request interrupt it returns quietly.
+//extern void GPIO_in(void const *args);
+
+#endif
\ No newline at end of file