ac66befacef5190fc43d8de74c083341ebf8b668
[bertos.git] / examples / at91sam7x / cfg / cfg_timer.h
1 /**\r
2  * \file\r
3  * <!--\r
4  * This file is part of BeRTOS.\r
5  *\r
6  * Bertos is free software; you can redistribute it and/or modify\r
7  * it under the terms of the GNU General Public License as published by\r
8  * the Free Software Foundation; either version 2 of the License, or\r
9  * (at your option) any later version.\r
10  *\r
11  * This program is distributed in the hope that it will be useful,\r
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14  * GNU General Public License for more details.\r
15  *\r
16  * You should have received a copy of the GNU General Public License\r
17  * along with this program; if not, write to the Free Software\r
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
19  *\r
20  * As a special exception, you may use this file as part of a free software\r
21  * library without restriction.  Specifically, if other files instantiate\r
22  * templates or use macros or inline functions from this file, or you compile\r
23  * this file and link it with other files to produce an executable, this\r
24  * file does not by itself cause the resulting executable to be covered by\r
25  * the GNU General Public License.  This exception does not however\r
26  * invalidate any other reasons why the executable file might be covered by\r
27  * the GNU General Public License.\r
28  *\r
29  * Copyright 2008 Develer S.r.l. (http://www.develer.com/)\r
30  * All Rights Reserved.\r
31  * -->\r
32  *\r
33  * \brief Configuration file for timer module.\r
34  *\r
35  * \version $Id: cfg_timer.h 1969 2008-12-03 16:23:56Z asterix $\r
36  *\r
37  * \author Daniele Basile <asterix@develer.com>\r
38  */\r
39 \r
40 #ifndef CFG_TIMER_H\r
41 #define CFG_TIMER_H\r
42 \r
43 /// Hardware timer selection for drv/timer.c\r
44 #define CONFIG_TIMER TIMER_DEFAULT\r
45 \r
46 /// Debug timer interrupt using a strobe pin.\r
47 #define CONFIG_TIMER_STROBE  0\r
48 \r
49 /// Enable asynchronous timers\r
50 #define CONFIG_TIMER_EVENTS  1\r
51 \r
52 /// Support hi-res timer_usleep()\r
53 #define CONFIG_TIMER_UDELAY  1\r
54 \r
55 #endif /* CFG_TIMER_H */\r