diff options
author | iabdalkader <i.abdalkader@gmail.com> | 2024-12-01 08:58:02 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-12-10 11:04:49 +1100 |
commit | 309aa268113bd1779433bb36f3a55f81fd129979 (patch) | |
tree | fe4dd420263d3375a84cea27fb769f5869fea71a | |
parent | fd01cdd203b1049fec35a82ba3ddd89c4bd62a67 (diff) |
rp2/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/rp2/mpconfigport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h index 15eeab4f3..8f4e846ba 100644 --- a/ports/rp2/mpconfigport.h +++ b/ports/rp2/mpconfigport.h @@ -178,7 +178,7 @@ #define MICROPY_HW_SOFT_TIMER_ALARM_NUM (2) // fatfs configuration -#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_RPATH (2) #if MICROPY_HW_USB_MSC |