#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 |
TIMER_HANDLE DelAlarm | ( | TIMER_HANDLE | handle | ) |
TIMER_HANDLE SetAlarm | ( | CO_Data * | d, | |
UNS32 | id, | |||
TimerCallback_t | callback, | |||
TIMEVAL | value, | |||
TIMEVAL | period | |||
) |
void TimeDispatch | ( | ) |
Definition at line 104 of file timer.c.
References last_timer_raw, min_val, timers, and total_sleep_time.
TIMER_HANDLE last_timer_raw = -1 |
s_timer_entry timers[MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},} |
TIMEVAL total_sleep_time = TIMEVAL_MAX |