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>
This commit is contained in:
iabdalkader
2024-12-01 08:58:02 +01:00
committed by Damien George
parent fd01cdd203
commit 309aa26811

View File

@@ -178,7 +178,7 @@
#define MICROPY_HW_SOFT_TIMER_ALARM_NUM (2) #define MICROPY_HW_SOFT_TIMER_ALARM_NUM (2)
// fatfs configuration // 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_LFN_CODE_PAGE 437 /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */
#define MICROPY_FATFS_RPATH (2) #define MICROPY_FATFS_RPATH (2)
#if MICROPY_HW_USB_MSC #if MICROPY_HW_USB_MSC