mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
This commit add state machine framework lib to the NuttX project. Also an example is added to help users understand and use this feature. Changes: Added some files. No impact in other features are expected. Adjust SMF macro names Fix issues requested during MR review update kconfig fix ci-cd issue Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
28 lines
793 B
Text
28 lines
793 B
Text
# SMF (State Machine Framework) configuration options
|
|
#
|
|
# For syntax reference, see kconfig-language.txt in the NuttX tools repository.
|
|
|
|
config SYSTEM_SMF
|
|
bool "(SMF) support"
|
|
default n
|
|
---help---
|
|
Enables the State Machine Framework (SMF) for implementing state machines
|
|
|
|
if SYSTEM_SMF
|
|
|
|
config SYSTEM_SMF_ANCESTOR_SUPPORT
|
|
bool "Enable ancestor/parent state support"
|
|
default n
|
|
---help---
|
|
Enables support for parent/ancestor relationships between SMF states.
|
|
Required for hierarchical state machines.
|
|
|
|
config SYSTEM_SMF_INITIAL_TRANSITION
|
|
bool "Enable initial transition support"
|
|
default n
|
|
depends on SYSTEM_SMF_ANCESTOR_SUPPORT
|
|
---help---
|
|
Enables support for initial transitions in hierarchical states.
|
|
Depends on ancestor/parent state support.
|
|
|
|
endif # SYSTEM_SMF
|