lfs clean up
This commit is contained in:
1 parent
e3c7a1a1ec
commit
6704579236
2 files changed
+5
-7
No files matched your search
@@ -45,11 +45,8 @@
|
||||
#define LFS_FLASH_ADDR 0x6D000
|
||||
#endif
|
||||
|
||||
#define LFS_PAGE_SIZE 4096
|
||||
#define LFS_FLASH_SIZE (7*LFS_PAGE_SIZE)
|
||||
|
||||
#define LFS_FLASH_SIZE (7*FLASH_NRF52_PAGE_SIZE)
|
||||
#define LFS_BLOCK_SIZE 128
|
||||
#define LFS_BLOCK_PER_PAGE (LFS_PAGE_SIZE/LFS_BLOCK_SIZE)
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// LFS Disk IO
|
||||
|
||||
@@ -45,25 +45,26 @@ extern "C"
|
||||
// Macros, may be replaced by system specific wrappers. Arguments to these
|
||||
// macros must not have side-effects as the macros can be removed for a smaller
|
||||
// code footprint
|
||||
int cprintf (const char * format, ...);
|
||||
|
||||
// Logging functions
|
||||
#ifndef LFS_NO_DEBUG
|
||||
#define LFS_DEBUG(fmt, ...) \
|
||||
printf("lfs debug:%d: " fmt "\n", __LINE__, __VA_ARGS__)
|
||||
cprintf("lfs debug:%d: " fmt "\n", __LINE__, __VA_ARGS__)
|
||||
#else
|
||||
#define LFS_DEBUG(fmt, ...)
|
||||
#endif
|
||||
|
||||
#ifndef LFS_NO_WARN
|
||||
#define LFS_WARN(fmt, ...) \
|
||||
printf("lfs warn:%d: " fmt "\n", __LINE__, __VA_ARGS__)
|
||||
cprintf("lfs warn:%d: " fmt "\n", __LINE__, __VA_ARGS__)
|
||||
#else
|
||||
#define LFS_WARN(fmt, ...)
|
||||
#endif
|
||||
|
||||
#ifndef LFS_NO_ERROR
|
||||
#define LFS_ERROR(fmt, ...) \
|
||||
printf("lfs error:%d: " fmt "\n", __LINE__, __VA_ARGS__)
|
||||
cprintf("lfs error:%d: " fmt "\n", __LINE__, __VA_ARGS__)
|
||||
#else
|
||||
#define LFS_ERROR(fmt, ...)
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user