From: Erik M. <er...@us...> - 2001-07-20 18:39:06
|
Update of /cvsroot/blob/blob/include In directory usw-pr-cvs1:/tmp/cvs-serv23505/include Modified Files: Tag: blob_1_0_9_hack time.h Log Message: - Use OS counter for timeouts instead of Real Time Clock. Not completely clean yet, because we're not yet testing for overflows, but at least it fixes the 'doesn't time out after reboot' problem. - Comment out the uuencode uploading code. - Change \r into \n and change SerialOutputByte() to reflect the changes. It now looks more like real UNIX source :) Index: time.h =================================================================== RCS file: /cvsroot/blob/blob/include/time.h,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -r1.1.1.1 -r1.1.1.1.2.1 --- time.h 2001/06/27 19:47:42 1.1.1.1 +++ time.h 2001/07/20 18:39:03 1.1.1.1.2.1 @@ -42,16 +42,19 @@ -#define TICKS_PER_SECOND 32768 +#define TICKS_PER_SECOND 3686400 - /* initialise timer */ void TimerInit(void); -/* returns the time in 1/32768 seconds */ +/* returns the time in 1/TICKS_PER_SECOND seconds */ u32 TimerGetTime(void); + +int TimerDetectOverflow(void); + +void TimerClearOverflow(void); |