Qt timer emulation.
[bertos.git] / drv / timer_qt.h
1 /*!
2  * \file
3  * <!--
4  * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5  * This file is part of DevLib - See README.devlib for information.
6  * -->
7  *
8  * \version $Id$
9  *
10  * \author Bernardo Innocenti <bernie@develer.com>
11  *
12  * \brief Low-level timer module for AVR (interface).
13  */
14
15 /*#*
16  *#* $Log$
17  *#* Revision 1.1  2005/11/27 03:06:36  bernie
18  *#* Qt timer emulation.
19  *#*
20  *#*/
21 #ifndef DRV_TIMER_QT_H
22 #define DRV_TIMER_QT_H
23
24 // HW dependent timer initialization
25
26 #define DEFINE_TIMER_ISR     void timer_isr(void)
27 #define TIMER_TICKS_PER_MSEC 1
28 #define TIMER_HW_CNT         (1<<31) /* We assume 32bit integers here */
29
30 /// Type of time expressed in ticks of the hardware high-precision timer.
31 typedef unsigned int hptime_t;
32
33 /// Frequency of the hardware high-precision timer.
34 #define TIMER_HW_HPTICKS_PER_SEC  1000
35
36 /// Not needed, IRQ timer flag cleared automatically.
37 #define timer_hw_irq() do {} while (0)
38
39
40 #endif /* DRV_TIMER_QT_H */