Lab3

timer.h

00001 #ifndef __TIMER_H
00002 #define __TIMER_H
00003 
00019 int timer_set_square(unsigned long timer, unsigned long freq);
00020 
00026 int timer_subscribe_int(void );
00027 
00033 int timer_unsubscribe_int();
00034 
00040 void timer_int_handler();
00041 
00049 int timer_get_config(unsigned long timer, unsigned char *st);
00050 
00061 int timer_show_config(unsigned long timer);
00062 
00063 
00064 
00073 int timer_test_square(unsigned long freq);
00074 
00084 int timer_test_int(unsigned long time);
00085 
00094 int timer_test_config(unsigned long timer);
00095 
00096 #endif /* __TIMER_H */