Skip to content

Commit 100ba3a

Browse files
committed
rename NewtNffs to ApacheNffs
1 parent 8d80b01 commit 100ba3a

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/clearbonds/clearbonds.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*********************************************************************/
1414

1515
#include <bluefruit.h>
16-
#include <NewtNffs.h>
16+
#include <ApacheNffs.h>
1717

1818
void setup()
1919
{

libraries/Bluefruit52Lib/src/bluefruit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/**************************************************************************/
3636

3737
#include "bluefruit.h"
38-
#include <NewtNffs.h>
38+
#include <ApacheNffs.h>
3939

4040
// Note chaning these parameters will affect APP_RAM_BASE
4141
// --> need to update RAM in feather52_s132.ld linker

libraries/nffs/examples/ListFiles/ListFiles.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*********************************************************************/
1414

1515
#include <bluefruit.h>
16-
#include <NewtNffs.h>
16+
#include <ApacheNffs.h>
1717

1818
/* This example print out NFFS content up to
1919
* MAX_LEVEL level of directories (including root)

libraries/nffs/examples/ReadWrite/ReadWrite.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*********************************************************************/
1414

1515
#include <bluefruit.h>
16-
#include <NewtNffs.h>
16+
#include <ApacheNffs.h>
1717

1818
#define FILENAME "/adafruit.txt"
1919
#define CONTENTS "Bluefruit Feather52's NFFS file contents"

libraries/nffs/library.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name=Newt Newtron Flash Filesystem
1+
name=Newtron Flash Filesystem
22
version=0.1.0
3-
author=Adafruit
3+
author=Apache Software Foundation
44
maintainer=Adafruit <[email protected]>
5-
sentence=Newt Newtron Flash Filesystem
6-
paragraph=Newt Newtron Flash Filesystem
5+
sentence=Newtron Flash Filesystem
6+
paragraph=Newtron Flash Filesystem
77
category=Communication
88
url=https://github.com/adafruit/Adafruit_nRF52_Arduino
99
architectures=*

libraries/nffs/src/NewtNffs.cpp renamed to libraries/nffs/src/ApacheNffs.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@
3434
*/
3535
/**************************************************************************/
3636

37-
#include "NewtNffs.h"
37+
#include "ApacheNffs.h"
3838

3939
#include "syscfg/syscfg.h"
4040
#include "hal/hal_flash.h"
4141

4242
#define NFFS_AREA_MAX 8
4343

44-
NewtNffs Nffs;
44+
ApacheNffs Nffs;
4545

46-
NewtNffs::NewtNffs(void)
46+
ApacheNffs::ApacheNffs(void)
4747
{
4848
errnum = FS_EOK;
4949
_initialized = false;
5050
}
5151

52-
bool NewtNffs::begin(void)
52+
bool ApacheNffs::begin(void)
5353
{
5454
// Follow code in nffs_pkg_init()
5555
if (_initialized) return true;
@@ -85,7 +85,7 @@ bool NewtNffs::begin(void)
8585
return true;
8686
}
8787

88-
bool NewtNffs::format(void)
88+
bool ApacheNffs::format(void)
8989
{
9090
struct nffs_area_desc descs[NFFS_AREA_MAX + 1];
9191
int cnt = NFFS_AREA_MAX;
@@ -99,7 +99,7 @@ bool NewtNffs::format(void)
9999
return true;
100100
}
101101

102-
bool NewtNffs::mkdir(const char* path)
102+
bool ApacheNffs::mkdir(const char* path)
103103
{
104104
errnum = fs_mkdir(path);
105105
return (errnum == FS_EOK);
@@ -110,7 +110,7 @@ bool NewtNffs::mkdir(const char* path)
110110
* @param path Absolute path of directory, must start with '/'
111111
* @return
112112
*/
113-
bool NewtNffs::mkdir_p(const char* path)
113+
bool ApacheNffs::mkdir_p(const char* path)
114114
{
115115
char* parent = (char*) rtos_malloc(strlen(path)+1);
116116
const char* slash = path+1; // skip root '/'
@@ -133,19 +133,19 @@ bool NewtNffs::mkdir_p(const char* path)
133133
return (errnum == FS_EOK);
134134
}
135135

136-
bool NewtNffs::remove(const char* path)
136+
bool ApacheNffs::remove(const char* path)
137137
{
138138
errnum = fs_unlink(path);
139139
return (errnum == FS_EOK);
140140
}
141141

142-
bool NewtNffs::rename(const char* from, const char* to)
142+
bool ApacheNffs::rename(const char* from, const char* to)
143143
{
144144
errnum = fs_rename(from, to);
145145
return (errnum == FS_EOK);
146146
}
147147

148-
uint32_t NewtNffs::readFile (const char* filename, void* buffer, uint32_t bufsize, int32_t offset)
148+
uint32_t ApacheNffs::readFile (const char* filename, void* buffer, uint32_t bufsize, int32_t offset)
149149
{
150150
NffsFile f(filename, FS_ACCESS_READ);
151151

@@ -164,7 +164,7 @@ uint32_t NewtNffs::readFile (const char* filename, void* buffer, uint32_t bufsiz
164164
return count;
165165
}
166166

167-
bool NewtNffs::writeFile(const char* filename, const void* data, uint32_t count, int32_t offset)
167+
bool ApacheNffs::writeFile(const char* filename, const void* data, uint32_t count, int32_t offset)
168168
{
169169
NffsFile f(filename, FS_ACCESS_WRITE);
170170

@@ -182,7 +182,7 @@ bool NewtNffs::writeFile(const char* filename, const void* data, uint32_t count,
182182
return result;
183183
}
184184

185-
bool NewtNffs::testFile (const char* filename)
185+
bool ApacheNffs::testFile (const char* filename)
186186
{
187187
NffsFile f(filename, FS_ACCESS_READ);
188188
bool result = f.exists();
@@ -191,7 +191,7 @@ bool NewtNffs::testFile (const char* filename)
191191
return result;
192192
}
193193

194-
bool NewtNffs::testFolder(const char* path)
194+
bool ApacheNffs::testFolder(const char* path)
195195
{
196196
NffsDir f(path);
197197
bool result = f.exists();

libraries/nffs/src/NewtNffs.h renamed to libraries/nffs/src/ApacheNffs.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3434
*/
3535
/**************************************************************************/
36-
#ifndef NEWTNFFS_H_
37-
#define NEWTNFFS_H_
36+
#ifndef APACHENFFS_H_
37+
#define APACHENFFS_H_
3838

3939
#include <Arduino.h>
4040

@@ -45,15 +45,15 @@
4545
#include "NffsFile.h"
4646
#include "NffsDir.h"
4747

48-
class NewtNffs
48+
class ApacheNffs
4949
{
5050
private:
5151
bool _initialized;
5252

5353
public:
5454
int errnum;
5555

56-
NewtNffs(void);
56+
ApacheNffs(void);
5757

5858
bool begin(void);
5959

@@ -87,6 +87,6 @@ class NewtNffs
8787
};
8888

8989

90-
extern NewtNffs Nffs;
90+
extern ApacheNffs Nffs;
9191

92-
#endif /* NEWTNFFS_H_ */
92+
#endif /* APACHENFFS_H_ */

libraries/nffs/src/NffsDir.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
/**************************************************************************/
3636

37-
#include "NewtNffs.h"
37+
#include "ApacheNffs.h"
3838

3939
void NffsDir::_init(void)
4040
{

libraries/nffs/src/NffsDirEntry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
/**************************************************************************/
3636

37-
#include "NewtNffs.h"
37+
#include "ApacheNffs.h"
3838

3939
NffsDirEntry::NffsDirEntry(void)
4040
{

libraries/nffs/src/NffsFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
/**************************************************************************/
3636

37-
#include "NewtNffs.h"
37+
#include "ApacheNffs.h"
3838

3939
void NffsFile::_init(void)
4040
{

0 commit comments

Comments
 (0)