This updates the lvgl in-tree glue code to work with version v8.1.0 and bumps the west manifest accordingly. The following are the most significant changes: - The logging callback has changes in lvgl and no longer provides the caller with an integer log level code. We now need to parse the log string's prefix to determine the level. - Several Kconfig options (mostly for default values of various settings) have been removed because these values are no longer configurable in lvgl. - The library no longer performs a deep copy of the display and input device driver structs, so these must no longer be allocated on the stack in the init func. Other than that it's mostly about renaming of various structures and functions and adjusting the calls if function's signatures have changed. This patch allows all in-tree users to work correctly but it's likely it doesn't support all new widgets and layouts added in lvgl v8. These however can be added gradually once this is upstream. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
47 lines
1.4 KiB
C
47 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_LIB_GUI_LVGL_LVGL_DISPLAY_H_
|
|
#define ZEPHYR_LIB_GUI_LVGL_LVGL_DISPLAY_H_
|
|
|
|
#include <drivers/display.h>
|
|
#include <lvgl.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void lvgl_flush_cb_mono(lv_disp_drv_t *disp_drv,
|
|
const lv_area_t *area, lv_color_t *color_p);
|
|
void lvgl_flush_cb_16bit(lv_disp_drv_t *disp_drv,
|
|
const lv_area_t *area, lv_color_t *color_p);
|
|
void lvgl_flush_cb_24bit(lv_disp_drv_t *disp_drv,
|
|
const lv_area_t *area, lv_color_t *color_p);
|
|
void lvgl_flush_cb_32bit(lv_disp_drv_t *disp_drv,
|
|
const lv_area_t *area, lv_color_t *color_p);
|
|
|
|
void lvgl_set_px_cb_mono(lv_disp_drv_t *disp_drv,
|
|
uint8_t *buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
|
|
lv_color_t color, lv_opa_t opa);
|
|
void lvgl_set_px_cb_16bit(lv_disp_drv_t *disp_drv,
|
|
uint8_t *buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
|
|
lv_color_t color, lv_opa_t opa);
|
|
void lvgl_set_px_cb_24bit(lv_disp_drv_t *disp_drv,
|
|
uint8_t *buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
|
|
lv_color_t color, lv_opa_t opa);
|
|
void lvgl_set_px_cb_32bit(lv_disp_drv_t *disp_drv,
|
|
uint8_t *buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
|
|
lv_color_t color, lv_opa_t opa);
|
|
|
|
void lvgl_rounder_cb_mono(lv_disp_drv_t *disp_drv, lv_area_t *area);
|
|
|
|
int set_lvgl_rendering_cb(lv_disp_drv_t *disp_drv);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_LIB_GUI_LVGL_LVGL_DISPLAY_H */
|