uses pushing box to publish to google spreadsheets with a state machine instead of a while loop

Dependents:   DCS_FINAL_CODE

Fork of GSM_PUSHING_BOX_STATE_MACHINE by DCS_TEAM

Revision:
1:c1458b739eb6
Parent:
0:41904adca656
Child:
3:dac922a18af6
--- a/gsmqueue.cpp	Thu Mar 05 20:06:41 2015 +0000
+++ b/gsmqueue.cpp	Thu Mar 05 20:51:04 2015 +0000
@@ -75,7 +75,7 @@
 }
 
 //Parse through characters until first integer is found
-//
+//Advance qHead until you reach the next non-numeric character
 int parseInt()
 {
     char* qPos = queueHead;
@@ -87,4 +87,18 @@
         //Increment index
         qPos = incrementIndex(qPos);
     }
+    
+    
+}
+
+//Reset the GSM DMA idle bit to 0
+void resetGSMIdleBit()
+{
+    UART_S1_REG(UART3) &= ~UART_S1_IDLE_MASK;
+}
+
+//Get the GSM DMA idle bit (if 1, indicates we already received a response)
+bool getGSMIdleBit()
+{
+    return (UART_S1_IDLE_MASK & UART_S1_REG(UART3)) >> UART_S1_IDLE_SHIFT;
 }
\ No newline at end of file