[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
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <efi.h>
// PIT I/O ports
#define PIT_CHANNEL0_DATA 0x40
#define PIT_COMMAND_PORT 0x43
// PIT frequency
#define PIT_BASE_FREQ 1193182 // 1.193182 MHz
#define PIT_TICK_HZ 100 // 100 Hz tick (10ms per tick)
// Timer tick callback type
typedef void (*timer_callback_t)(void);
void pit_init(void);
void pit_set_tick_handler(timer_callback_t handler);
UINT64 pit_get_ticks(void);