Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/kernel/ptimer.h File Reference

#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...


Detailed Description

Definition in file ptimer.h.


Define Documentation

#define PTIMER_IRQ_LEVEL   6
 

the interrupt level used by the ptimer.

Definition at line 28 of file ptimer.h.

Referenced by KERN_init_ptimer.

#define PTIMER_PITR_VAL   0x0008
 

timer period, 977 uSec */.

Definition at line 32 of file ptimer.h.

Referenced by _settimeofday, KERN_init_ptimer, and settimeofday.

#define PTIMER_VECTOR   64
 

the interrup vector table entry to be used for the ptimer.

Definition at line 25 of file ptimer.h.

Referenced by KERN_init_ptimer.

#define QUANTUM   TICKS_PER_SECOND/128
 

how long is a quantum, every 8 ticks = 7.816msec.

Definition at line 35 of file ptimer.h.

Referenced by KERN_ptint.

#define TICKS_PER_SECOND   1024
 

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.

#define XTAL_FREQ   32768
 

68332 external clock frequency in Hz.

Definition at line 30 of file ptimer.h.


Generated on Thu Feb 20 15:38:54 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002