reg_htu.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /** @file reg_htu.h
  2. * @brief HTU 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 HTU driver.
  12. */
  13. /* (c) Texas Instruments 2009-2013, All rights reserved. */
  14. #ifndef __REG_HTU_H__
  15. #define __REG_HTU_H__
  16. #include "sys_common.h"
  17. /* USER CODE BEGIN (0) */
  18. /* USER CODE END */
  19. /* htu Register Frame Definition */
  20. /** @struct htuBase
  21. * @brief HTU Base Register Definition
  22. *
  23. * This structure is used to access the HTU module registers.
  24. */
  25. /** @typedef htuBASE_t
  26. * @brief HTU Register Frame Type Definition
  27. *
  28. * This type is used to access the HTU Registers.
  29. */
  30. typedef volatile struct htuBase
  31. {
  32. uint32 GC; /** 0x00 */
  33. uint32 CPENA; /** 0x04 */
  34. uint32 BUSY0; /** 0x08 */
  35. uint32 BUSY1; /** 0x0C */
  36. uint32 BUSY2; /** 0x10 */
  37. uint32 BUSY3; /** 0x14 */
  38. uint32 ACPE; /** 0x18 */
  39. uint32 rsvd1; /** 0x1C */
  40. uint32 RLBECTRL; /** 0x20 */
  41. uint32 BFINTS; /** 0x24 */
  42. uint32 BFINTC; /** 0x28 */
  43. uint32 INTMAP; /** 0x2C */
  44. uint32 rsvd2; /** 0x30 */
  45. uint32 INTOFF0; /** 0x34 */
  46. uint32 INTOFF1; /** 0x38 */
  47. uint32 BIM; /** 0x3C */
  48. uint32 RLOSTFL; /** 0x40 */
  49. uint32 BFINTFL; /** 0x44 */
  50. uint32 BERINTFL; /** 0x48 */
  51. uint32 MP1S; /** 0x4C */
  52. uint32 MP1E; /** 0x50 */
  53. uint32 DCTRL; /** 0x54 */
  54. uint32 WPR; /** 0x58 */
  55. uint32 WMR; /** 0x5C */
  56. uint32 ID; /** 0x60 */
  57. uint32 PCR; /** 0x64 */
  58. uint32 PAR; /** 0x68 */
  59. uint32 rsvd3; /** 0x6C */
  60. uint32 MPCS; /** 0x70 */
  61. uint32 MP0S; /** 0x74 */
  62. uint32 MP0E; /** 0x78 */
  63. } htuBASE_t;
  64. typedef volatile struct htudcp
  65. {
  66. uint32 IFADDRA;
  67. uint32 IFADDRB;
  68. uint32 IHADDRCT;
  69. uint32 ITCOUNT;
  70. } htudcp_t;
  71. typedef volatile struct htucdcp
  72. {
  73. uint32 CFADDRA;
  74. uint32 CFADDRB;
  75. uint32 CFCOUNT;
  76. uint32 rsvd4;
  77. } htucdcp_t;
  78. #define htuREG1 ((htuBASE_t *)0xFFF7A400U)
  79. #define htuREG2 ((htuBASE_t *)0xFFF7A500U)
  80. #define htuDCP1 ((htudcp_t *)0xFF4E0000U)
  81. #define htuDCP2 ((htudcp_t *)0xFF4C0000U)
  82. #define htuCDCP1 ((htucdcp_t *)0xFF4E0100U)
  83. #define htuCDCP2 ((htucdcp_t *)0xFF4C0100U)
  84. /* USER CODE BEGIN (1) */
  85. /* USER CODE END */
  86. #endif