diff options
Diffstat (limited to 'kernel/include/mux/clock.h')
-rw-r--r-- | kernel/include/mux/clock.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/include/mux/clock.h b/kernel/include/mux/clock.h new file mode 100644 index 0000000..429a00d --- /dev/null +++ b/kernel/include/mux/clock.h @@ -0,0 +1,21 @@ +#ifndef MUX_CLOCK_H +#define MUX_CLOCK_H + +/** + * Initializes main system clock. + * @ms time between each tick in milliseconds + * @tick function to run every tick + */ +void clock_init(int ms, void (*tick)()); + +/** + * Starts main system clock. + */ +void clock_start(); + +/** + * Stops main system clock. + */ +void clock_stop(); + +#endif
\ No newline at end of file |