Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tangara-fw/src/main/main.cpp

25 lines
519 B

/*
* Copyright 2023 jacqueline <me@jacqueline.id.au>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#include "freertos/portmacro.h"
3 years ago
#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();
3 years ago
auto& queue = events::EventQueue::GetInstance();
while (1) {
2 years ago
queue.ServiceSystemAndAudio(portMAX_DELAY);
}
}