#include "task.h"
Go to the source code of this file.
Data Structures | |
struct | tservice |
Typedefs | |
typedef struct tservice | TSERVICE |
Functions | |
TSERVICE * | NewTimerService (unsigned t, unsigned m, void *arg, void(*cb)(void *)) |
void | DeleteTimerService (TSERVICE *pTS) |
void | StartTimer (TSERVICE *pTS) |
void | KillTimer (TSERVICE *pTS) |
void | InitTimerServices (void) |
Variables | |
ECB * | TimerServicesSem |
Definition at line 13 of file TimerServices.h.
void DeleteTimerService | ( | TSERVICE * | pTS | ) |
void InitTimerServices | ( | void | ) |
Definition at line 110 of file TimerServices.c.
References ActiveTasks, CreateTask(), Insert(), NewSemaphore(), RegisterTickerPost(), SEMAPHORE_MODE_BLOCKING, and TSname.
void KillTimer | ( | TSERVICE * | pTS | ) |
Definition at line 91 of file TimerServices.c.
References Disable(), Enable(), tservice::next, and tservice::prev.
TSERVICE* NewTimerService | ( | unsigned | t, | |
unsigned | m, | |||
void * | arg, | |||
void(*)(void *) | cb | |||
) |
Definition at line 42 of file TimerServices.c.
References tservice::arg, tservice::callback, tservice::Counter, malloc, tservice::Mode, tservice::next, tservice::prev, and tservice::Time.
void StartTimer | ( | TSERVICE * | pTS | ) |
Definition at line 76 of file TimerServices.c.
References Disable(), Enable(), tservice::next, and tservice::prev.
Definition at line 12 of file TimerServices.c.