Kernel: Implement PIT::set_periodic() and PIT::set_non_periodic()
This commit is contained in:
parent
36f6e09f7e
commit
e3e1566fd7
Notes:
sideshowbarker
2024-07-17 03:45:34 +09:00
Author: https://github.com/Vitriol1744 🔰 Commit: https://github.com/SerenityOS/serenity/commit/e3e1566fd7 Pull-request: https://github.com/SerenityOS/serenity/pull/16289 Reviewed-by: https://github.com/supercomputer7 ✅
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
Reference in a new issue