Leakage Test for C027 Rev B Hardware.

Dependencies:   C027-REVB mbed

Revision:
0:0fdd1cbe701a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Dec 14 01:25:22 2013 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+#include "C027.h"
+
+DigitalOut mdm_activity(LED);
+
+int main() 
+{
+    int led_toggle_count = 5;
+
+    // the instantiation of the type, calls C027::C027
+    C027 c027;
+    
+    // c027.mdmPower(true);
+    c027.LeakageTest();
+
+#if 1
+    while(1) {
+        mdm_activity = !mdm_activity;
+        wait(0.2);
+    }
+#else
+    while( led_toggle_count-- > 0 )
+    {
+        mdm_activity = !mdm_activity;
+        wait(0.2);
+    }
+#endif
+}