mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:47:35 +00:00
Kernel: Implement PIT::set_periodic() and PIT::set_non_periodic()
This commit is contained in:
parent
36f6e09f7e
commit
e3e1566fd7
1 changed files with 4 additions and 4 deletions
|
@ -46,13 +46,13 @@ size_t PIT::ticks_per_second() const
|
|||
|
||||
void PIT::set_periodic()
|
||||
{
|
||||
// FIXME: Implement it...
|
||||
VERIFY_NOT_REACHED();
|
||||
IO::out8(PIT_CTL, TIMER0_CTL | WRITE_WORD | MODE_SQUARE_WAVE);
|
||||
m_periodic = true;
|
||||
}
|
||||
void PIT::set_non_periodic()
|
||||
{
|
||||
// FIXME: Implement it...
|
||||
VERIFY_NOT_REACHED();
|
||||
IO::out8(PIT_CTL, TIMER0_CTL | WRITE_WORD | MODE_ONESHOT);
|
||||
m_periodic = false;
|
||||
}
|
||||
|
||||
void PIT::reset_to_default_ticks_per_second()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue