1 /* 2 * Copyright (c) 2024 Fabian Blatz <fabianblatz@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_MODULES_LVGL_ZEPHYR_H_ 8 #define ZEPHYR_MODULES_LVGL_ZEPHYR_H_ 9 10 #include <zephyr/kernel.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 /** 17 * @brief Initialize the LittlevGL library 18 * 19 * This function initializes the LittlevGL library and setups the display and input devices. 20 * If `LV_Z_AUTO_INIT` is disabled it must be called before any other LittlevGL function. 21 * 22 * @return 0 on success, negative errno code on failure 23 */ 24 int lvgl_init(void); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* ZEPHYR_MODULES_LVGL_ZEPHYR_H_ */ 31