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