summaryrefslogtreecommitdiff
path: root/lib/tinyfsm/examples/elevator/fsmlist.hpp
blob: d340f8a130654e6cf34c55354303ef319df92df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef FSMLIST_HPP_INCLUDED
#define FSMLIST_HPP_INCLUDED

#include <tinyfsm.hpp>

#include "elevator.hpp"
#include "motor.hpp"

using fsm_list = tinyfsm::FsmList<Motor, Elevator>;

/** dispatch event to both "Motor" and "Elevator" */
template<typename E>
void send_event(E const & event)
{
  fsm_list::template dispatch<E>(event);
}


#endif