From 96ed13f3d9798210e68aa7ddd186e8f6f6f2e3c7 Mon Sep 17 00:00:00 2001 From: Shamus Hammons Date: Wed, 29 Dec 2004 07:58:04 +0000 Subject: [PATCH] Support for new timer based execution --- src/clock.cpp | 18 ++++++++++-------- src/include/clock.h | 17 +++++++++++++++-- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/src/clock.cpp b/src/clock.cpp index 8ca3bc1..af6f543 100644 --- a/src/clock.cpp +++ b/src/clock.cpp @@ -1,21 +1,23 @@ // -// Clock handler +// System time handler // -// by cal2 -// GCC/SDL port by Niels Wagenaar (Linux/WIN32) and Caz (BeOS) -// Cleanups by James L. Hammons +// by James L. Hammons // #include "jaguar.h" +#include "clock.h" -void clock_init(void) + + + +/*void clock_reset(void) { - clock_reset(); } -void clock_reset(void) +void clock_init(void) { + clock_reset(); } void clock_done(void) @@ -38,4 +40,4 @@ uint8 clock_byte_read(uint32 offset) uint16 clock_word_read(uint32 offset) { return 0xFFFF; -} +}*/ diff --git a/src/include/clock.h b/src/include/clock.h index e4b686f..492f0b4 100644 --- a/src/include/clock.h +++ b/src/include/clock.h @@ -1,14 +1,27 @@ +// +// CLOCK.H: System timing support functionality +// +// by James L. Hammons +// + #ifndef __CLOCK_H__ #define __CLOCK_H__ #include "types.h" -void clock_init(void); +struct Event +{ + double eventTime; + void (* eventCallback)(void); +}; + + +/*void clock_init(void); void clock_reset(void); void clock_done(void); void clock_byte_write(uint32, uint8); void clock_word_write(uint32, uint16); uint8 clock_byte_read(uint32); -uint16 clock_word_read(uint32); +uint16 clock_word_read(uint32);//*/ #endif -- 2.37.2