blob: e46fffb27203613e9d80a6bd49d8ad7711a11846 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef KERN_SYSTICK_SYSTICK_MANAGER_H_
#define KERN_SYSTICK_SYSTICK_MANAGER_H_
#include "kern/common.h"
/*
* Enable the systick timer.
*
* The systick counter counts down from the counter. When the counter
* hits 0, an interrupt is and the callbacks are fired.
*/
void enable_systick(uint32_t systick_counter);
/*
* Disables the systick timer.
*/
void disable_systick();
/*
* Add a callback to the systick system. These callbacks will
* be callled when the interrupt is raised.
*/
void systick_add_callback(void(*callback)(void*), void* arg);
#endif /* KERN_SYSTICK_SYSTICK_MANAGER_H_ */
|