Tactility/tactility-esp/src/tactility-esp.h
Ken Van Hoeylandt d6baf40d0b
Implement LVGL with SDL for simulator (#16)
* Implemented LVGL with SDL for simulator

* cleanup

* added SDL to build

* build fix

* mutex fixes

* sim app cleanup and improvements

* docs updated

* fix for sdl?

* fix for SDL cmake setup
2024-01-21 22:27:00 +01:00

30 lines
649 B
C

#pragma once
#include "hardware.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 display_driver;
// Optional driver for touch input
const CreateTouchDriver _Nullable touch_driver;
} HardwareConfig;
void tt_esp_init(const HardwareConfig* hardware_config);
#ifdef __cplusplus
}
#endif