summaryrefslogtreecommitdiff
path: root/src/main/main.cpp
blob: df1eb8b2aefe6d166dfc51402b2655c909daaf90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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.Service(portMAX_DELAY);
  }
}