mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
Add new Fw.Ready port for coordinating startup (#3261)
This commit is contained in:
parent
ed0eb98868
commit
ff5b64daff
@ -19,6 +19,7 @@ add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/FilePacket/")
|
||||
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Obj/")
|
||||
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Port/")
|
||||
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Ports/CompletionStatus")
|
||||
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Ports/Ready")
|
||||
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Ports/Signal")
|
||||
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/Ports/SuccessCondition")
|
||||
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/SerializableFile/")
|
||||
|
||||
9
Fw/Ports/Ready/CMakeLists.txt
Normal file
9
Fw/Ports/Ready/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
####
|
||||
# CMakeLists.txt:
|
||||
#
|
||||
# Sets up the fprime module build within CMake.
|
||||
####
|
||||
set(SOURCE_FILES
|
||||
"${CMAKE_CURRENT_LIST_DIR}/Ready.fpp"
|
||||
)
|
||||
register_fprime_module()
|
||||
23
Fw/Ports/Ready/Ready.fpp
Normal file
23
Fw/Ports/Ready/Ready.fpp
Normal file
@ -0,0 +1,23 @@
|
||||
#####
|
||||
# Ready:
|
||||
#
|
||||
# A port without arguments for coordinating startup.
|
||||
#####
|
||||
|
||||
module Fw {
|
||||
@ As an input: Request that a component start operating or indicate that
|
||||
@ the prerequisites for the component are satisfied.
|
||||
@ As an output: Indicate that a component is now operating normally and is
|
||||
@ ready to service requests.
|
||||
@
|
||||
@ Each Ready port shall be invoked once.
|
||||
@ - Invoking a Ready port more than once is a coding defect worthy of an
|
||||
@ assertion.
|
||||
@ - Failing to invoke a Ready port is a coding defect that may result in a
|
||||
@ component remaining inoperative or not becoming fully operative.
|
||||
@ - It may be a coding defect worthy of an assertion, depending on the
|
||||
@ specification for each component, to attempt to operate a component
|
||||
@ that is not ready: that is, a component that has not received all
|
||||
@ Ready inputs or has not yet invoked all Ready outputs.
|
||||
port Ready()
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user