for joseph

Dependencies:   mbed

Revision:
1:4c288e0254f3
Parent:
0:d2fad68b715a
--- a/main.c	Sat Feb 14 23:25:59 2015 +0000
+++ b/main.c	Wed Feb 18 01:13:20 2015 +0000
@@ -1,36 +1,20 @@
-
-#include "parameters.h"
-#include "intHandler.h"
-#include "queue.h"
+#include "initialize.h"
 
-Serial pc(USBTX, USBRX);
-Serial gsm(PTC17,PTC16);
+extern Serial pc;
+extern Serial gsm;
+//extern buffer[];
 
-//Prototype
-void initializeGSM();
-
+char comand[100];
 
 int main()
 {
     initializeGSM(); 
+    while(1){
+        pc.printf("Comand line activated\n\r");
+        pc.scanf("%s",&comand);
+        gsm.puts(comand);
+        print_registers();
+    }
     return 0;       
 }
 
-bool compare(char* word)
-{
-    pc.printf("comparing...\r\n");
-    int i = 0;
-    char letter;
-    do
-    {
-        letter = buffer.pop();
-        pc.printf("letter queue : %c \r\n",letter); 
-        pc.printf("letter string : %c \r\n",word[i]); 
-        if(buffer.pop()!= word[i])
-            return false;
-            i++;
-    }while(buffer.peek()!= '\n');
-    buffer.pop();
-    return true;
-}
-