Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1151 → Rev 1152

/demos/trunk/advtimer/readme.txt
0,0 → 1,39
--------------------------------------
Advanced Timer Demo
 
by
 
Giacomo Guidi <giacomo@gandalf.sssup.it>
 
Last update 23/04/2003
--------------------------------------
 
This demo shows the new timer management
code of S.Ha.R.K.
 
--------------------------------------
 
The demo is composed by:
 
MAKEFILE The makefile used to compile the application
README.TXT This file
INITFILE.C The init file
ADVTIMER.C The Advanced Timer Demo
 
--------------------------------------
 
To change the timer mode, you have to
modify two global variable in:
 
oslib/kl/advtimer.c
 
use_tsc (BOOL)
use_cmos (BOOL)
 
and to recompile.
 
The default setting is
 
use_tsc = 1;
use_cmos = 0;
 
/demos/trunk/advtimer/advtimer.c
6,8 → 6,7
* Paolo Gai <pj@gandalf.sssup.it>
*
* Authors :
* Paolo Gai <pj@gandalf.sssup.it>
* (see the web pages for full authors list)
* Giacomo Guidi <giacomo@gandalf.sssup.it>
*
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
*
34,11 → 33,14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
 
/*
* Advanced Timer Demo
*
*/
 
#include "kernel/kern.h"
#include "ll/i386/cons.h"
 
#include "ll/sys/ll/time.h"
 
#include "drivers/keyb.h"
 
#define UPDATE_PERIOD 10000