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 FATFileSystem by
Diff: FATFileSystem.h
- Revision:
- 8:c4baca9a2c3d
- Parent:
- 7:094f84646b9f
diff -r 094f84646b9f -r c4baca9a2c3d FATFileSystem.h
--- a/FATFileSystem.h Fri Dec 11 16:16:25 2015 +0000
+++ b/FATFileSystem.h Thu Aug 25 09:34:29 2016 +0100
@@ -26,6 +26,7 @@
#include "FileHandle.h"
#include "ff.h"
#include <stdint.h>
+#include "PlatformMutex.h"
using namespace mbed;
@@ -89,6 +90,15 @@
virtual int disk_sync() { return 0; }
virtual uint32_t disk_sectors() = 0;
+protected:
+
+ virtual void lock();
+ virtual void unlock();
+
+private:
+
+ PlatformMutex *_mutex;
+
};
#endif
