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

VxWorks

开发平台:

C/C++

  1. /* s62421.h - Seiko 62421 real time clock */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01e,22sep92,rrr  added support for c++
  7. 01d,26may92,rrr  the tree shuffle
  8. 01c,04oct91,rrr  passed through the ansification filter
  9.   -changed copyright notice
  10. 01b,05oct90,shl  added copyright notice.
  11.                  made #endif ANSI style.
  12. 01a,28nov88,jcf  written.
  13. */
  14. /*
  15. This file contains constants for the Seiko 62421.
  16. */
  17. #ifndef __INCs62421h
  18. #define __INCs62421h
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. /* RTC 62421 register definition */
  23. #define RTC_1_SEC(base)  ((char *) ((base) + 0x0)) /* 1 sec. digit */
  24. #define RTC_10_SEC(base) ((char *) ((base) + 0x1)) /* 10 sec. digit */
  25. #define RTC_1_MIN(base)  ((char *) ((base) + 0x2)) /* 1 min. digit */
  26. #define RTC_10_MIN(base) ((char *) ((base) + 0x3)) /* 10 min. digit */
  27. #define RTC_1_HR(base)  ((char *) ((base) + 0x4)) /* 1 hour digit */
  28. #define RTC_10_HR(base)  ((char *) ((base) + 0x5))  /* pm/am+10 hr digit */
  29. #define RTC_1_DAY(base)  ((char *) ((base) + 0x6))  /* 1 day digit */
  30. #define RTC_10_DAY(base) ((char *) ((base) + 0x7)) /* 10 day digit */
  31. #define RTC_1_MON(base)  ((char *) ((base) + 0x8)) /* 1 month digit */
  32. #define RTC_10_MON(base) ((char *) ((base) + 0x9)) /* 10 month digit */
  33. #define RTC_1_YR(base)  ((char *) ((base) + 0xa)) /* 1 year digit */
  34. #define RTC_10_YR(base)  ((char *) ((base) + 0xb)) /* 10 year digit */
  35. #define RTC_WEEK(base)  ((char *) ((base) + 0xc)) /* week */
  36. #define RTC_CTR_D(base)  ((char *) ((base) + 0xd)) /* control d */
  37. #define RTC_CTR_E(base)  ((char *) ((base) + 0xe)) /* control e */
  38. #define RTC_CTR_F(base)  ((char *) ((base) + 0xf)) /* control f */
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif /* __INCs62421h */