The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: drivers/FileHandle.h
- Revision:
- 138:093f2bd7b9eb
- Parent:
- 128:9bcdf88f62b0
--- a/drivers/FileHandle.h Tue Feb 28 16:44:21 2017 +0000 +++ b/drivers/FileHandle.h Tue Mar 14 16:20:51 2017 +0000 @@ -19,14 +19,7 @@ typedef int FILEHANDLE; #include <stdio.h> - -#if defined(__ARMCC_VERSION) || defined(__ICCARM__) -typedef int ssize_t; -typedef long off_t; - -#else -# include <sys/types.h> -#endif +#include "platform/platform.h" namespace mbed { /** \addtogroup drivers */ @@ -46,6 +39,11 @@ class FileHandle { public: + MBED_DEPRECATED_SINCE("mbed-os-5.4", + "The mbed 2 filesystem classes have been superseeded by the FileSystem api, " + "Replaced by File") + FileHandle() {} + /** Write the contents of a buffer to the file * * @param buffer the buffer to write from @@ -120,7 +118,7 @@ return res; } - virtual ~FileHandle(); + virtual ~FileHandle() {}; protected: