clock.h File Reference

Definitions relating to the hardware clock and the XINU clock interrupt. More...

#include <queue.h>
#include <stddef.h>

Include dependency graph for clock.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CLKTICKS_PER_SEC   1000
 clock timer resolution

Functions

void clkupdate (ulong)
 Normal case: COMPARE is increased by cycles and stored.
interrupt clkhandler (void)
 Clock handler updates timer registers and system time.

Variables

ulong clkticks
 counts clock interrupts
ulong clktime
 current time in secs since boot
qid_typ sleepq
 queue for sleeping processes


Detailed Description

Definitions relating to the hardware clock and the XINU clock interrupt.

Id
clock.h 1521 2008-08-27 21:51:17Z mschul

Definition in file clock.h.


Function Documentation

interrupt clkhandler ( void   ) 

Clock handler updates timer registers and system time.

Wakes sleeping threads if necessary.

Definition at line 22 of file clkhandler.c.

References clkticks, CLKTICKS_PER_SEC, clktime, clkupdate(), sleepq, and wakeup().

Here is the call graph for this function:

text align globl clkupdatevoid clkupdate ( ulong  cycles  ) 

Normal case: COMPARE is increased by cycles and stored.

Abnormal case: We've lost so much time COUNT > COMPARE+cycles. Solution: Set COMPARE to COUNT+cycles

Referenced by clkhandler().

Here is the caller graph for this function:


Generated on Fri Sep 19 13:40:29 2008 for Embedded XINU by  doxygen 1.5.6