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

VxWorks

开发平台:

C/C++

  1. /* CIOTimer.h - header for Zilog CIO timer driver */
  2. /* Copyright 1984-2002, Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,26apr02,dat  Adding cplusplus protection, SPR 75017
  7. 01a,18feb94,gah Created to allow the use of (prototyped) functions outside of
  8. sysLib.c
  9. */
  10. #ifndef __INCCIOTimerh
  11. #define __INCCIOTimerh
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /* Function prototypes: */
  16. void    sysCioInt (void);
  17. void    sysClkInt (void);
  18. STATUS  sysClkConnect (
  19. FUNCPTR routine,    /* routine called at each system clock interrupt */
  20.     int arg         /* argument with which to call routine */
  21. );
  22. void    sysClkDisable (void);
  23. void    sysClkEnable (void);
  24. int     sysClkRateGet (void);   /* Now returns int, not UINT32. gah, 2/2/94 */
  25. STATUS  sysClkRateSet (
  26. int ticksPerSecond  /* number of clock interrupts per second */
  27. );
  28. void    sysAuxClkInt (void);
  29. STATUS  sysAuxClkConnect (
  30.     FUNCPTR routine,    /* routine called at each aux. clock interrupt */
  31.     int     arg         /* argument with which to call routine         */
  32. );
  33. void    sysAuxClkDisable (void);
  34. void    sysAuxClkEnable (void);
  35. int     sysAuxClkRateGet (void); /* Now returns int, not UINT32. gah, 2/2/94 */
  36. STATUS  sysAuxClkRateSet (
  37. int ticksPerSecond  /* number of clock interrupts per second */
  38. );
  39. void    sysHwInit2 (void);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif /* __INCCIOTimerh */