summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/include/fs_defines.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/firmware/include/fs_defines.h b/firmware/include/fs_defines.h
index a1938c56b8..f4c8385d8a 100644
--- a/firmware/include/fs_defines.h
+++ b/firmware/include/fs_defines.h
@@ -45,8 +45,15 @@
45 45
46/* limits for number of open descriptors - if you increase these values, make 46/* limits for number of open descriptors - if you increase these values, make
47 certain that the disk cache has enough available buffers */ 47 certain that the disk cache has enough available buffers */
48
49#if MEMORYSIZE < 8
48#define MAX_OPEN_FILES 11 50#define MAX_OPEN_FILES 11
49#define MAX_OPEN_DIRS 12 51#define MAX_OPEN_DIRS 12
52#else
53#define MAX_OPEN_FILES 31
54#define MAX_OPEN_DIRS 32
55#endif /* MEMORYSIZE */
56
50 57
51/* internal functions open streams as well; make sure they don't fail if all 58/* internal functions open streams as well; make sure they don't fail if all
52 user descs are busy; this needs to be at least the greatest quantity needed 59 user descs are busy; this needs to be at least the greatest quantity needed
@@ -96,10 +103,7 @@
96#if MEMORYSIZE < 8 103#if MEMORYSIZE < 8
97#define DC_NUM_ENTRIES 32 104#define DC_NUM_ENTRIES 32
98#define DC_MAP_NUM_ENTRIES 128 105#define DC_MAP_NUM_ENTRIES 128
99#elif MEMORYSIZE <= 32 106#else
100#define DC_NUM_ENTRIES 48
101#define DC_MAP_NUM_ENTRIES 128
102#else /* MEMORYSIZE > 32 */
103#define DC_NUM_ENTRIES 64 107#define DC_NUM_ENTRIES 64
104#define DC_MAP_NUM_ENTRIES 256 108#define DC_MAP_NUM_ENTRIES 256
105#endif /* MEMORYSIZE */ 109#endif /* MEMORYSIZE */