blob: ac2f6ed89de6eefcafcb1d80dbe0b0d1d81ba62d (
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
|
/*
* Copyright 2023 jacqueline <me@jacqueline.id.au>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#include "freertos/portmacro.h"
#include "tinyfsm.hpp"
#include "audio_fsm.hpp"
#include "event_queue.hpp"
#include "system_fsm.hpp"
#include "ui_fsm.hpp"
extern "C" void app_main(void) {
tinyfsm::FsmList<system_fsm::SystemState, ui::UiState,
audio::AudioState>::start();
auto& queue = events::EventQueue::GetInstance();
while (1) {
queue.ServiceSystem(portMAX_DELAY);
}
}
|