diff options
author | iabdalkader <i.abdalkader@gmail.com> | 2024-12-01 08:58:24 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-12-10 11:04:59 +1100 |
commit | a2cdf9a95fea33ade5c608885424d6aae21773f5 (patch) | |
tree | 401d5a9e15c2114ee3004c11295548c3722dcc59 | |
parent | 309aa268113bd1779433bb36f3a55f81fd129979 (diff) |
renesas-ra/mpconfigport: Switch FATFS LFN to type 2.
LFN type 2 uses the stack to allocate the internal working buffer for LFN,
which is thread-safe and saves about 512 bytes of BSS memory (at the
expense of needing that much memory on the stack).
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-rw-r--r-- | ports/renesas-ra/mpconfigport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/renesas-ra/mpconfigport.h b/ports/renesas-ra/mpconfigport.h index 307dac24c..bd936061f 100644 --- a/ports/renesas-ra/mpconfigport.h +++ b/ports/renesas-ra/mpconfigport.h @@ -167,7 +167,7 @@ #endif // fatfs configuration used in ffconf.h -#define MICROPY_FATFS_ENABLE_LFN (1) +#define MICROPY_FATFS_ENABLE_LFN (2) #define MICROPY_FATFS_LFN_CODE_PAGE 437 /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */ #define MICROPY_FATFS_USE_LABEL (1) #define MICROPY_FATFS_RPATH (2) |