1 #pragma once
2 
3 #include <common/glib.h>
4 #include <driver/acpi/acpi.h>
5 
6 #define E_HPET_INIT_FAILED 1
7 
8 #define HPET0_INTERVAL 500 // HPET0定时器的中断间隔为500us
9 int HPET_init();
10 
11 /**
12  * @brief 测定apic定时器以及tsc的频率
13  *
14  */
15 void HPET_measure_freq();
16 
17 /**
18  * @brief 启用HPET周期中断(5ms)
19  *
20  */
21 void HPET_enable();