reg_dcc.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /** @file reg_dcc.h
  2. * @brief DCC Register Layer Header File
  3. * @date 29.May.2013
  4. * @version 03.05.02
  5. *
  6. * This file contains:
  7. * - Definitions
  8. * - Types
  9. * - Interface Prototypes
  10. * .
  11. * which are relevant for the DCC driver.
  12. */
  13. /* (c) Texas Instruments 2009-2013, All rights reserved. */
  14. #ifndef __REG_DCC_H__
  15. #define __REG_DCC_H__
  16. #include "sys_common.h"
  17. /* USER CODE BEGIN (0) */
  18. /* USER CODE END */
  19. /* Dcc Register Frame Definition */
  20. /** @struct dccBase
  21. * @brief DCC Base Register Definition
  22. *
  23. * This structure is used to access the DCC module registers.
  24. */
  25. /** @typedef dccBASE_t
  26. * @brief DCC Register Frame Type Definition
  27. *
  28. * This type is used to access the DCC Registers.
  29. */
  30. typedef volatile struct dccBase
  31. {
  32. uint32 GCTRL; /**< 0x0000: DCC Control Register */
  33. uint32 REV; /**< 0x0004: DCC Revision Id Register */
  34. uint32 CNT0SEED; /**< 0x0008: DCC Counter0 Seed Register */
  35. uint32 VALID0SEED; /**< 0x000C: DCC Valid0 Seed Register */
  36. uint32 CNT1SEED; /**< 0x0010: DCC Counter1 Seed Register */
  37. uint32 STAT; /**< 0x0014: DCC Status Register */
  38. uint32 CNT0; /**< 0x0018: DCC Counter0 Value Register */
  39. uint32 VALID0; /**< 0x001C: DCC Valid0 Value Register */
  40. uint32 CNT1; /**< 0x0020: DCC Counter1 Value Register */
  41. uint32 CLKSRC1; /**< 0x0024: DCC Counter1 Clock Source Selection Register */
  42. uint32 CLKSRC0; /**< 0x0028: DCC Counter0 Clock Source Selection Register */
  43. } dccBASE_t;
  44. /** @def dccREG1
  45. * @brief DCC1 Register Frame Pointer
  46. *
  47. * This pointer is used by the DCC driver to access the dcc2 module registers.
  48. */
  49. #define dccREG1 ((dccBASE_t *)0xFFFFEC00U)
  50. /** @def dccREG2
  51. * @brief DCC2 Register Frame Pointer
  52. *
  53. * This pointer is used by the DCC driver to access the dcc2 module registers.
  54. */
  55. #define dccREG2 ((dccBASE_t *)0xFFFFF400U)
  56. /* USER CODE BEGIN (1) */
  57. /* USER CODE END */
  58. #endif