-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #263, basic proof of concept for selectable eeprom implementation
- Loading branch information
Showing
14 changed files
with
125 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
########################################################### | ||
# | ||
# CFE arch/platform build setup | ||
# | ||
# This file is evaluated as part of the "prepare" stage | ||
# and can be used to set up prerequisites for the build, | ||
# such as generating header files | ||
# | ||
########################################################### | ||
|
||
## Check that PSPNAME is set properly for this arch | ||
#if (NOT CFE_SYSTEM_PSPNAME) | ||
# if (CMAKE_CROSSCOMPILING) | ||
# message(FATAL_ERROR "Cross-compile toolchain ${CMAKE_TOOLCHAIN_FILE} must define CFE_SYSTEM_PSPNAME") | ||
# elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR | ||
# "${CMAKE_SYSTEM_NAME}" STREQUAL "CYGWIN") | ||
# # Export the variables determined here up to the parent scope | ||
# SET(CFE_SYSTEM_PSPNAME "pc-linux") | ||
# else () | ||
# # Not cross compiling and host system is not recognized | ||
# message(FATAL_ERROR "Do not know how to set CFE_SYSTEM_PSPNAME on ${CMAKE_SYSTEM_NAME} system") | ||
# endif() | ||
#endif (NOT CFE_SYSTEM_PSPNAME) | ||
# | ||
## Translate the CFE_SYSTEM_PSPNAME to a set of modules | ||
#file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/cfe_pspdef_${CFE_SYSTEM_PSPNAME}.cmake" PSP_BASE_MODULE_LIST REGEX "^[a-zA-Z]") | ||
# | ||
## PREPEND the fixed module list to the user-specified module list for every CPU that shares this PSP | ||
## Note the user may have listed extra modules in their targets.cmake, and order is important. | ||
## JPHFIX - cleanup | ||
#message("PSP_MODULE_LIST=${PSP_BASE_MODULE_LIST}") | ||
#foreach(TGTNAME ${TGTSYS_${TARGETSYSTEM}}) | ||
# message("${TGTNAME}_PSP_MODULELIST (orig)=${${TGTNAME}_PSP_MODULELIST}") | ||
# set(${TGTNAME}_PSP_MODULELIST ${PSP_BASE_MODULE_LIST} ${${TGTNAME}_PSP_MODULELIST}) | ||
# message("${TGTNAME}_PSP_MODULELIST (fixed)=${${TGTNAME}_PSP_MODULELIST}") | ||
#endforeach() | ||
|
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,12 @@ | ||
/* This file is generated via CMake - do not edit in place */ | ||
#include "cfe_psp_module.h" | ||
|
||
@GENERATED_EXTERNS@ | ||
|
||
CFE_StaticModuleLoadEntry_t CFE_PSP_BASE_MODULE_LIST[] = | ||
{ | ||
@GENERATED_KEYVALS@ | ||
{ NULL } | ||
}; | ||
|
||
/* END OF FILE */ |
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,4 @@ | ||
# This is a list of modules that is included as a fixed/base set | ||
# when this PSP is selected. They must exist under fsw/modules | ||
|
||
eeprom_direct |
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,3 @@ | ||
|
||
# Create the module | ||
add_psp_module(eeprom_direct cfe_psp_eeprom_direct.c) |
File renamed without changes.
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,4 @@ | ||
# This is a list of modules that is included as a fixed/base set | ||
# when this PSP is selected. They must exist under fsw/modules | ||
|
||
eeprom_mmap_file |
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,4 @@ | ||
# This is a list of modules that is included as a fixed/base set | ||
# when this PSP is selected. They must exist under fsw/modules | ||
|
||
eeprom_stub |
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
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