mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
187:0387e8f68319
Parent:
184:08ed48f1de7f
Child:
188:bcfe06ba3d64
--- a/platform/ATCmdParser.h	Fri Jun 22 16:45:37 2018 +0100
+++ b/platform/ATCmdParser.h	Thu Sep 06 13:40:20 2018 +0100
@@ -52,8 +52,7 @@
  * @endcode
  */
 
-class ATCmdParser : private NonCopyable<ATCmdParser>
-{
+class ATCmdParser : private NonCopyable<ATCmdParser> {
 private:
     // File handle
     // Not owned by ATCmdParser
@@ -90,8 +89,8 @@
      * @param debug turns on/off debug output for AT commands
      */
     ATCmdParser(FileHandle *fh, const char *output_delimiter = "\r",
-             int buffer_size = 256, int timeout = 8000, bool debug = false)
-            : _fh(fh), _buffer_size(buffer_size), _in_prev(0), _oobs(NULL)
+                int buffer_size = 256, int timeout = 8000, bool debug = false)
+        : _fh(fh), _buffer_size(buffer_size), _in_prev(0), _oobs(NULL)
     {
         _buffer = new char[buffer_size];
         set_timeout(timeout);
@@ -198,7 +197,7 @@
      * @param ... all printf-like arguments to insert into command
      * @return true only if command is successfully sent
      */
-    bool send(const char *command, ...) MBED_PRINTF_METHOD(1,2);
+    bool send(const char *command, ...) MBED_PRINTF_METHOD(1, 2);
 
     bool vsend(const char *command, va_list args);
 
@@ -216,7 +215,7 @@
      * @param ... all scanf-like arguments to extract from response
      * @return true only if response is successfully matched
      */
-    bool recv(const char *response, ...) MBED_SCANF_METHOD(1,2);
+    bool recv(const char *response, ...) MBED_SCANF_METHOD(1, 2);
 
     bool vrecv(const char *response, va_list args);
 
@@ -261,7 +260,7 @@
      * @param ... arguments to printf
      * @return number of bytes written or -1 on failure
      */
-    int printf(const char *format, ...) MBED_PRINTF_METHOD(1,2);
+    int printf(const char *format, ...) MBED_PRINTF_METHOD(1, 2);
 
     int vprintf(const char *format, va_list args);
 
@@ -273,7 +272,7 @@
      * @param ... arguments to scanf
      * @return number of bytes read or -1 on failure
      */
-    int scanf(const char *format, ...) MBED_SCANF_METHOD(1,2);
+    int scanf(const char *format, ...) MBED_SCANF_METHOD(1, 2);
 
     int vscanf(const char *format, va_list args);
 
@@ -298,7 +297,7 @@
      * recv operation.
      */
     void abort();
-    
+
     /**
     * Process out-of-band data
     *