oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
lvgl_internal.h
1/*
2 * Copyright (C) 2026 Kamil Lulko <kamil.lulko@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 *
6 * This file is part of oveRTOS.
7 */
8
9#ifndef OVE_LVGL_INTERNAL_H
10#define OVE_LVGL_INTERNAL_H
11
29#include "ove/types.h"
30#include "ove_config.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#ifdef CONFIG_OVE_LVGL
37
46int ove_lvgl_init(void);
47
53void ove_lvgl_lock(void);
54
60void ove_lvgl_unlock(void);
61
70void ove_lvgl_tick(uint32_t ms);
71
80
81#else /* !CONFIG_OVE_LVGL */
82
83static inline int ove_lvgl_init(void) { return OVE_ERR_NOT_SUPPORTED; }
84static inline void ove_lvgl_lock(void) { }
85static inline void ove_lvgl_unlock(void) { }
86static inline void ove_lvgl_tick(uint32_t ms) { (void)ms; }
87static inline void ove_lvgl_handler(void) { }
88
89#endif /* CONFIG_OVE_LVGL */
90
91#ifdef __cplusplus
92}
93#endif
94
97#endif /* OVE_LVGL_INTERNAL_H */
void ove_lvgl_tick(uint32_t ms)
Advance the LVGL internal tick counter.
void ove_lvgl_lock(void)
Acquire the LVGL mutex before calling any LVGL API.
void ove_lvgl_handler(void)
Process pending LVGL tasks (rendering, input, animations).
void ove_lvgl_unlock(void)
Release the LVGL mutex after calling LVGL APIs.
int ove_lvgl_init(void)
Initialise the LVGL library and register the board's display driver.
#define OVE_ERR_NOT_SUPPORTED
The requested feature is not supported by the active backend.
Definition types.h:38