mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- Removed custom `TickType` - Removed TactilityC functionality that is now covered by TactilityFreeRtos
30 lines
613 B
C
30 lines
613 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <freertos/FreeRTOS.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define TT_LVGL_DEFAULT_LOCK_TIME 500 // 500 ticks = 500 ms
|
|
|
|
/** @return true if LVGL is started and active */
|
|
bool tt_lvgl_is_started();
|
|
|
|
/** Start LVGL and related background services */
|
|
void tt_lvgl_start();
|
|
|
|
/** Stop LVGL and related background services */
|
|
void tt_lvgl_stop();
|
|
|
|
/** Lock the LVGL context. Call this before doing LVGL-related operations from a non-LVLG thread */
|
|
bool tt_lvgl_lock(TickType_t timeout);
|
|
|
|
/** Unlock the LVGL context */
|
|
void tt_lvgl_unlock();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|