4 * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5 * This file is part of DevLib - See README.devlib for information.
10 * \author Bernardo Innocenti <bernie@develer.com>
12 * \brief Low-level timer module for POSIX systems (interface).
17 *#* Revision 1.3 2006/02/23 11:03:33 bernie
18 *#* Documentation fix.
20 *#* Revision 1.2 2006/02/21 21:28:02 bernie
21 *#* New time handling based on TIMER_TICKS_PER_SEC to support slow timers with ticks longer than 1ms.
23 *#* Revision 1.1 2005/11/27 03:58:18 bernie
24 *#* Add POSIX timer emulator.
26 *#* Revision 1.1 2005/11/27 03:06:36 bernie
27 *#* Qt timer emulation.
30 #ifndef DRV_TIMER_POSIX_H
31 #define DRV_TIMER_POSIX_H
33 // HW dependent timer initialization
35 #define DEFINE_TIMER_ISR void timer_isr(UNUSED_ARG(int, arg))
37 /** Most Linux kernels can't do better than this (CONFIG_HZ=250). */
38 #define TIMER_TICKS_PER_SEC 250
40 #define TIMER_HW_CNT (1<<31) /* We assume 32bit integers here */
42 #include <os/hptime.h>
44 /// Frequency of the hardware high-precision timer.
45 #define TIMER_HW_HPTICKS_PER_SEC HPTIME_TICKS_PER_SECOND
48 #define timer_hw_irq() do {} while (0)
51 #endif /* DRV_TIMER_QT_H */