feat(radio): add conditional exFAT support (#7352)

This commit is contained in:
3djc
2026-06-03 13:32:13 +10:00
committed by GitHub
parent a7d730fded
commit 56de02330c
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -59,6 +59,7 @@ else()
option(USBJ_EX "Enable USB Joystick Extension" ON) option(USBJ_EX "Enable USB Joystick Extension" ON)
endif() endif()
option(AUDIO "Enable audio" ON) option(AUDIO "Enable audio" ON)
option(EXFAT "Enable exFAT filesystem support in FatFs" OFF)
if(NATIVE_BUILD) if(NATIVE_BUILD)
option(ALL_LANGUAGES "Enable runtime language selection" ON) option(ALL_LANGUAGES "Enable runtime language selection" ON)
+4
View File
@@ -27,6 +27,10 @@ endif()
include_directories(${FATFS_DIR} ${FATFS_DIR}/option) include_directories(${FATFS_DIR} ${FATFS_DIR}/option)
if(EXFAT)
add_definitions(-DFF_FS_EXFAT=1)
endif()
set(BOOTLOADER_SRC ${BOOTLOADER_SRC} set(BOOTLOADER_SRC ${BOOTLOADER_SRC}
${CMAKE_CURRENT_SOURCE_DIR}/hal/key_driver.cpp ${CMAKE_CURRENT_SOURCE_DIR}/hal/key_driver.cpp
) )
+2
View File
@@ -238,7 +238,9 @@
/ buffer in the filesystem object (FATFS) is used for the file data transfer. */ / buffer in the filesystem object (FATFS) is used for the file data transfer. */
#ifndef FF_FS_EXFAT
#define FF_FS_EXFAT 0 #define FF_FS_EXFAT 0
#endif
/* This option switches support for exFAT filesystem. (0:Disable or 1:Enable) /* This option switches support for exFAT filesystem. (0:Disable or 1:Enable)
/ To enable exFAT, also LFN needs to be enabled. (FF_USE_LFN >= 1) / To enable exFAT, also LFN needs to be enabled. (FF_USE_LFN >= 1)
/ Note that enabling exFAT discards ANSI C (C89) compatibility. */ / Note that enabling exFAT discards ANSI C (C89) compatibility. */