This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Revision 80:b94c3dec9848, committed 2014-06-24
- Comitter:
- nyatla
- Date:
- Tue Jun 24 09:42:07 2014 +0000
- Parent:
- 79:baa21f8763cf
- Child:
- 81:e5e4f2264d24
- Commit message:
- LocalFileSystem2?NyFileSystems???
Changed in this revision
mbed/LocalFileSystem2.cpp | Show diff for this revision Revisions of this file |
mbed/LocalFileSystem2.h | Show diff for this revision Revisions of this file |
--- a/mbed/LocalFileSystem2.cpp Tue Jun 24 09:37:24 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -#include "LocalFileSystem2.h" -#include "utils/PlatformInfo.h" -namespace MiMic -{ -#ifdef TARGET_LPC1768 - /** - * This module is LocalFileSystem class which is not stopped on LPCXpresso. - * It uses instead of LocalFileSystem. - */ - LocalFileSystem2::LocalFileSystem2(const char* n) : LocalFileSystem(n) - { - this->_is_enable=(PlatformInfo::getPlatformType()==PlatformInfo::PF_MBED); - } - FileHandle *LocalFileSystem2::open(const char* name, int flags) - { - return this->_is_enable?LocalFileSystem::open(name,flags):NULL; - } - int LocalFileSystem2::remove(const char *filename) - { - return this->_is_enable?LocalFileSystem::remove(filename):-1; - } - DirHandle *LocalFileSystem2::opendir(const char *name) - { - return this->_is_enable?LocalFileSystem::opendir(name):NULL; - } -#else - -#endif -}
--- a/mbed/LocalFileSystem2.h Tue Jun 24 09:37:24 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -#pragma once - - -#include "mbed.h" -#include "FATFileSystem.h" -namespace MiMic -{ - /** - * This module is LocalFileSystem class which is not stopped on LPCXpresso. - * It uses instead of LocalFileSystem. - */ -#ifdef TARGET_LPC1768 - class LocalFileSystem2 : public LocalFileSystem - { - private: - bool _is_enable; - public: - LocalFileSystem2(const char* n); - virtual FileHandle *open(const char* name, int flags); - virtual int remove(const char *filename); - virtual DirHandle *opendir(const char *name); - }; -#else - class LocalFileSystem2 : public FileSystemLike - { - public: - LocalFileSystem2(const char* n):FileSystemLike(n){} - virtual FileHandle *open(const char *filename, int flags){return NULL;} - }; -#endif -} -