-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
437 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
target_sources(Sts1CobcSw_FileSystem PRIVATE LfsWrapper.cpp) | ||
target_link_libraries(Sts1CobcSw_FileSystem PUBLIC littlefs::littlefs Sts1CobcSw_Outcome) | ||
target_link_libraries(Sts1CobcSw_FileSystem PRIVATE Sts1CobcSw_Serial) | ||
target_link_libraries( | ||
Sts1CobcSw_FileSystem PUBLIC etl::etl littlefs::littlefs Sts1CobcSw_Outcome | ||
Sts1CobcSw_ProgramId Sts1CobcSw_Serial | ||
) | ||
|
||
if(CMAKE_SYSTEM_NAME STREQUAL Generic) | ||
target_sources(Sts1CobcSw_FileSystem PRIVATE FileSystem.cpp LfsFlash.cpp) | ||
target_link_libraries(Sts1CobcSw_FileSystem PRIVATE Sts1CobcSw_Periphery) | ||
target_link_libraries(Sts1CobcSw_FileSystem PRIVATE rodos::rodos Sts1CobcSw_Periphery) | ||
else() | ||
target_sources(Sts1CobcSw_FileSystem PRIVATE LfsRam.cpp) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#include <littlefs/lfs.h> | ||
|
||
|
||
namespace sts1cobcsw::fs | ||
{ | ||
inline constexpr auto lfsCacheSize = 256; | ||
// Our longest path should be strlen("/programs/65536.zip.lock") = 25 characters long | ||
inline constexpr auto maxPathLength = 30; | ||
extern lfs_config const lfsConfig; | ||
|
||
|
||
auto Initialize() -> void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.