2023-08-04 10:22:20 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <kernel/Timer/Timer.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define PIT_IRQ 0
|
|
|
|
|
|
|
|
namespace Kernel
|
|
|
|
{
|
|
|
|
|
|
|
|
class PIT final : public Timer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static BAN::ErrorOr<BAN::UniqPtr<PIT>> create();
|
|
|
|
|
|
|
|
virtual uint64_t ms_since_boot() const override;
|
2023-08-04 15:44:32 +03:00
|
|
|
virtual timespec time_since_boot() const override;
|
2023-08-04 10:22:20 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
void initialize();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|