mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
* app loading wip * various improvements irq/isr stuff is now working lvgl locking where needed hello world now uses proper mutex for app unlocking etc? * various improvements * cmsis_esp improvements * implement interrupts
30 lines
817 B
C
30 lines
817 B
C
#include "nanobake.h"
|
|
#include "record.h"
|
|
#include "apps/services/loader/loader.h"
|
|
|
|
// Hardware
|
|
#include "board_2432s024.h"
|
|
|
|
// Apps
|
|
#include "hello_world/hello_world.h"
|
|
|
|
__attribute__((unused)) void app_main(void) {
|
|
static Config config = {
|
|
.display_driver = &board_2432s024_create_display_driver,
|
|
.touch_driver = &board_2432s024_create_touch_driver,
|
|
.apps = {
|
|
&hello_world_app
|
|
},
|
|
.apps_count = 1
|
|
};
|
|
|
|
nanobake_start(&config);
|
|
|
|
FURI_RECORD_TRANSACTION(RECORD_LOADER, Loader*, loader, {
|
|
FuriString* error_message = furi_string_alloc();
|
|
if (loader_start(loader, hello_world_app.id, NULL, error_message) != LoaderStatusOk) {
|
|
FURI_LOG_E(hello_world_app.id, "%s\r\n", furi_string_get_cstr(error_message));
|
|
}
|
|
});
|
|
}
|