Leakage Test for C027 Rev B Hardware.

Dependencies:   C027-REVB mbed

Files at this revision

API Documentation at this revision

Comitter:
dixter1
Date:
Sat Dec 14 01:25:22 2013 +0000
Child:
1:f8f16a011fe3
Commit message:
First pass this program. Leakage Test for C027 Rev B Hardware.

Changed in this revision

C027-REVB.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/C027-REVB.lib	Sat Dec 14 01:25:22 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dixter1/code/C027-REVB/#2ae219d82c0e
--- /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
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Dec 14 01:25:22 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file