2021-12-12 14:00:17 +00:00
|
|
|
#ifndef KERNEL_INCLUDED_TIMER
|
|
|
|
#define KERNEL_INCLUDED_TIMER 1
|
2017-11-03 04:19:48 +00:00
|
|
|
|
2022-06-23 21:45:42 +00:00
|
|
|
#include "interrupts/main.h"
|
2017-11-03 05:10:07 +00:00
|
|
|
|
|
|
|
typedef hwint_handler_t timer_handler_t;
|
|
|
|
|
2017-11-03 04:19:48 +00:00
|
|
|
void timer_initialize(unsigned int frequency);
|
|
|
|
|
2017-11-03 05:10:07 +00:00
|
|
|
void timer_register_handler(timer_handler_t handler);
|
2017-11-06 12:06:28 +00:00
|
|
|
void timer_unregister_handler();
|
2017-11-03 05:10:07 +00:00
|
|
|
|
2017-11-03 04:19:48 +00:00
|
|
|
#endif
|