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

VxWorks

开发平台:

C/C++

  1. /* m8260Clock - Motorola MPC8260 Clock header file */
  2. /* Copyright 1984-1999 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,12sep99,ms_  created from m8260Cpm.h, 01d.
  7. */
  8. /*
  9.  * This file contains constants for the clock block in the Motorola 
  10.  * MPC8260 PowerQUICC II integrated Communications Processor
  11.  */
  12. #ifndef __INCm8260Clockh
  13. #define __INCm8260Clockh
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.     
  18. #ifndef M8260ABBREVIATIONS
  19. #define M8260ABBREVIATIONS
  20. #ifdef  _ASMLANGUAGE
  21. #define CAST(x)
  22. #else /* _ASMLANGUAGE */
  23. typedef volatile UCHAR VCHAR;   /* shorthand for volatile UCHAR */
  24. typedef volatile INT32 VINT32; /* volatile unsigned word */
  25. typedef volatile INT16 VINT16; /* volatile unsigned halfword */
  26. typedef volatile INT8 VINT8;   /* volatile unsigned byte */
  27. typedef volatile UINT32 VUINT32; /* volatile unsigned word */
  28. typedef volatile UINT16 VUINT16; /* volatile unsigned halfword */
  29. typedef volatile UINT8 VUINT8;   /* volatile unsigned byte */
  30. #define CAST(x) (x)
  31. #endif  /* _ASMLANGUAGE */
  32. #endif /* M8260ABBREVIATIONS */
  33. /*
  34.  * MPC8260 internal register/memory map (section 17 of prelim. spec)
  35.  * note that these are offsets from the value stored in the IMMR
  36.  * register. Also note that in the MPC8260, the IMMR is not a special
  37.  * purpose register, but it is memory mapped.
  38.  */
  39.  
  40. /* System Clock Control Register */
  41. #define M8260_SCCR(base)        (CAST(VUINT32 *)((base) + 0x10c80))
  42. /* System Clock Control Register bit definition (SCCR - 0x10c80) */
  43. #define M8260_SCCR_RES_MSK      0xfffffff8      /* reserved field Mask */
  44. #define M8260_SCCR_CPM_LOW      0x00000004      /* CPM and SIU low power */
  45. #define M8260_SCCR_DFBRG_4      0x00000000      /* divide by 4 */
  46. #define M8260_SCCR_DFBRG_16     0x00000001      /* divide by 16 */
  47. #define M8260_SCCR_DFBRG_64     0x00000002      /* divide by 64 */
  48. #define M8260_SCCR_DFBRG_128    0x00000003      /* divide by 128 */
  49. #define M8260_SCCR_TBS          0x02000000      /* Time Base Source */
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif /* __INCm8260Clockh */