38 lines
999 B
C
38 lines
999 B
C
/**
|
|
****************************************************************************************************
|
|
* @file ui.h
|
|
* @author HiFi Player Project
|
|
* @version V1.2
|
|
* @date 2026-01-01
|
|
* @brief 界面总入口(路由器)
|
|
*
|
|
* ui.c 只做两件事:
|
|
* 1. 按 app_get_mode() 切换到对应 App 的界面;
|
|
* 2. 作为“按键事件唯一消费者”,把事件分发给当前 App 的界面。
|
|
*
|
|
* 具体界面代码分别位于:
|
|
* home/ 主界面(应用启动器)
|
|
* files/ 文件管理器(浏览 SD 卡目录)
|
|
* player/ 播放器(界面 + 播放核心)
|
|
****************************************************************************************************
|
|
*/
|
|
|
|
#ifndef __UI_H
|
|
#define __UI_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief 创建全部界面并启动界面刷新定时器
|
|
* @note 调用前必须先执行 lvgl_port_init()
|
|
*/
|
|
void ui_create(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __UI_H */
|