From c34c7f4b78ddf31d422454cb440ed31647d9b964 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 2 May 2011 23:28:00 +0200 Subject: digital/{ai,io}: move timer and chrono to ai --- digital/io/src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'digital/io/src/main.c') 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 #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); } } -- cgit v1.2.3