summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/main.c
diff options
context:
space:
mode:
authorNicolas Schodet2011-05-02 23:28:00 +0200
committerNicolas Schodet2011-05-03 01:36:05 +0200
commitc34c7f4b78ddf31d422454cb440ed31647d9b964 (patch)
tree1a80e4384226fc4e07a16a1ad21cb3c5c88a9b95 /digital/io/src/main.c
parent092057218111adb25119f0099c5ad951a5b10d69 (diff)
digital/{ai,io}: move timer and chrono to ai
Diffstat (limited to 'digital/io/src/main.c')
-rw-r--r--digital/io/src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/digital/io/src/main.c b/digital/io/src/main.c
index b29d1fea..be04366f 100644
--- a/digital/io/src/main.c
+++ b/digital/io/src/main.c
@@ -39,7 +39,7 @@
#include <string.h>
#endif /* HOST */
-#include "main_timer.h"
+#include "timer.h"
#include "simu.host.h"
#include "asserv.h"
@@ -261,7 +261,7 @@ main_init (void)
/* Enable interrupts */
sei ();
/* Main timer */
- main_timer_init ();
+ timer_init ();
/* Load parameters */
eeprom_load_param ();
/* Dirty fix */
@@ -305,14 +305,14 @@ main_loop (void)
{
/* Wait for an overflow of the main timer (4.444ms) */
{
- uint8_t timer_count = main_timer_wait ();
+ uint8_t timer_count = timer_wait ();
if (main_stats_timer_)
proto_send1b('M', timer_count);
if (timer_count == 1)
{
/* Main timer has reached overflow earlier!
We are late and this is really bad. */
- TRACE (TRACE_MAIN_TIMER__LATE);
+ TRACE (TRACE_TIMER__LATE);
}
}