Main Page | File List | Globals | Related Pages

c/timer.h

Go to the documentation of this file.
00001 /* 
00002  * This file is part of AvrTherm.
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published
00006  * by the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00012  * See the GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017  *
00018  * Copyright (C) 2004 Andreas Schroeder <andreas@a-netz.de>
00019  */
00020 
00035 #ifndef TIMER_H
00036 #define TIMER_H
00037 
00038 #include "globals.h"
00039 
00041 #define TIMER_DIV8      _BV(CS11)
00042 
00043 #define TIMER_DIV64     _BV(CS11) | _BV(CS10)
00044 
00045 #define TIMER_DIV256    _BV(CS12)
00046 
00047 #define TIMER_DIV1024   _BV(CS12) | _BV(CS10)
00048 
00050 #define TIMER_DIVIDER   TIMER_DIV64
00051 
00059 void timer_init(void);
00060 
00072 void timer_delay(u16 delay);
00073 
00074 #endif

Generated on Wed Oct 27 10:57:05 2004 by  doxygen 1.3.9.1