diff options
author | iabdalkader <i.abdalkader@gmail.com> | 2024-12-01 08:55:34 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-12-10 11:02:52 +1100 |
commit | fd01cdd203b1049fec35a82ba3ddd89c4bd62a67 (patch) | |
tree | 4ac5071ab24f3bc84b1b97aa6585fd274b551622 | |
parent | 89191b00eae258642cd3d6458bc5440341bbc8d1 (diff) |
stm32/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/stm32/mpconfigport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/mpconfigport.h b/ports/stm32/mpconfigport.h index c6ba83d1b..dc0a767fb 100644 --- a/ports/stm32/mpconfigport.h +++ b/ports/stm32/mpconfigport.h @@ -157,7 +157,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) |