mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Implemented `LaunchId` to keep track of the apps that are started - Implemented `FileSelection` app to select existing and/or new files. - Moved some re-usable file functionality to `tt::file::` - Renamed `Files` app to `FileBrowser` - Updated `Notes` app to use new `FileSelection` functionality, and cleaned it up a bit. - General code cleanliness improvements
22 lines
519 B
C++
22 lines
519 B
C++
#pragma once
|
|
|
|
#include "Main.h"
|
|
|
|
namespace simulator {
|
|
/** Set the function pointer of the real app_main() */
|
|
void setMain(MainFunction mainFunction);
|
|
/** The actual main task */
|
|
void freertosMain();
|
|
}
|
|
|
|
extern "C" {
|
|
void app_main(); // ESP-IDF's main function, implemented in the application
|
|
}
|
|
|
|
int main() {
|
|
// Actual main function that passes on app_main() (to be executed in a FreeRTOS task) and bootstraps FreeRTOS
|
|
simulator::setMain(app_main);
|
|
simulator::freertosMain();
|
|
return 0;
|
|
}
|