noxos (docs): merged 'drivers/time' docs from .wiki

This commit is contained in:
antifallobst 2023-03-15 23:43:05 +01:00
parent d560627b2d
commit e825636025
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
title: "time"
summary: "drivers for time related hardware"
---

View File

@ -0,0 +1,5 @@
---
title: "time"
---
Tick. Tack. Tick. Tack.

View File

@ -0,0 +1,15 @@
---
title: "pit.h"
summary: "communicates with the _Programmable Interval Timer_"
---
#### `PIT_CHANNEL_0_PORT` - macro
The IO port, where channel 0 of the PIT (which is capable of firing IRQs) can be configured.
#### `PIT_DIVISOR` - macro
The standard divisor, that noxos loads into channel 0 of the PIT.
`32768` fires an interrupt every `~27ms`, what is perfect for preemptive multithreading.
#### `pit_set_divisor(divisor)` - function (void)
Loads **_divisor_** into channel 0 of the PIT.
If **_divisor_** is smaller than 100, it will be set to 100.