Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions examples/smf/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ##############################################################################
# apps/examples/hsm_psicc2/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
# ##############################################################################

if(CONFIG_EXAMPLES_SMF)
nuttx_add_application(
NAME
${CONFIG_EXAMPLES_SMF_PROGNAME}
SRCS
smf_main.c
hsm_psicc2_thread.c
STACKSIZE
${CONFIG_EXAMPLES_SMF_STACKSIZE}
PRIORITY
${CONFIG_EXAMPLES_SMF_PRIORITY})
endif()
37 changes: 37 additions & 0 deletions examples/smf/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

config EXAMPLES_SMF
tristate "State Machine Framework PSICC2 demo (HSM)"
default n
depends on NSH_BUILTIN_APPS
depends on SYSTEM_SMF
depends on SYSTEM_SMF_ANCESTOR_SUPPORT
depends on SYSTEM_SMF_INITIAL_TRANSITION

if EXAMPLES_SMF

config EXAMPLES_SMF_PROGNAME
string "Program name"
default "hsm_psicc2"

config EXAMPLES_SMF_PRIORITY
int "Priority"
default 100

config EXAMPLES_SMF_STACKSIZE
int "Stack size"
default 2048

config EXAMPLES_SMF_EVENT_QUEUE_SIZE
int "Event queue size"
default 10

config EXAMPLES_SMF_MQ_NAME
string "Message queue name"
default "/hsm_psicc2_mq"

endif

25 changes: 25 additions & 0 deletions examples/smf/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
############################################################################
# apps/examples/hello/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

ifneq ($(CONFIG_EXAMPLES_SMF),)
CONFIGURED_APPS += $(APPDIR)/examples/smf
endif
37 changes: 37 additions & 0 deletions examples/smf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
############################################################################
# apps/examples/hsm_psicc2/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

include $(APPDIR)/Make.defs

# HSM PSICC2 (SMF demo) built-in application info

PROGNAME = $(CONFIG_EXAMPLES_SMF_PROGNAME)
PRIORITY = $(CONFIG_EXAMPLES_SMF_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_SMF_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_SMF)

# HSM PSICC2 Example

MAINSRC = smf_main.c
CSRCS += hsm_psicc2_thread.c

include $(APPDIR)/Application.mk
Loading
Loading