IBNOS
Macros | Functions | Variables
timer.c File Reference
#include <process/timer.h>
#include <process/object.h>
#include <memory/allocator.h>
#include <interrupt/interrupt.h>
#include <hardware/pic.h>
#include <hardware/pit.h>
#include <util/list.h>
#include <util/util.h>
Include dependency graph for timer.c:

Go to the source code of this file.

Macros

#define TIMER_INTERRUPT_FREQUENCY   82 /* Hz */
 
#define TIMER_INTERRUPT_DELTA   12 /* ms */
 

Functions

struct timertimerCreate (bool wakeupAll)
 Creates a new kernel timer object. More...
 
void timerInit ()
 Initializes the system timer. More...
 
uint64_t timerGetTimestamp ()
 Returns the current kernel timestamp. More...
 

Variables

struct linkedList timerList = LL_INIT(timerList)