add micros_per_tick assert

Just checking
This commit is contained in:
2024-03-23 10:58:05 +01:00
parent d41d620172
commit f8372e8985

View File

@@ -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);