-
Notifications
You must be signed in to change notification settings - Fork 3
Behold! The FileSystem Has Arrived! #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 42 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
36fe485
updated fprime zephyr version
ineskhou 15d6d7a
Initial radio addition
LeStarch daa9740
Add LoRa transmit
LeStarch 868fc66
Add com delay component
LeStarch 30fe619
Create custom_space_data_link.py
ineskhou e677465
Allows Makefile with F Prime version and run GDS with camera
ineskhou b21abcf
Add circuit pass-through
LeStarch 221c9e1
Update to use aggregation
LeStarch 925ea7e
Update to use aggregation
LeStarch 3369a2e
Appease Linter
Mikefly123 5ecb939
Ran Linter
Mikefly123 4b868ad
Merge pull request #42 from Open-Source-Space-Foundation/run-make-fmt…
Mikefly123 b2deade
Fix Submodules
Mikefly123 a67e02b
Merge branch 'main' into radio
Mikefly123 f3d422a
Merge branch 'main' into radio
Mikefly123 690b31c
try
nateinaction 4469434
Apply suggestion from @nateinaction
nateinaction 6c8d5ee
changed the aggregator
ineskhou bdbc8e5
Merge branch 'radio' of github.com:Open-Source-Space-Foundation/prove…
ineskhou 1b8c4f7
Merge branch 'main' of github.com:open-source-space-foundation/proves…
nateinaction ceb570f
Revert bootloadertrigger change
nateinaction 2810ace
Merge branch 'main' of github.com:open-source-space-foundation/proves…
nateinaction 72beeda
spacing
nateinaction 60881fa
Merged
LeStarch 6017947
updated instrcutions and flow to run the circuitpython radio example
ineskhou e9b81b2
Add in com splitter and UART com
LeStarch e591397
Merge remote-tracking branch 'origin/radio' into radio
LeStarch caac355
Fix format errors
LeStarch cd4dcce
letting ComIn be valid
ineskhou 1b34f98
Update to correct miss-aggregations
LeStarch ce40252
Fix LoRa beaconing
LeStarch d3dc80f
Update code.py
ineskhou d918459
Merge branch 'main' into radio
ineskhou b2a3f3c
Lint
LeStarch bfa55e5
change back to do bc broncospace is out of cs and need to run integra…
ineskhou a2a17b2
Hacked for Zephyr
LeStarch 037d4cf
Merge main
LeStarch 517bcc2
Add in prmDb
LeStarch 9d8c1ce
Add FS telemetry component
LeStarch 607ec61
added the fatfs support in the west.yml
ineskhou 0acb569
Merge branch 'fs' of github.com:Open-Source-Space-Foundation/proves-c…
ineskhou b8183ed
make the update good
ineskhou 659f35a
Remove SYNTHETIC_FALLOCATE definition
LeStarch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 +1,2 @@ | ||
| comIn | ||
| Ines |
This file contains hidden or 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 hidden or 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 hidden or 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,36 @@ | ||
| #### | ||
| # F Prime CMakeLists.txt: | ||
| # | ||
| # SOURCES: list of source files (to be compiled) | ||
| # AUTOCODER_INPUTS: list of files to be passed to the autocoders | ||
| # DEPENDS: list of libraries that this module depends on | ||
| # | ||
| # More information in the F´ CMake API documentation: | ||
| # https://fprime.jpl.nasa.gov/latest/docs/reference/api/cmake/API/ | ||
| # | ||
| #### | ||
|
|
||
| # Module names are derived from the path from the nearest project/library/framework | ||
| # root when not specifically overridden by the developer. i.e. The module defined by | ||
| # `Ref/SignalGen/CMakeLists.txt` will be named `Ref_SignalGen`. | ||
|
|
||
| register_fprime_library( | ||
| AUTOCODER_INPUTS | ||
| "${CMAKE_CURRENT_LIST_DIR}/FsSpace.fpp" | ||
| SOURCES | ||
| "${CMAKE_CURRENT_LIST_DIR}/FsSpace.cpp" | ||
| # DEPENDS | ||
| # MyPackage_MyOtherModule | ||
| ) | ||
|
|
||
| ### Unit Tests ### | ||
| # register_fprime_ut( | ||
| # AUTOCODER_INPUTS | ||
| # "${CMAKE_CURRENT_LIST_DIR}/FsSpace.fpp" | ||
| # SOURCES | ||
| # "${CMAKE_CURRENT_LIST_DIR}/test/ut/FsSpaceTestMain.cpp" | ||
| # "${CMAKE_CURRENT_LIST_DIR}/test/ut/FsSpaceTester.cpp" | ||
| # DEPENDS | ||
| # STest # For rules-based testing | ||
| # UT_AUTO_HELPERS | ||
| # ) |
This file contains hidden or 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,36 @@ | ||
| // ====================================================================== | ||
| // \title FsSpace.cpp | ||
| // \author starchmd | ||
| // \brief cpp file for FsSpace component implementation class | ||
| // ====================================================================== | ||
|
|
||
| #include "FprimeZephyrReference/Components/FsSpace/FsSpace.hpp" | ||
| #include <zephyr/kernel.h> | ||
| #include <zephyr/sys/printk.h> | ||
| #include "Os/FileSystem.hpp" | ||
|
|
||
| namespace Components { | ||
|
|
||
| // ---------------------------------------------------------------------- | ||
| // Component construction and destruction | ||
| // ---------------------------------------------------------------------- | ||
|
|
||
| FsSpace ::FsSpace(const char* const compName) : FsSpaceComponentBase(compName) {} | ||
|
|
||
| FsSpace ::~FsSpace() {} | ||
|
|
||
| // ---------------------------------------------------------------------- | ||
| // Handler implementations for typed input ports | ||
| // ---------------------------------------------------------------------- | ||
|
|
||
| void FsSpace ::run_handler(FwIndexType portNum, U32 context) { | ||
| FwSizeType freeBytes = 0; | ||
| FwSizeType totalBytes = 0; | ||
| Os::FileSystem::Status status = Os::FileSystem::getFreeSpace("/prmDb.dat", totalBytes, freeBytes); | ||
| if (status == Os::FileSystem::OP_OK) { | ||
| this->tlmWrite_FreeSpace(freeBytes); | ||
| this->tlmWrite_TotalSpace(totalBytes); | ||
| } | ||
| } | ||
|
|
||
| } // namespace Components |
This file contains hidden or 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,27 @@ | ||
| module Components { | ||
| @ Read free space | ||
| passive component FsSpace { | ||
|
|
||
| ############################################################################## | ||
| #### Uncomment the following examples to start customizing your component #### | ||
| ############################################################################## | ||
|
|
||
| @ Free disk space telemetry channel | ||
| telemetry FreeSpace: FwSizeType | ||
|
|
||
| @ Total disk space telemetry channel | ||
| telemetry TotalSpace: FwSizeType | ||
|
|
||
| sync input port run: Svc.Sched | ||
|
|
||
| ############################################################################### | ||
| # Standard AC Ports: Required for Channels, Events, Commands, and Parameters # | ||
| ############################################################################### | ||
| @ Port for requesting the current time | ||
| time get port timeCaller | ||
|
|
||
| @ Port for sending telemetry channels to downlink | ||
| telemetry port tlmOut | ||
|
|
||
| } | ||
| } |
This file contains hidden or 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,40 @@ | ||
| // ====================================================================== | ||
| // \title FsSpace.hpp | ||
| // \author starchmd | ||
| // \brief hpp file for FsSpace component implementation class | ||
| // ====================================================================== | ||
|
|
||
| #ifndef Components_FsSpace_HPP | ||
| #define Components_FsSpace_HPP | ||
|
|
||
| #include "FprimeZephyrReference/Components/FsSpace/FsSpaceComponentAc.hpp" | ||
|
|
||
| namespace Components { | ||
|
|
||
| class FsSpace final : public FsSpaceComponentBase { | ||
| public: | ||
| // ---------------------------------------------------------------------- | ||
| // Component construction and destruction | ||
| // ---------------------------------------------------------------------- | ||
|
|
||
| //! Construct FsSpace object | ||
| FsSpace(const char* const compName //!< The component name | ||
| ); | ||
|
|
||
| //! Destroy FsSpace object | ||
| ~FsSpace(); | ||
|
|
||
| private: | ||
| // ---------------------------------------------------------------------- | ||
| // Handler implementations for typed input ports | ||
| // ---------------------------------------------------------------------- | ||
|
|
||
| //! Handler implementation for run | ||
| void run_handler(FwIndexType portNum, //!< The port number | ||
| U32 context //!< The call order | ||
| ) override; | ||
| }; | ||
|
|
||
| } // namespace Components | ||
|
|
||
| #endif |
This file contains hidden or 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 @@ | ||
| # Components::FsSpace | ||
|
|
||
| Read free space from the filesystem (specifically the filesystem containing /prmDb.dat)/ | ||
|
|
||
| ## Telemetry | ||
| | Name | Description | | ||
| |---|---| | ||
| | FreeSpace | Free space in bytes | | ||
| | TotalSpace | Total space in bytes | | ||
|
|
||
|
|
||
| ## Change Log | ||
| | Date | Description | | ||
| |---|---| | ||
| |---| Initial Draft | |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
10 changes: 10 additions & 0 deletions
10
...s/bronco_space/proves_flight_control_board_v5/proves_flight_control_board_v5-pinctrl.dtsi
This file contains hidden or 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 hidden or 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
Submodule fprime
updated
77 files
Submodule fprime-zephyr
updated
4 files
| +0 −1 | cmake/platform/Zephyr.cmake | |
| +13 −0 | fprime-zephyr/Os/CMakeLists.txt | |
| +0 −183 | fprime-zephyr/Os/File.cpp | |
| +113 −0 | fprime-zephyr/Os/FileSystem.cpp |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.