mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-18 17:35:05 +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
34 lines
789 B
C
34 lines
789 B
C
#pragma once
|
|
|
|
#include "app_manifest.h"
|
|
#include "devices.h"
|
|
#include "furi_extra_defines.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Forward declarations
|
|
typedef void* FuriThreadId;
|
|
typedef TouchDriver (*CreateTouchDriver)();
|
|
typedef DisplayDriver (*CreateDisplayDriver)();
|
|
|
|
typedef struct {
|
|
// Required driver for display
|
|
const CreateDisplayDriver _Nonnull display_driver;
|
|
// Optional driver for touch input
|
|
const CreateTouchDriver _Nullable touch_driver;
|
|
// List of user applications
|
|
const size_t apps_count;
|
|
const AppManifest* const apps[];
|
|
} Config;
|
|
|
|
__attribute__((unused)) extern void nanobake_start(Config _Nonnull* config);
|
|
|
|
FuriThreadId nanobake_get_app_thread_id(size_t index);
|
|
size_t nanobake_get_app_thread_count();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|