#include "vxWorks.h"#include "stdioLib.h"#include "gtimer.hh"Include dependency graph for gtimer.cc:

Go to the source code of this file.
Defines | |
| #define | MAX_GLOBAL_TIME 0x7FFFFFFF |
Typedefs | |
| typedef unsigned short * | SCOPE_PTR |
| typedef int * | TIMER_BD_PTR |
Functions | |
| int | rd_Global_Clock (TIMER_BD_PTR) |
| int | global_timer_config (unsigned long timer_address) |
| int | get_Global_time () |
Variables | |
| SCOPE_PTR | p0 = NULL |
| SCOPE_PTR | p1 = NULL |
| SCOPE_PTR | p2 = NULL |
| SCOPE_PTR | p3 = NULL |
| SCOPE_PTR | p4 = NULL |
| SCOPE_PTR | p5 = NULL |
| SCOPE_PTR | p6 = NULL |
| SCOPE_PTR | p7 = NULL |
| TIMER_BD_PTR | hkv3d_loc = NULL |
| short | scope_prev_value [8] = { 0, 0, 0, 0, 0, 0, 0, 0 } |
| int | global_timer_available = 0 |
|
|
|
|
|
|
|
|
|
|
|
Referenced by TIMER_BD_PTR(), and get_Global_time().
|
|
|
Definition at line 70 of file gtimer.cc. 00071 {
00072 unsigned long base_address;
00073 global_timer_available = 0;
00074 if (timer_address <= 0x10)
00075 {
00076 return (0);
00077 }
00078 base_address = timer_address - 0x10;
00079 p0 = (SCOPE_PTR) (base_address + 0x0);
00080 p1 = (SCOPE_PTR) (base_address + 0x2);
00081 p2 = (SCOPE_PTR) (base_address + 0x4);
00082 p3 = (SCOPE_PTR) (base_address + 0x6);
00083 p4 = (SCOPE_PTR) (base_address + 0x8);
00084 p5 = (SCOPE_PTR) (base_address + 0xA);
00085 p6 = (SCOPE_PTR) (base_address + 0xC);
00086 p7 = (SCOPE_PTR) (base_address + 0xE);
00087 hkv3d_loc = (TIMER_BD_PTR) (timer_address);
00088 global_timer_available = 1;
00089 return (1);
00090 }
|
|
|
Definition at line 93 of file gtimer.cc. Referenced by etime().
00094 {
00095
00096 int current_glob_time;
00097
00098 current_glob_time = rd_Global_Clock (hkv3d_loc);
00099 return (current_glob_time);
00100 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001