F2837xD_xint.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. //###########################################################################
  2. //
  3. // FILE: F2837xD_xint.h
  4. //
  5. // TITLE: XINT Register Definitions.
  6. //
  7. //###########################################################################
  8. // $TI Release: F2837xD Support Library v3.05.00.00 $
  9. // $Release Date: Tue Jun 26 03:15:23 CDT 2018 $
  10. // $Copyright:
  11. // Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/
  12. //
  13. // Redistribution and use in source and binary forms, with or without
  14. // modification, are permitted provided that the following conditions
  15. // are met:
  16. //
  17. // Redistributions of source code must retain the above copyright
  18. // notice, this list of conditions and the following disclaimer.
  19. //
  20. // Redistributions in binary form must reproduce the above copyright
  21. // notice, this list of conditions and the following disclaimer in the
  22. // documentation and/or other materials provided with the
  23. // distribution.
  24. //
  25. // Neither the name of Texas Instruments Incorporated nor the names of
  26. // its contributors may be used to endorse or promote products derived
  27. // from this software without specific prior written permission.
  28. //
  29. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  30. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  31. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  32. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  33. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  34. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  35. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  36. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  37. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  38. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  39. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. // $
  41. //###########################################################################
  42. #ifndef __F2837xD_XINT_H__
  43. #define __F2837xD_XINT_H__
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. //---------------------------------------------------------------------------
  48. // XINT Individual Register Bit Definitions:
  49. struct XINT1CR_BITS { // bits description
  50. Uint16 ENABLE:1; // 0 XINT1 Enable
  51. Uint16 rsvd1:1; // 1 Reserved
  52. Uint16 POLARITY:2; // 3:2 XINT1 Polarity
  53. Uint16 rsvd2:12; // 15:4 Reserved
  54. };
  55. union XINT1CR_REG {
  56. Uint16 all;
  57. struct XINT1CR_BITS bit;
  58. };
  59. struct XINT2CR_BITS { // bits description
  60. Uint16 ENABLE:1; // 0 XINT2 Enable
  61. Uint16 rsvd1:1; // 1 Reserved
  62. Uint16 POLARITY:2; // 3:2 XINT2 Polarity
  63. Uint16 rsvd2:12; // 15:4 Reserved
  64. };
  65. union XINT2CR_REG {
  66. Uint16 all;
  67. struct XINT2CR_BITS bit;
  68. };
  69. struct XINT3CR_BITS { // bits description
  70. Uint16 ENABLE:1; // 0 XINT3 Enable
  71. Uint16 rsvd1:1; // 1 Reserved
  72. Uint16 POLARITY:2; // 3:2 XINT3 Polarity
  73. Uint16 rsvd2:12; // 15:4 Reserved
  74. };
  75. union XINT3CR_REG {
  76. Uint16 all;
  77. struct XINT3CR_BITS bit;
  78. };
  79. struct XINT4CR_BITS { // bits description
  80. Uint16 ENABLE:1; // 0 XINT4 Enable
  81. Uint16 rsvd1:1; // 1 Reserved
  82. Uint16 POLARITY:2; // 3:2 XINT4 Polarity
  83. Uint16 rsvd2:12; // 15:4 Reserved
  84. };
  85. union XINT4CR_REG {
  86. Uint16 all;
  87. struct XINT4CR_BITS bit;
  88. };
  89. struct XINT5CR_BITS { // bits description
  90. Uint16 ENABLE:1; // 0 XINT5 Enable
  91. Uint16 rsvd1:1; // 1 Reserved
  92. Uint16 POLARITY:2; // 3:2 XINT5 Polarity
  93. Uint16 rsvd2:12; // 15:4 Reserved
  94. };
  95. union XINT5CR_REG {
  96. Uint16 all;
  97. struct XINT5CR_BITS bit;
  98. };
  99. struct XINT_REGS {
  100. union XINT1CR_REG XINT1CR; // XINT1 configuration register
  101. union XINT2CR_REG XINT2CR; // XINT2 configuration register
  102. union XINT3CR_REG XINT3CR; // XINT3 configuration register
  103. union XINT4CR_REG XINT4CR; // XINT4 configuration register
  104. union XINT5CR_REG XINT5CR; // XINT5 configuration register
  105. Uint16 rsvd1[3]; // Reserved
  106. Uint16 XINT1CTR; // XINT1 counter register
  107. Uint16 XINT2CTR; // XINT2 counter register
  108. Uint16 XINT3CTR; // XINT3 counter register
  109. };
  110. //---------------------------------------------------------------------------
  111. // XINT External References & Function Declarations:
  112. //
  113. #ifdef CPU1
  114. extern volatile struct XINT_REGS XintRegs;
  115. #endif
  116. #ifdef CPU2
  117. extern volatile struct XINT_REGS XintRegs;
  118. #endif
  119. #ifdef __cplusplus
  120. }
  121. #endif /* extern "C" */
  122. #endif
  123. //===========================================================================
  124. // End of file.
  125. //===========================================================================