mbed library sources. Supersedes mbed-src.

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

Revision:
189:f392fc9709a3
Parent:
188:bcfe06ba3d64
--- a/platform/ATCmdParser.h	Thu Nov 08 11:46:34 2018 +0000
+++ b/platform/ATCmdParser.h	Wed Feb 20 22:31:08 2019 +0000
@@ -1,4 +1,5 @@
 /* Copyright (c) 2017 ARM Limited
+ * SPDX-License-Identifier: Apache-2.0
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,9 +21,10 @@
 #ifndef MBED_ATCMDPARSER_H
 #define MBED_ATCMDPARSER_H
 
-#include "mbed.h"
 #include <cstdarg>
 #include "Callback.h"
+#include "NonCopyable.h"
+#include "FileHandle.h"
 
 namespace mbed {
 
@@ -169,7 +171,7 @@
     /**
      * Allows traces from modem to be turned on or off
      *
-     * @param on Set as 1 to turn on traces and vice versa.
+     * @param on Set as 1 to turn on traces and 0 to disable traces.
      */
     void debug_on(uint8_t on)
     {
@@ -182,7 +184,7 @@
      *
      * Allows traces from modem to be turned on or off
      *
-     * @param on Set as 1 to turn on traces and vice versa.
+     * @param on Set as 1 to turn on traces and 0 to disable traces.
      */
     MBED_DEPRECATED_SINCE("mbed-os-5.5.0", "Replaced with debug_on for consistency")
     void debugOn(uint8_t on)
@@ -203,7 +205,7 @@
      */
     bool send(const char *command, ...) MBED_PRINTF_METHOD(1, 2);
 
-    bool vsend(const char *command, va_list args);
+    bool vsend(const char *command, std::va_list args);
 
     /**
      * Receive an AT response
@@ -221,7 +223,7 @@
      */
     bool recv(const char *response, ...) MBED_SCANF_METHOD(1, 2);
 
-    bool vrecv(const char *response, va_list args);
+    bool vrecv(const char *response, std::va_list args);
 
     /**
      * Write a single byte to the underlying stream
@@ -266,7 +268,7 @@
      */
     int printf(const char *format, ...) MBED_PRINTF_METHOD(1, 2);
 
-    int vprintf(const char *format, va_list args);
+    int vprintf(const char *format, std::va_list args);
 
     /**
      * Direct scanf on underlying stream
@@ -278,7 +280,7 @@
      */
     int scanf(const char *format, ...) MBED_SCANF_METHOD(1, 2);
 
-    int vscanf(const char *format, va_list args);
+    int vscanf(const char *format, std::va_list args);
 
     /**
      * Attach a callback for out-of-band data