4 typedef int (clock_func_t) (void);
7 void clean_clock(void);
9 int register_clock_hander(clock_func_t *handler, int devide);
10 int unregister_clock_hander(clock_func_t *handler);
12 int start_clock(void);
13 int pause_cpu_clock(void);
14 int start_cpu_clock(void);
16 /*int register_timer(unsigned long int_sec, unsigned long int_nanosec,
17 __sighandler_t func, int signum, timer_t *timerid);*/
23 #define BASE_CLOCK 21477270L
25 #define CPU_DEVIDER 12
32 #define CPU_CLOCK_FREQ (BASE_CLOCK / CPU_DEVIDER)
33 #define PPU_CLOCK_FREQ (BASE_CLOCK / PPU_DEVIDER)
35 #define BASE_CLOCK_NSEC (1000000000L / BASE_CLOCK)
38 #endif /*__clock_h__*/