timerDev.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* timerDev.h - Generic Timer header */
  2. /* Copyright 1984-1996 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01d,06aug96,dat  merged in timestamp support
  7. 01c,22sep92,rrr  added support for c++
  8. 01b,07jul92,ccc  change name to timerDev.h
  9. 01a,22jun92,ccc  created.
  10. */
  11. /*
  12. DESCRIPTION
  13. This file contains header information for generic timer routines.
  14. */
  15. #ifndef __INCtimerDevh
  16. #define __INCtimerDevh
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /* function declarations */
  21. #ifndef _ASMLANGUAGE
  22. #if defined(__STDC__) || defined(__cplusplus)
  23. IMPORT STATUS sysClkConnect (FUNCPTR routine, int arg);
  24. IMPORT void sysClkDisable (void);
  25. IMPORT void sysClkEnable (void);
  26. IMPORT int sysClkRateGet (void);
  27. IMPORT STATUS sysClkRateSet (int ticksPerSecond);
  28. IMPORT STATUS sysAuxClkConnect (FUNCPTR routine, int arg);
  29. IMPORT void sysAuxClkDisable (void);
  30. IMPORT void sysAuxClkEnable (void);
  31. IMPORT int sysAuxClkRateGet (void);
  32. IMPORT STATUS sysAuxClkRateSet (int ticksPerSecond);
  33. IMPORT STATUS sysTimestampConnect (FUNCPTR routine, int arg);
  34. IMPORT STATUS sysTimestampEnable (void);
  35. IMPORT STATUS sysTimestampDisable (void);
  36. IMPORT UINT32 sysTimestampFreq (void);
  37. IMPORT UINT32 sysTimestampPeriod (void);
  38. IMPORT UINT32 sysTimestamp (void);
  39. IMPORT UINT32 sysTimestampLock (void);
  40. #else /* __STDC__ */
  41. IMPORT STATUS sysClkConnect ();
  42. IMPORT void sysClkDisable ();
  43. IMPORT void sysClkEnable ();
  44. IMPORT int sysClkRateGet ();
  45. IMPORT STATUS sysClkRateSet ();
  46. IMPORT STATUS sysAuxClkConnect ();
  47. IMPORT void sysAuxClkDisable ();
  48. IMPORT void sysAuxClkEnable ();
  49. IMPORT int sysAuxClkRateGet ();
  50. IMPORT STATUS sysAuxClkRateSet ();
  51. IMPORT STATUS sysTimestampConnect ();
  52. IMPORT STATUS sysTimestampEnable ();
  53. IMPORT STATUS sysTimestampDisable ();
  54. IMPORT UINT32 sysTimestampFreq ();
  55. IMPORT UINT32 sysTimestampPeriod ();
  56. IMPORT UINT32 sysTimestamp ();
  57. IMPORT UINT32 sysTimestampLock ();
  58. #endif /* __STDC__ */
  59. #endif /* _ASMLANGUAGE */
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif /* __INCtimerDevh */