summaryrefslogtreecommitdiff
path: root/digital/io/src/fsm_templates/template_fsm.c
blob: 87e52f333b12f041d0e210b0e378d140cfb6d3e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * THIS IS AN AUTOMATICALLY GENERATED FILE, DO NOT EDIT!
 *
 * %(name)s
 *
%(*comments)s */
#include "common.h"
#include "fsm.h"
#include "%(prefix)s_cb.h"

#define NULL ((void *)0L)

/* %(name)s transition table. */
static const fsm_transition_t
%(prefix)s_transition_table[%(PREFIX)s_STATE_NB][%(PREFIX)s_EVENT_NB] = {
%(transition_table)s};

/* %(name)s context. */
fsm_t %(prefix)s_fsm = {
    &%(prefix)s_transition_table[0][0],
    %(PREFIX)s_EVENT_NB,
    %(PREFIX)s_STATE_%(initial)s,
    %(PREFIX)s_STATE_%(initial)s,
};