test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
gkumar
Date:
Thu Jun 02 09:42:49 2016 +0000
Commit message:
test

Changed in this revision

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
diff -r 000000000000 -r 77f0cd7817c9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jun 02 09:42:49 2016 +0000
@@ -0,0 +1,44 @@
+
+switch (reset)
+{
+    case 01: PIN70=1; //ENABLE_BAR Att Sens 1
+    break; 
+    case 02: PIN90=1; //ENABLE_BAR Att Sens 2
+    break;
+    case 03: PIN82=0;  //DRV_XY Fault bar
+             wait(1);
+             PIN82=1; // Toggle DRV_XY sleep 
+    break;
+    case 04: PIN88=0; //DRV_Z Fault bar
+             wait(1);
+             PIN88=1; // Toggle DRV_Z sleep 
+    break;
+    case 05: PIN71=0;  //DRV_switch_XY Fault bar 
+    break;
+    case 06: PIN40=0;  //DRV_switch_Z Fault bar
+    break;
+    case 07: PIN71=1;  //Turn on DRV_switch_XY -on TC
+    break;
+    case 08: PIN40=1;  //Turn on DRV_switch_Z -when called for Z axis moment alone
+    break;
+    case 09: PIN14=1; //Beacon switch
+             wait(1);
+             PIN14=0; // Toggle
+    break;
+    }
+        switch(in) {
+        case 'h':
+        case 'H':
+            out = 1;
+            break;
+        case 'l':
+        case 'L':
+            out = 0;
+            break;
+        case 's':
+        case 'S':
+            sing();
+            break;
+        default:
+            pc.printf("I don't know: \"%c\"\n", in);
+    }
diff -r 000000000000 -r 77f0cd7817c9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jun 02 09:42:49 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c
\ No newline at end of file