/home/epimerde/documents/tc11/CanFestival-3/src/timer.c File Reference

#include <applicfg.h>
#include "timer.h"

Go to the source code of this file.

Defines

#define min_val(a, b)   ((a<b)?a:b)

Functions

TIMER_HANDLE SetAlarm (CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)
TIMER_HANDLE DelAlarm (TIMER_HANDLE handle)
void TimeDispatch ()

Variables

s_timer_entry timers [MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}
TIMEVAL total_sleep_time = TIMEVAL_MAX
TIMER_HANDLE last_timer_raw = -1


Define Documentation

#define min_val ( a,
 )     ((a<b)?a:b)

Definition at line 35 of file timer.c.


Function Documentation

TIMER_HANDLE DelAlarm ( TIMER_HANDLE  handle  ) 

Definition at line 87 of file timer.c.

References last_timer_raw, and timers.

TIMER_HANDLE SetAlarm ( CO_Data *  d,
UNS32  id,
TimerCallback_t  callback,
TIMEVAL  value,
TIMEVAL  period 
)

Definition at line 38 of file timer.c.

References last_timer_raw, and timers.

void TimeDispatch (  ) 

Definition at line 104 of file timer.c.

References last_timer_raw, min_val, timers, and total_sleep_time.


Variable Documentation

TIMER_HANDLE last_timer_raw = -1

Definition at line 33 of file timer.c.

s_timer_entry timers[MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}

Definition at line 30 of file timer.c.

TIMEVAL total_sleep_time = TIMEVAL_MAX

Definition at line 32 of file timer.c.


Generated on Mon Jun 4 17:09:27 2007 for CanFestival by  doxygen 1.5.1