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.
|
|
|
/*
|
|
|
|
* 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.ServiceSystemAndAudio(portMAX_DELAY);
|
|
|
|
}
|
|
|
|
}
|