Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GSM_Library by
Diff: gsmqueue.cpp
- 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

