mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
adapt SPIFFS from 128kb -> 192kb. Increased GC to fit sector size 4kb. (thanks @mwalker33)
This commit is contained in:
parent
4fd8f378af
commit
79cfa1d8fa
3 changed files with 70 additions and 41 deletions
|
@ -24,7 +24,11 @@ extern "C" {
|
|||
|
||||
#include "spiffs_config.h"
|
||||
|
||||
typedef enum spiffs_safety_level { RDV40_SPIFFS_SAFETY_NORMAL, RDV40_SPIFFS_SAFETY_LAZY, RDV40_SPIFFS_SAFETY_SAFE } RDV40SpiFFSSafetyLevel;
|
||||
typedef enum spiffs_safety_level {
|
||||
RDV40_SPIFFS_SAFETY_NORMAL,
|
||||
RDV40_SPIFFS_SAFETY_LAZY,
|
||||
RDV40_SPIFFS_SAFETY_SAFE
|
||||
} RDV40SpiFFSSafetyLevel;
|
||||
|
||||
typedef enum spiffs_file_type {
|
||||
RDV40_SPIFFS_FILETYPE_REAL,
|
||||
|
@ -198,16 +202,16 @@ typedef void (*spiffs_file_callback)(struct spiffs_t *fs, spiffs_fileop_type op,
|
|||
|
||||
#ifndef SPIFFS_DBG
|
||||
#define SPIFFS_DBG(...) \
|
||||
printf(__VA_ARGS__)
|
||||
Dbprintf(__VA_ARGS__)
|
||||
#endif
|
||||
#ifndef SPIFFS_GC_DBG
|
||||
#define SPIFFS_GC_DBG(...) printf(__VA_ARGS__)
|
||||
#define SPIFFS_GC_DBG(...) Dbprintf(__VA_ARGS__)
|
||||
#endif
|
||||
#ifndef SPIFFS_CACHE_DBG
|
||||
#define SPIFFS_CACHE_DBG(...) printf(__VA_ARGS__)
|
||||
#define SPIFFS_CACHE_DBG(...) Dbprintf(__VA_ARGS__)
|
||||
#endif
|
||||
#ifndef SPIFFS_CHECK_DBG
|
||||
#define SPIFFS_CHECK_DBG(...) printf(__VA_ARGS__)
|
||||
#define SPIFFS_CHECK_DBG(...) Dbprintf(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
/* Any write to the filehandle is appended to end of the file */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue