From fb3cfa5a0ac1acb58c2067cd1aad0339b534f982 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 27 Apr 2009 18:23:45 +0200 Subject: * digital/io/src (fixes #66): - add a system to enable or disable the chrono module, - call chrono update function every main loop. --- digital/io/src/chrono.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'digital/io/src/chrono.h') 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 @@ -49,6 +49,26 @@ chrono_init (void); 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 -- cgit v1.2.3