rename lfs namespace

This commit is contained in:
hathach committed 2019-05-29 17:25:40 +07:00
1 parent 0b0fc8e9d6
commit 063a668a04
8 files changed
+10 -11

No files matched your search

@@ -14,7 +14,7 @@
#include <Adafruit_LittleFS.h>
using namespace LittleFilesystem;
using namespace Adafruit_LittleFS_Namespace;
// the setup function runs once when you press reset or power the board
void setup()
@@ -12,10 +12,9 @@
any redistribution
*********************************************************************/
//#include <bluefruit.h>
#include <Adafruit_LittleFS.h>
using namespace LittleFilesystem;
using namespace Adafruit_LittleFS_Namespace;
/* This example print out Internal Flash contents up to
* MAX_LEVEL level of directories (including root)
@@ -13,7 +13,7 @@
*********************************************************************/
#include <Adafruit_LittleFS.h>
using namespace LittleFilesystem;
using namespace Adafruit_LittleFS_Namespace;
#define FILENAME "/adafruit.txt"
#define CONTENTS "Adafruit Little File System test file contents"
@@ -28,7 +28,7 @@
#include "Adafruit_LittleFS.h"
#include "flash/flash_nrf5x.h"
using namespace LittleFilesystem;
using namespace Adafruit_LittleFS_Namespace;
#ifdef NRF52840_XXAA
#define LFS_FLASH_ADDR 0xED000
@@ -150,9 +150,9 @@ bool Adafruit_LittleFS::format (bool eraseall)
return true;
}
LittleFilesystem::File Adafruit_LittleFS::open (char const *filepath, uint8_t mode)
Adafruit_LittleFS_Namespace::File Adafruit_LittleFS::open (char const *filepath, uint8_t mode)
{
return LittleFilesystem::File(filepath, mode, *this);
return Adafruit_LittleFS_Namespace::File(filepath, mode, *this);
}
bool Adafruit_LittleFS::exists (char const *filepath)
@@ -44,7 +44,7 @@ class Adafruit_LittleFS
// Open the specified file/directory with the supplied mode (e.g. read or
// write, etc). Returns a File object for interacting with the file.
// Note that currently only one file can be open at a time.
LittleFilesystem::File open (char const *filename, uint8_t mode = FILE_READ);
Adafruit_LittleFS_Namespace::File open (char const *filename, uint8_t mode = FILE_READ);
// Methods to determine if the requested file path exists.
bool exists (char const *filepath);
@@ -30,7 +30,7 @@
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
//--------------------------------------------------------------------+
using namespace LittleFilesystem;
using namespace Adafruit_LittleFS_Namespace;
File::File (Adafruit_LittleFS &fs)
{
@@ -31,7 +31,7 @@
// Forward declaration
class Adafruit_LittleFS;
namespace LittleFilesystem
namespace Adafruit_LittleFS_Namespace
{
class File : public Stream
@@ -39,7 +39,7 @@
#include "bonding.h"
#include "bluefruit.h"
using namespace LittleFilesystem;
using namespace Adafruit_LittleFS_Namespace;
#define BOND_DEBUG 0