17 lines
343 B
C
Raw Normal View History

2023-01-25 14:56:38 +04:00
#pragma once
#include <stdint.h>
2026-04-06 16:40:50 +03:00
#define MAX_BEEP_FREQUENCY_HZ 44100u
2023-01-25 14:56:38 +04:00
typedef void (*timer_callback)(void);
void init_pit(void);
void add_timer_callback(timer_callback tc);
uint32_t get_uptime_ms(void);
2026-04-06 16:40:50 +03:00
void set_beep_frequency_hz(uint32_t frequency_hz);
void disable_beep(void);
uint32_t get_beep_frequency_hz(void);
2023-01-25 14:56:38 +04:00
void msleep(int ms);