mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 05:06:58 -04:00
15 lines
339 B
C++
15 lines
339 B
C++
#pragma once
|
|
|
|
#include "tinyfsm/include/tinyfsm.hpp"
|
|
#include "EndpointFsm.hpp"
|
|
#include "ParserFsm.hpp"
|
|
#include "RawDataFsm.hpp"
|
|
|
|
using fsm_list = tinyfsm::FsmList<ParserFsm, EndpointFsm, RawDataFsm>;
|
|
|
|
/** dispatch event to all FSMs */
|
|
template <typename E> void send_event(E const &event)
|
|
{
|
|
fsm_list::template dispatch<E>(event);
|
|
}
|