[feat] Desktop render color

This commit is contained in:
2026-05-31 19:58:14 +08:00
Unverified
parent 746786a059
commit 175eba1889
27 changed files with 66 additions and 39 deletions
+16
View File
@@ -0,0 +1,16 @@
#pragma once
#include <efi.h>
#include <efiser.h>
struct serial_context { // 串行内容结构体
EFI_SERIAL_IO_PROTOCOL *SerialIo;
};
extern serial_context g_serial;
void serial_init(EFI_SERIAL_IO_PROTOCOL *SerialIo); // 初始化串行驱动
void serial_write(const char *str); // 往串行写string
void serial_write_char(char c); // 往串行写char(不推荐使用)
void serial_write_hex(UINTN val); // 往串行写十六进制数字
char serial_read_char(); // 读串行