Ken Van Hoeylandt 28bd80c1f1
Rename project to tactility (#7)
* wifi wip

* renamed project to Tactility

* renamed code files and defines

* changed prefixes to tt_

* removed wifi wip code
2024-01-06 12:24:38 +01:00

42 lines
1.0 KiB
C

#pragma once
#include "app_manifest.h"
#include "devices.h"
#include "furi_extra_defines.h"
#include "service_manifest.h"
#ifdef __cplusplus
extern "C" {
#endif
#define CONFIG_APPS_LIMIT 32
#define CONFIG_SERVICES_LIMIT 32
// Forward declarations
typedef void* FuriThreadId;
typedef void (*Bootstrap)();
typedef TouchDriver (*CreateTouchDriver)();
typedef DisplayDriver (*CreateDisplayDriver)();
typedef struct {
// Optional bootstrapping method
const Bootstrap _Nullable bootstrap;
// Required driver for display
const CreateDisplayDriver _Nonnull display_driver;
// Optional driver for touch input
const CreateTouchDriver _Nullable touch_driver;
} HardwareConfig;
typedef struct {
const HardwareConfig* hardware;
// List of user applications
const AppManifest* const apps[CONFIG_APPS_LIMIT];
const ServiceManifest* const services[CONFIG_SERVICES_LIMIT];
} Config;
__attribute__((unused)) extern void tactility_start(const Config _Nonnull* config);
#ifdef __cplusplus
}
#endif