clean up
This commit is contained in:
1 parent
1713e81e44
commit
a3d75eb99d
4 files changed
+75
-2
No files matched your search
@@ -34,3 +34,64 @@
|
||||
*/
|
||||
/**************************************************************************/
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <string.h>
|
||||
#include "ExternalFS.h"
|
||||
|
||||
FatFS::FatFS ()
|
||||
{
|
||||
}
|
||||
FatFS::~FatFS ()
|
||||
{
|
||||
}
|
||||
|
||||
bool FatFS::begin ()
|
||||
{
|
||||
}
|
||||
File FatFS::open (char const *filename, uint8_t mode)
|
||||
{
|
||||
}
|
||||
bool FatFS::exists (char const *filepath)
|
||||
{
|
||||
}
|
||||
bool FatFS::mkdir (char const *filepath)
|
||||
{
|
||||
}
|
||||
bool FatFS::remove (char const *filepath)
|
||||
{
|
||||
}
|
||||
bool FatFS::rmdir (char const *filepath)
|
||||
{
|
||||
}
|
||||
bool FatFS::rmdir_r (char const *filepath)
|
||||
{
|
||||
}
|
||||
|
||||
size_t FatFS::_f_write (void* fhdl, uint8_t const *buf, size_t size)
|
||||
{
|
||||
}
|
||||
int FatFS::_f_read (void* fhdl, void *buf, uint16_t nbyte)
|
||||
{
|
||||
}
|
||||
void FatFS::_f_flush (void* fhdl)
|
||||
{
|
||||
}
|
||||
void FatFS::_f_close (void* fhdl, bool is_dir)
|
||||
{
|
||||
}
|
||||
bool FatFS::_f_seek (void* fhdl, uint32_t pos)
|
||||
{
|
||||
}
|
||||
uint32_t FatFS::_f_position (void* fhdl)
|
||||
{
|
||||
}
|
||||
uint32_t FatFS::_f_size (void* fhdl)
|
||||
{
|
||||
}
|
||||
|
||||
File FatFS::_f_openNextFile (void* fhdl, char const* cwd, uint8_t mode)
|
||||
{
|
||||
}
|
||||
void FatFS::_f_rewindDirectory (void* fhdl)
|
||||
{
|
||||
}
|
||||
@@ -51,6 +51,18 @@ class FatFS: public BluefuritLib::FileSystemClass
|
||||
bool mkdir (char const *filepath);
|
||||
bool remove (char const *filepath);
|
||||
bool rmdir (char const *filepath);
|
||||
bool rmdir_r (char const *filepath);
|
||||
|
||||
virtual size_t _f_write (void* fhdl, uint8_t const *buf, size_t size);
|
||||
virtual int _f_read (void* fhdl, void *buf, uint16_t nbyte);
|
||||
virtual void _f_flush (void* fhdl);
|
||||
virtual void _f_close (void* fhdl, bool is_dir);
|
||||
virtual bool _f_seek (void* fhdl, uint32_t pos);
|
||||
virtual uint32_t _f_position (void* fhdl);
|
||||
virtual uint32_t _f_size (void* fhdl);
|
||||
|
||||
virtual File _f_openNextFile (void* fhdl, char const* cwd, uint8_t mode);
|
||||
virtual void _f_rewindDirectory (void* fhdl);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
|
||||
#define VERIFY_LFS(...) _GET_3RD_ARG(__VA_ARGS__, VERIFY_ERR_2ARGS, VERIFY_ERR_1ARGS)(__VA_ARGS__, NULL)
|
||||
#define PRINT_LFS_ERR(_err)
|
||||
|
||||
#else
|
||||
|
||||
#define VERIFY_LFS(...) _GET_3RD_ARG(__VA_ARGS__, VERIFY_ERR_2ARGS, VERIFY_ERR_1ARGS)(__VA_ARGS__, dbg_strerr_lfs)
|
||||
|
||||
Reference in new issue
Block a user