hardware/timer1.h

gehe zur Dokumentation dieser Datei
00001 
00002 /***************************************************************************
00003  *            timer.h
00004  *
00005  *  Sun Jul 16 12:52:44 2006
00006  *  Copyright  2006  User
00007  *  Email
00008  ****************************************************************************/
00010 /*
00011  *  This program is free software; you can redistribute it and/or modify
00012  *  it under the terms of the GNU General Public License as published by
00013  *  the Free Software Foundation; either version 2 of the License, or
00014  *  (at your option) any later version.
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU General Public License for more details.
00020  *
00021  *  You should have received a copy of the GNU General Public License
00022  *  along with this program; if not, write to the Free Software
00023  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00024  */
00026 #ifndef _TIMER1_H
00027         #define _TIMER1_H
00028         
00029         #define SECDIV 100
00030 
00031         typedef void ( * TIMER1_CALLBACK_FUNC ) ( void );
00032         
00033         #define MAX_TIMER1_CALLBACKS            4
00034         #define MAX_TIMER1_COUNTDOWNTIMER       4
00035                 
00036         void timer1_init(void);
00037 
00038         #define FALSE                           0
00039         #define TRUE                            (!FALSE)
00040         #define NULL                            0
00041         #define COUNDOWNTIMER_UNUSE     65535
00042 
00043         unsigned char timer1_sec_RegisterCallbackFunction( TIMER1_CALLBACK_FUNC pFunc );
00044         unsigned char timer1_sec_RemoveCallbackFunction( TIMER1_CALLBACK_FUNC pFunc );
00045         unsigned char timer1_msec_RegisterCallbackFunction( TIMER1_CALLBACK_FUNC pFunc );
00046         unsigned char timer1_msec_RemoveCallbackFunction( TIMER1_CALLBACK_FUNC pFunc );
00047 
00048         unsigned char timer1_msec_RegisterCoundowntimer( void );
00049         void timer1_msec_SetCountdownTimer( unsigned char timer, unsigned int value );
00050         unsigned int timer1_msec_GetCountdownTimer( unsigned char timer );
00051         void timer1_msec_ReleaseCountdownTimer( unsigned char timer );
00052 
00053         extern unsigned char ms;
00054         extern unsigned char ss;
00055         extern unsigned char mm;
00056         extern unsigned char hh;
00057 
00058 #endif /* _TIMER_H */
00059 

Erzeugt am Fri Sep 8 13:37:36 2006 für MikroEthernetBoard von  doxygen 1.4.6