Skip to content

Commit

Permalink
enabled exFAT in ffconf
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-herzog committed Dec 19, 2024
1 parent 84dcfe2 commit 551177e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion firmware/baseband/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ macro(DeclareTargets chunk_tag name)
project("baseband_${name}")

include(${RULESPATH}/rules.cmake)
set_source_files_properties(${MODE_CPPSRC} PROPERTIES COMPILE_FLAGS "${MODE_FLAGS}")
add_executable(${PROJECT_NAME}.elf $<TARGET_OBJECTS:baseband_shared> ${MODE_CPPSRC} ${HALSRC} ${PLATFORMSRC})
set_target_properties(${PROJECT_NAME}.elf PROPERTIES LINK_DEPENDS ${LDSCRIPT})
add_definitions(${DEFS})
Expand Down Expand Up @@ -313,6 +314,7 @@ macro(DeclareTargets chunk_tag name)
endmacro()

set(add_to_firmware TRUE)
set(MODE_FLAGS "-O3")


### ADS-B RX
Expand Down Expand Up @@ -498,6 +500,7 @@ set(MODE_CPPSRC
)
DeclareTargets(PWTH weather)

set(MODE_FLAGS "-Os")

### Flash Utility

Expand Down Expand Up @@ -559,7 +562,7 @@ DeclareTargets(PUSB sd_over_usb)

### Place external app and disabled images below so they don't get added to the firmware
set(add_to_firmware FALSE)

set(MODE_FLAGS "-O3")

### ACARS RX

Expand Down
4 changes: 2 additions & 2 deletions firmware/common/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
/ 950 - Traditional Chinese (DBCS)
*/

#define _USE_LFN 2
#define _USE_LFN 3
#define _MAX_LFN 255
/* The _USE_LFN switches the support of long file name (LFN).
/
Expand Down Expand Up @@ -189,7 +189,7 @@
/ Instead of private sector buffer eliminated from the file object, common sector
/ buffer in the file system object (FATFS) is used for the file data transfer. */

#define _FS_EXFAT 0
#define _FS_EXFAT 1
/* This option switches support of exFAT file system. (0:Disable or 1:Enable)
/ When enable exFAT, also LFN needs to be enabled. (_USE_LFN >= 1)
/ Note that enabling exFAT discards ANSI C (C89) compatibility. */
Expand Down

0 comments on commit 551177e

Please sign in to comment.