diff options
Diffstat (limited to 'arm9/source/devices/clock.h')
-rw-r--r-- | arm9/source/devices/clock.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/arm9/source/devices/clock.h b/arm9/source/devices/clock.h index 892479f..04c4d5d 100644 --- a/arm9/source/devices/clock.h +++ b/arm9/source/devices/clock.h @@ -1,8 +1,8 @@ +#include <time.h> + #ifndef CLOCK_H_ #define CLOCK_H_ - #include <time.h> - typedef struct { u32 end; // real end time u16 read, write; // read write caches @@ -27,20 +27,9 @@ bool check_timers(ClockDevice *clk); - u8 get_timer1_high(ClockDevice *clock); - u8 get_timer1_low( ClockDevice *clock); - u8 get_timer2_high(ClockDevice *clock); - u8 get_timer2_low( ClockDevice *clock); - u8 get_timer3_high(ClockDevice *clock); - u8 get_timer3_low( ClockDevice *clock); - u8 get_timer4_high(ClockDevice *clock); - u8 get_timer4_low( ClockDevice *clock); - void set_timer1_high(ClockDevice *clock, u8 high); - void set_timer1_low( ClockDevice *clock, u8 low); - void set_timer2_high(ClockDevice *clock, u8 high); - void set_timer2_low( ClockDevice *clock, u8 low); - void set_timer3_high(ClockDevice *clock, u8 high); - void set_timer3_low( ClockDevice *clock, u8 low); - void set_timer4_high(ClockDevice *clock, u8 high); - void set_timer4_low( ClockDevice *clock, u8 low); + u8 get_timer_high(ClockTimer *t); + u8 get_timer_low( ClockTimer *t); + void set_timer_high(ClockTimer *t, u8 high); + void set_timer_low( ClockTimer *t, u8 low); + #endif |