nico@215: nico@215:
nico@215:#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <native/task.h>
#include <native/timer.h>
#include <native/mutex.h>
#include <native/alarm.h>
#include "applicfg.h"
#include "can_driver.h"
#include "timer.h"
nico@215: Include dependency graph for timers_xeno.c:
nico@215: Go to the source code of this file.
Defines | |
#define | TIMERLOOP_TASK_CREATED 1 |
Functions | |
void | cleanup_all (void) |
void | StopTimerLoop (void) |
void | EnterMutex (void) |
void | LeaveMutex (void) |
void | timerloop_task_proc (void *arg) |
void | StartTimerLoop (TimerCallback_t init_callback) |
void | CreateReceiveTask (CAN_PORT fd0, TASK_HANDLE *ReceiveLoop_task, void *ReceiveLoop_task_proc) |
void | WaitReceiveTaskEnd (TASK_HANDLE *Thread) |
void | setTimer (TIMEVAL value) |
TIMEVAL | getElapsedTime (void) |
Variables | |
RT_MUTEX | CanFestival_mutex |
RT_TASK | timerloop_task |
RTIME | last_time_read |
RTIME | last_occured_alarm |
RTIME | last_alarm_set |
char | stop_timer = 0 |
#define TIMERLOOP_TASK_CREATED 1 | nico@215:
nico@215: nico@215:
nico@215: Definition at line 14 of file timers_xeno.c. nico@215:
nico@215:
void cleanup_all | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 24 of file timers_xeno.c. nico@215:
nico@215: References timerloop_task. nico@215:
nico@215: Referenced by StartTimerLoop(). nico@215:
void CreateReceiveTask | nico@215:( | etisserant@240:CAN_PORT | nico@215:fd0, | nico@215:|
nico@215: | nico@215: | TASK_HANDLE * | nico@215:ReceiveLoop_task, | nico@215:|
nico@215: | nico@215: | void * | nico@215:ReceiveLoop_task_proc | nico@215: |
nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 93 of file timers_xeno.c. nico@215:
void EnterMutex | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 35 of file timers_xeno.c. nico@215:
nico@215: References CanFestival_mutex. nico@215:
TIMEVAL getElapsedTime | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 128 of file timers_xeno.c. nico@215:
nico@215: References last_occured_alarm, and last_time_read. nico@215:
void LeaveMutex | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 40 of file timers_xeno.c. nico@215:
nico@215: References CanFestival_mutex. nico@215:
void setTimer | nico@215:( | nico@215:TIMEVAL | nico@215:value | nico@215:) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 122 of file timers_xeno.c. nico@215:
nico@215: References last_alarm_set, last_time_read, timerloop_task, and TIMEVAL_MAX. nico@215:
void StartTimerLoop | nico@215:( | etisserant@240:TimerCallback_t | nico@215:init_callback | nico@215:) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 60 of file timers_xeno.c. nico@215:
nico@215: References cleanup_all(), getElapsedTime(), last_alarm_set, last_occured_alarm, last_time_read, SetAlarm(), stop_timer, timerloop_task, and timerloop_task_proc(). nico@215:
etisserant@240: Here is the call graph for this function:
void StopTimerLoop | nico@215:( | nico@215:void | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 28 of file timers_xeno.c. nico@215:
nico@215: References stop_timer, and timerloop_task. nico@215:
void timerloop_task_proc | nico@215:( | nico@215:void * | nico@215:arg | nico@215:) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 45 of file timers_xeno.c. nico@215:
nico@215: References EnterMutex(), last_alarm_set, last_occured_alarm, LeaveMutex(), stop_timer, and TimeDispatch(). nico@215:
nico@215: Referenced by StartTimerLoop(). nico@215:
etisserant@240: Here is the call graph for this function:
void WaitReceiveTaskEnd | nico@215:( | nico@215:TASK_HANDLE * | nico@215:Thread | nico@215:) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 117 of file timers_xeno.c. nico@215:
nico@215:
RT_MUTEX CanFestival_mutex | nico@215:
nico@215: nico@215:
nico@215: Definition at line 16 of file timers_xeno.c. nico@215:
etisserant@240: etisserant@240:
RTIME last_alarm_set | nico@215:
nico@215: nico@215:
nico@215: Definition at line 20 of file timers_xeno.c. nico@215:
nico@215: Referenced by setTimer(), StartTimerLoop(), and timerloop_task_proc(). nico@215:
etisserant@240: etisserant@240:
RTIME last_occured_alarm | nico@215:
nico@215: nico@215:
nico@215: Definition at line 19 of file timers_xeno.c. nico@215:
nico@215: Referenced by getElapsedTime(), StartTimerLoop(), and timerloop_task_proc(). nico@215:
etisserant@240: etisserant@240:
RTIME last_time_read | nico@215:
nico@215: nico@215:
nico@215: Definition at line 18 of file timers_xeno.c. nico@215:
nico@215: Referenced by getElapsedTime(), setTimer(), and StartTimerLoop(). nico@215:
etisserant@240: etisserant@240:
char stop_timer = 0 | nico@215:
nico@215: nico@215:
nico@215: Definition at line 22 of file timers_xeno.c. nico@215:
nico@215: Referenced by StartTimerLoop(), StopTimerLoop(), and timerloop_task_proc(). nico@215:
etisserant@240: etisserant@240:
RT_TASK timerloop_task | nico@215:
nico@215: nico@215:
nico@215: Definition at line 17 of file timers_xeno.c. nico@215:
nico@215: Referenced by cleanup_all(), setTimer(), StartTimerLoop(), and StopTimerLoop(). nico@215:
etisserant@240: