hanjiezhou abe3a6ea3c
Patch refactor scm and textui (#289)
* 重构屏幕管理器和textui框架

* 切换字体为spleen,并增加对字体的抽象

* 修正文档

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>
2023-08-20 00:19:36 +08:00

35 lines
897 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <common/glib.h>
#include <stdbool.h>
#include <libs/lib_ui/screen_manager.h>
extern struct scm_buffer_info_t video_frame_buffer_info;
/**
* @brief 重新初始化显示驱动,需先低级初始化才能高级初始化
* @param level 初始化等级
* false -> 低级初始化不使用double buffer
* true ->高级初始化增加double buffer的支持
* @return int
*/
int video_reinitialize(bool level);
/**
* @brief 初始化显示驱动
*
* @return int
*/
int video_init();
/**
* @brief 设置帧缓冲区刷新目标
*
* @param buf
* @return int
*/
// int video_set_refresh_target(struct scm_buffer_info_t *buf);
int video_set_refresh_target(struct scm_buffer_info_t buf);
extern uint64_t video_refresh_expire_jiffies;
extern uint64_t video_last_refresh_pid;
void video_refresh_framebuffer(void *data);
uint64_t get_video_refresh_target_vaddr();