Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSat-OBC
ECSS Services
Commits
642d28ea
Unverified
Commit
642d28ea
authored
5 years ago
by
kongr45gpen
Browse files
Options
Downloads
Patches
Plain Diff
Add an ECSS configuration file that implements platform-specific options
parent
c6ad64f1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+6
-2
6 additions, 2 deletions
CMakeLists.txt
ci/clang-tidy.sh
+1
-1
1 addition, 1 deletion
ci/clang-tidy.sh
inc/Platform/x86/ECSS_Configuration.hpp
+40
-0
40 additions, 0 deletions
inc/Platform/x86/ECSS_Configuration.hpp
with
47 additions
and
3 deletions
CMakeLists.txt
+
6
−
2
View file @
642d28ea
...
@@ -14,6 +14,12 @@ add_custom_target(check
...
@@ -14,6 +14,12 @@ add_custom_target(check
COMMAND ./cppcheck-misra.sh
COMMAND ./cppcheck-misra.sh
WORKING_DIRECTORY
"
${
PROJECT_SOURCE_DIR
}
/ci"
)
WORKING_DIRECTORY
"
${
PROJECT_SOURCE_DIR
}
/ci"
)
# Allow the user to set the ECSS Configuration directory using the -DECSS_CONFIGURATION=... command line argument
set
(
ECSS_CONFIGURATION
"
${
PROJECT_SOURCE_DIR
}
/inc/Platform/x86"
CACHE PATH
"The include directory for the platform-specific ECSS configuration headers"
)
include_directories
(
${
ECSS_CONFIGURATION
}
)
# Specify the .cpp files common across all targets
# Specify the .cpp files common across all targets
add_library
(
common OBJECT
add_library
(
common OBJECT
src/Service.cpp
src/Service.cpp
...
@@ -43,8 +49,6 @@ add_executable(ecss_services
...
@@ -43,8 +49,6 @@ add_executable(ecss_services
$<TARGET_OBJECTS:common>
$<TARGET_OBJECTS:common>
${
x86_main_SRC
}
${
x86_main_SRC
}
)
)
set_target_properties
(
ecss_services
PROPERTIES COMPILE_DEFINITIONS LOGLEVEL_TRACE
)
IF
(
EXISTS
"
${
PROJECT_SOURCE_DIR
}
/lib/Catch2/CMakeLists.txt"
)
IF
(
EXISTS
"
${
PROJECT_SOURCE_DIR
}
/lib/Catch2/CMakeLists.txt"
)
# Gather all the .cpp files corresponding to tests
# Gather all the .cpp files corresponding to tests
...
...
This diff is collapsed.
Click to expand it.
ci/clang-tidy.sh
+
1
−
1
View file @
642d28ea
...
@@ -13,7 +13,7 @@ cd "$(dirname "$0")"
...
@@ -13,7 +13,7 @@ cd "$(dirname "$0")"
GCCVERSION
=
`
g++
-dumpversion
`
GCCVERSION
=
`
g++
-dumpversion
`
clang-tidy
`
find ../src/
-type
f
-regextype
posix-egrep
-regex
'.*\.(cpp|hpp|c|h)'
`
\
clang-tidy
`
find ../src/
-type
f
-regextype
posix-egrep
-regex
'.*\.(cpp|hpp|c|h)'
`
\
-extra-arg
=
-fcolor-diagnostics
--
-std
=
c++17
-I
../inc
-I
../lib/etl/include
\
-extra-arg
=
-fcolor-diagnostics
--
-std
=
c++17
-I
../inc
-I
../lib/etl/include
-I
../inc/Platform/x86
\
-I
/usr/include/c++/
$GCCVERSION
-I
/usr/include/x86_64-linux-gnu/c++/
$GCCVERSION
\
-I
/usr/include/c++/
$GCCVERSION
-I
/usr/include/x86_64-linux-gnu/c++/
$GCCVERSION
\
-I
/usr/include/c++/
$GCCVERSION
/
$MACHTYPE
-I
/usr/include/c++/
$GCCVERSION
/
$MACHTYPE
This diff is collapsed.
Click to expand it.
inc/Platform/x86/ECSS_Configuration.hpp
0 → 100644
+
40
−
0
View file @
642d28ea
#ifndef ECSS_SERVICES_ECSS_CONFIGURATION_HPP
#define ECSS_SERVICES_ECSS_CONFIGURATION_HPP
/**
* @file
* The configuration file for this ECSS Services platform.
*
* @see GlobalLogLevels Define the minimum level for logged messages
* @see ServiceDefinitions Define the service types that will be compiled
*/
// Log all levels of messages
#define LOGLEVEL_TRACE
/**
* @defgroup ServiceDefinitions Service compilation switches
* These preprocessor defines control whether the compilation of each ECSS service is enabled. By not defining one of
* those, the service will not be compiled, and no RAM or ROM will be spent storing it.
*
* Define these in the `ECSS_Configuration.hpp` file of your platform.
* @{
*/
#define SERVICE_ALL ///< Enables compilation of all the ECSS services
#ifdef SERVICE_ALL
#define SERVICE_EVENTACTION ///< Compile ST[19] event-action
#define SERVICE_EVENTREPORT ///< Compile ST[05] event reporting
#define SERVICE_FUNCTION ///< Compile ST[08] function management
#define SERVICE_LARGEPACKET ///< Compile ST[13] large packet transfer
#define SERVICE_MEMORY ///< Compile ST[06] memory management
#define SERVICE_PARAMETER ///< Compile ST[20] parameter management
#define SERVICE_REQUESTVERIFICATION ///< Compile ST[01] request verification
#define SERVICE_TEST ///< Compile ST[17] test
#define SERVICE_TIME ///< Compile ST[09] time management
#define SERVICE_TIMESCHEDULING ///< Compile ST[11] time-based scheduling
#endif
/** @} */
#endif //ECSS_SERVICES_ECSS_CONFIGURATION_HPP
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment