summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/chrono.h
diff options
context:
space:
mode:
authorJérémy Dufour2009-04-27 18:23:45 +0200
committerJérémy Dufour2009-04-27 18:23:45 +0200
commitfb3cfa5a0ac1acb58c2067cd1aad0339b534f982 (patch)
tree169d6611cce0d04d3b3d6591c8a180c238af6fa4 /digital/io/src/chrono.h
parent4f77a9904f90a3056c2ec89f497d0ffafd3f345e (diff)
* digital/io/src (fixes #66):
- add a system to enable or disable the chrono module, - call chrono update function every main loop.
Diffstat (limited to 'digital/io/src/chrono.h')
-rw-r--r--digital/io/src/chrono.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/digital/io/src/chrono.h b/digital/io/src/chrono.h
index 5e1a378c..e2b09ac8 100644
--- a/digital/io/src/chrono.h
+++ b/digital/io/src/chrono.h
@@ -50,6 +50,26 @@ void
chrono_update (void);
/**
+ * Enable chrono module.
+ * You should call this function when a match start.
+ */
+void
+chrono_enable (void);
+
+/**
+ * Disable chrono module.
+ */
+void
+chrono_disable (void);
+
+/**
+ * Is chrono module enabled?
+ * @return 0 if not enabled, other values otherwise.
+ */
+uint8_t
+chrono_enabled (void);
+
+/**
* Match over?
* @return
* - 0 if the match is not finished yet.