This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | timer_struct |
Typedefs | |
| typedef timer_struct | timer_struct_t |
Functions | |
| int | delay_uS (int) |
| void * | periodic_thread (void *) |
|
|
Referenced by periodic_thread(), and scheduler(). |
|
|
Definition at line 65 of file timer.c. References jitter(). Referenced by main(), and periodic_thread(). 00065 {
00066 struct timeval to;
00067 long time_error;
00068 to.tv_sec = 0;
00069 to.tv_usec = uS;
00070 select(0,NULL,NULL,NULL,&to);
00071 time_error=jitter((long)uS);
00072 if ((time_error>JITTER_MAX)||(time_error<-JITTER_MAX)) {
00073 printf("%ld\n",time_error);
00074 }
00075 return (0);
00076 }
|
Here is the call graph for this function:

|
|
Definition at line 78 of file timer.c. References delay_uS(), timer_struct::timeout, timer_struct::timer_period, and timer_struct_t. Referenced by scheduler(). 00078 {
00079 int status;
00080 timer_struct_t *tp = (timer_struct_t *) arg;
00081
00082 while (1) {
00083 delay_uS(tp->timer_period);
00084 tp->timeout=1;
00085 }
00086 status = pthread_detach(pthread_self());
00087 return NULL;
00088 }
|
Here is the call graph for this function:

1.3.9.1