#include <cubeos.h>
Include dependency graph for ptimer.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | PTIMER_VECTOR 64 |
the interrup vector table entry to be used for the ptimer. More... | |
#define | PTIMER_IRQ_LEVEL 6 |
the interrupt level used by the ptimer. More... | |
#define | XTAL_FREQ 32768 |
68332 external clock frequency in Hz. More... | |
#define | PTIMER_PITR_VAL 0x0008 |
timer period, 977 uSec */. More... | |
#define | TICKS_PER_SECOND 1024 |
how many times the ISR is called per second. More... | |
#define | QUANTUM TICKS_PER_SECOND/128 |
how long is a quantum, every 8 ticks = 7.816msec. More... | |
Functions | |
int | KERN_ptint (void) |
periodic timer interrupt routine. More... | |
void | KERN_init_ptimer (void) |
initializes the periodic timer of the '332 SIM. More... | |
int | KERN_installdispatcher (void(*dispatcher)()) |
installs a timer dispatcher routine that is called every tick. More... | |
int | KERN_removedispatcher () |
removes the installed timer dispatcher routine. More... |
Definition in file ptimer.h.
|
the interrupt level used by the ptimer.
Definition at line 28 of file ptimer.h. Referenced by KERN_init_ptimer. |
|
timer period, 977 uSec */.
Definition at line 32 of file ptimer.h. Referenced by _settimeofday, KERN_init_ptimer, and settimeofday. |
|
the interrup vector table entry to be used for the ptimer.
Definition at line 25 of file ptimer.h. Referenced by KERN_init_ptimer. |
|
how long is a quantum, every 8 ticks = 7.816msec.
Definition at line 35 of file ptimer.h. Referenced by KERN_ptint. |
|
how many times the ISR is called per second.
Definition at line 33 of file ptimer.h. Referenced by _gettimeofday, gettimeofday, KERN_ptint, and KERN_usleep. |
|
68332 external clock frequency in Hz.
|