Files
tactility/tactility-esp/src/tactility-esp.h
T
2024-01-20 16:23:33 +01:00

30 lines
657 B
C

#pragma once
#include "hardare.h"
#include "tactility.h"
#ifdef __cplusplus
extern "C" {
#endif
// Forward declarations
typedef void (*Bootstrap)();
typedef TouchDriver (*CreateTouchDriver)();
typedef DisplayDriver (*CreateDisplayDriver)();
typedef struct {
// Optional bootstrapping method (e.g. to turn peripherals on)
const Bootstrap _Nullable bootstrap;
// Required driver for display
const CreateDisplayDriver _Nonnull display_driver;
// Optional driver for touch input
const CreateTouchDriver _Nullable touch_driver;
} HardwareConfig;
void tt_esp_init(const HardwareConfig* hardware_config);
#ifdef __cplusplus
}
#endif