*/
Got something to write about? Check out our Article Builder.
*/

View SRC\TIMER.H

BOBOLI THE MIGHTY KNIGHT Networked Medieval Conflict

Submitted By: Unknown
Rating: starstarstar (Rate It)


/* TIMER functions.
   Really a skeleton.  The timer procedure does nothing but set a flag that
   one tick of the selected rate has passed, and keep track of how many such
   ticks have occurred.  If you need to do more than that in your timer
   function, then copy this file, and modify what the timer function does.
*/

#include "mgraph.h"

#ifndef _timer_gogo
#define _timer_gogo

#define _Timer_intr 8
#define _PIT_freq   0x1234DD

extern byte timepassed,timetick;
extern unsigned short clock_ticks;
extern unsigned long counter;

void timer_init(byte Hz);
void timer_exit(void);
void qdelay(unsigned short time);
char *get_cmostime(void);

#endif

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.