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

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

#include <ptimer.h>
#include <cubeos.h>
#include <sys_var.h>
#include <io_duart.h>
#include <schedule.h>
#include <sys/time.h>

Include dependency graph for ptimer.c:

Go to the source code of this file.

Functions

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

int KERN_ptint (void)
 periodic timer interrupt routine. More...

void KERN_init_ptimer (void)
 initializes the periodic timer of the '332 SIM. More...

unsigned long _getseconds ()
 returns the second counter. More...

int _gettimeofday (struct timeval *tp, struct timezone *ignore)
 fills a struct timeval with the current internal time. More...

int gettimeofday (struct timeval *tp, struct timezone *ignore)
unsigned long _settimeofday (unsigned long val)
 sets the internal time from an integer. More...

int settimeofday (const struct timeval *tp, const struct timezone *ignore)

Variables

void(* _KERN_call_dispatcher )()


Detailed Description

Definition in file ptimer.c.


Function Documentation

int gettimeofday struct timeval *    tp,
struct timezone *    ignore
 

Definition at line 150 of file ptimer.c.

References TICKS_PER_SECOND.

int settimeofday const struct timeval *    tp,
const struct timezone *    ignore
 

Definition at line 173 of file ptimer.c.

References PTIMER_PITR_VAL, SIM_PITR, and writeshort.


Variable Documentation

void(* _KERN_call_dispatcher)()
 

Definition at line 28 of file ptimer.c.

Referenced by KERN_installdispatcher, KERN_ptint, and KERN_removedispatcher.


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