36 lines
854 B
C
36 lines
854 B
C
/**
|
|
****************************************************************************************************
|
|
* @file lvgl_port.h
|
|
* @author HiFi Player Project
|
|
* @version V1.0
|
|
* @date 2026-01-01
|
|
* @brief LVGL 8.x 移植层(显示 + 时基)
|
|
****************************************************************************************************
|
|
*/
|
|
|
|
#ifndef __LVGL_PORT_H
|
|
#define __LVGL_PORT_H
|
|
|
|
#include "esp_err.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief 初始化 LVGL:显示驱动、绘图缓冲区、1ms 时基
|
|
* @note LVGL 会在内部使用 SPI LCD 的 panel 句柄,调用前必须先执行 spilcd_init()
|
|
*/
|
|
esp_err_t lvgl_port_init(void);
|
|
|
|
/**
|
|
* @brief 启动 LVGL 任务(lv_timer_handler 循环)
|
|
*/
|
|
void lvgl_port_start(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __LVGL_PORT_H */
|