state_machine
[aversive.git] / projects / firefly_example1 / time_ext_config.h
1 /*  
2  *  Copyright Droids Corporation (2008)
3  * 
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  *
18  */
19
20 /*
21  * Author : Julien LE GUEN - jlg@jleguen.info
22  */
23 #ifndef _TIME_EXT_CONFIG_H_
24 #define _TIME_EXT_CONFIG_H_
25
26
27 /* 
28  * Speed of your external Quartz (in Hertz)
29  * Typically you want it to be a 32.768kHz watch-like quartz
30  */
31 #define TIME_EXT_QUARTZ_FREQ    32768000UL
32
33 /* Quartz period (1/freq) in NANO-SECONDS
34  * The rounding error here, for a 32768kHz quartz,
35  * is of 36450 ns per 24 hours.
36  */
37 #define TIME_EXT_QUARTZ_PERIOD  30518UL
38
39
40 #endif /* _TIME_EXT_CONFIG_H_ */