00001 00007 /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ 00008 00009 #include <queue.h> 00010 00011 #ifndef _CLOCK_H_ 00012 #define _CLOCK_H_ 00013 00014 #define QUANTUM 10 00015 extern ulong preempt; 00016 00017 extern ulong ctr_mS; 00018 extern ulong clocktime; 00020 extern ulong time_base_freq; 00021 extern ulong time_intr_freq; 00023 extern queue sleepq; 00025 void clockinit(void); 00026 void clock_update(ulong); 00027 interrupt clockintr(void); 00028 00029 #endif /* _CLOCK_H_ */