From a2708c091beb3331967dff2af9a9232744427de4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 9 Jan 2012 19:37:58 +0000 Subject: Updated all halconf.h files. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3777 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/tm.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'os/hal/src') diff --git a/os/hal/src/tm.c b/os/hal/src/tm.c index 4d1eb57b8..060a35b66 100644 --- a/os/hal/src/tm.c +++ b/os/hal/src/tm.c @@ -20,7 +20,7 @@ /** * @file tm.c - * @brief Time Measurement unit code. + * @brief Time Measurement driver code. * * @addtogroup TM * @{ @@ -29,13 +29,28 @@ #include "ch.h" #include "hal.h" -#if HAL_USE_TM +#if HAL_USE_TM || defined(__DOXYGEN__) + +/*===========================================================================*/ +/* Driver local definitions. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver exported variables. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver local variables. */ +/*===========================================================================*/ /** * @brief Subsystem calibration value. */ static halrtcnt_t measurement_offset; +/*===========================================================================*/ +/* Driver local functions. */ +/*===========================================================================*/ /** * @brief Starts a measurement. @@ -66,6 +81,14 @@ static void tm_stop(TimeMeasurement *tmp) { tmp->best = tmp->last; } +/*===========================================================================*/ +/* Driver interrupt handlers. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver exported functions. */ +/*===========================================================================*/ + /** * @brief Initializes the Time Measurement unit. * -- cgit v1.2.3