Implementation of timer functions.
◆ TIMER_INTERRUPT_DELTA
#define TIMER_INTERRUPT_DELTA 12 /* ms */ |
◆ TIMER_INTERRUPT_FREQUENCY
#define TIMER_INTERRUPT_FREQUENCY 82 /* Hz */ |
◆ timerCreate()
struct timer* timerCreate |
( |
bool |
wakeupAll | ) |
|
Creates a new kernel timer object.
This function allocates and returns the memory for a new kernel timer object, which expires after some time or periodically triggers an event.
- Parameters
-
wakeupAll | Should all waiting threads wake up on expire? |
- Returns
- Pointer to the new kernel timer object
Definition at line 111 of file timer.c.
◆ timerGetTimestamp()
uint64_t timerGetTimestamp |
( |
| ) |
|
Returns the current kernel timestamp.
This function returns the current kernel timestamp, which represents the number of milliseconds since the system was booted.
- Returns
- Kernel timestmap
Definition at line 325 of file timer.c.
◆ timerInit()
Initializes the system timer.
This function initializes the system timer which is used to schedule threads.
Definition at line 313 of file timer.c.
◆ timerList