22 lines
381 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 <driver/acpi/acpi.h>
#include <driver/timers/rtc/rtc.h>
#define E_HPET_INIT_FAILED 1
#define HPET0_INTERVAL 500 // HPET0定时器的中断间隔为500us
int HPET_init();
/**
* @brief 测定apic定时器的频率
*
*/
void HPET_measure_apic_timer_freq();
/**
* @brief 启用HPET周期中断5ms
*
*/
void HPET_enable();