mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-18 17:35:05 +00:00
* 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
30 lines
649 B
C
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
|