17 lines
343 B
C
17 lines
343 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#define MAX_BEEP_FREQUENCY_HZ 44100u
|
|
|
|
typedef void (*timer_callback)(void);
|
|
|
|
void init_pit(void);
|
|
void add_timer_callback(timer_callback tc);
|
|
|
|
uint32_t get_uptime_ms(void);
|
|
void set_beep_frequency_hz(uint32_t frequency_hz);
|
|
void disable_beep(void);
|
|
uint32_t get_beep_frequency_hz(void);
|
|
void msleep(int ms);
|