aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src')
-rw-r--r--os/hal/src/tm.c27
1 files changed, 25 insertions, 2 deletions
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.
*