move fs files to src folder

This commit is contained in:
hathach committed 2018-10-12 15:00:09 +07:00
1 parent e2d9b21bbf
commit f4f6108ed6
30 files changed
+33 -18

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -36,46 +36,47 @@
#include <Arduino.h>
#include "InternalFS.h"
#include "littlefs/lfs.h"
using namespace BluefuritLib;
MynewtNFFS InternalFS;
LittleFS::LittleFS (void)
MynewtNFFS::MynewtNFFS (void)
{
}
LittleFS::~LittleFS ()
MynewtNFFS::~MynewtNFFS ()
{
}
bool LittleFS::begin (void)
bool MynewtNFFS::begin (void)
{
// nffs_config_init();
nffs_cache_clear();
}
BluefuritLib::File MynewtNFFS::open (char const *filename, uint8_t mode)
{
}
File LittleFS::open (char const *filename, uint8_t mode)
bool MynewtNFFS::exists (char const *filepath)
{
}
bool LittleFS::exists (char const *filepath)
bool MynewtNFFS::mkdir (char const *filepath)
{
}
bool LittleFS::mkdir (char const *filepath)
bool MynewtNFFS::remove (char const *filepath)
{
}
bool LittleFS::remove (char const *filepath)
{
}
bool LittleFS::rmdir (char const *filepath)
bool MynewtNFFS::rmdir (char const *filepath)
{
}
@@ -39,11 +39,15 @@
#include "FileIO.h"
class LittleFS: public BluefuritLib::FileSystemClass
// Internal Flash uses Apache Mynewt Newtron Flash File System
// https://github.com/apache/mynewt-nffs
#include "mynewt-nffs/include/nffs/nffs.h"
class MynewtNFFS: public BluefuritLib::FileSystemClass
{
public:
LittleFS (void);
virtual ~LittleFS ();
MynewtNFFS (void);
virtual ~MynewtNFFS ();
bool begin (void);
BluefuritLib::File open (char const *filename, uint8_t mode = FILE_READ);
@@ -52,6 +56,10 @@ class LittleFS: public BluefuritLib::FileSystemClass
bool remove (char const *filepath);
bool rmdir (char const *filepath);
private:
};
extern MynewtNFFS InternalFS;
#endif /* INTERNALFS_H_ */
@@ -20,7 +20,13 @@
#ifndef H_CONFIG_
#define H_CONFIG_
#if __ZEPHYR__
#if 1 // Adafruit Bluefruit
#define NFFS_CONFIG_USE_HEAP 0
#define CONFIG_NFFS_FILESYSTEM_MAX_AREAS 7
#elif __ZEPHYR__
typedef struct k_mem_slab nffs_os_mempool_t;