mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
add micros_per_tick assert
Just checking
This commit is contained in:
@@ -41,6 +41,8 @@ void set_pit_count(unsigned count) {
|
||||
#define FREQ (1193182 / (RELOAD_VAL))
|
||||
#define MICROS_PER_TICK (1000000 / (FREQ))
|
||||
|
||||
static_assert(MICROS_PER_TICK >= 1);
|
||||
|
||||
void init_timer() {
|
||||
outb(0x43, 0b00110100);
|
||||
set_pit_count(RELOAD_VAL);
|
||||
|
||||
Reference in New Issue
Block a user