summaryrefslogtreecommitdiffhomepage
path: root/tools/dfagen/examples/tpl/template_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dfagen/examples/tpl/template_table.h')
-rw-r--r--tools/dfagen/examples/tpl/template_table.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/tools/dfagen/examples/tpl/template_table.h b/tools/dfagen/examples/tpl/template_table.h
index 817197fa..39f07bdb 100644
--- a/tools/dfagen/examples/tpl/template_table.h
+++ b/tools/dfagen/examples/tpl/template_table.h
@@ -7,6 +7,20 @@
/* %(name)s transition table. */
static const %(prefix)s_transition_t
-%(prefix)s_transition_table[%(PREFIX)s_STATE_NB][%(PREFIX)s_EVENT_NB] = {
+%(prefix)s_transition_table[%(PREFIX)s_STATE_NB][%(PREFIX)s_EVENT_TYPE_NB] = {
%(transition_table)s};
+/* %(name)s only branch table. */
+static const %(prefix)s_state_t
+%(prefix)s_only_table[%(PREFIX)s_STATE_NB][%(PREFIX)s_EVENT_TYPE_NB] = {
+%(only_branch_table)s};
+
+/* %(name)s initial states. */
+static const %(prefix)s_state_t
+%(prefix)s_initials_table[] = {
+%(initials)s};
+
+/* %(name)s state attributes. */
+static const %(prefix)s_state_t
+%(prefix)s_attr_table[] = {
+%(states,"%(state)s (%(@)s) (%(@in)s) (%(@out|no_out)s)")s};