hw_sysexc.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. //*****************************************************************************
  2. //
  3. // hw_sysexc.h - Macros used when accessing the system exception module.
  4. //
  5. // Copyright (c) 2011-2020 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions
  10. // are met:
  11. //
  12. // Redistributions of source code must retain the above copyright
  13. // notice, this list of conditions and the following disclaimer.
  14. //
  15. // Redistributions in binary form must reproduce the above copyright
  16. // notice, this list of conditions and the following disclaimer in the
  17. // documentation and/or other materials provided with the
  18. // distribution.
  19. //
  20. // Neither the name of Texas Instruments Incorporated nor the names of
  21. // its contributors may be used to endorse or promote products derived
  22. // from this software without specific prior written permission.
  23. //
  24. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. // This is part of revision 2.2.0.295 of the Tiva Firmware Development Package.
  37. //
  38. //*****************************************************************************
  39. #ifndef __HW_SYSEXC_H__
  40. #define __HW_SYSEXC_H__
  41. //*****************************************************************************
  42. //
  43. // The following are defines for the System Exception Module register
  44. // addresses.
  45. //
  46. //*****************************************************************************
  47. #define SYSEXC_RIS 0x400F9000 // System Exception Raw Interrupt
  48. // Status
  49. #define SYSEXC_IM 0x400F9004 // System Exception Interrupt Mask
  50. #define SYSEXC_MIS 0x400F9008 // System Exception Masked
  51. // Interrupt Status
  52. #define SYSEXC_IC 0x400F900C // System Exception Interrupt Clear
  53. //*****************************************************************************
  54. //
  55. // The following are defines for the bit fields in the SYSEXC_RIS register.
  56. //
  57. //*****************************************************************************
  58. #define SYSEXC_RIS_FPIXCRIS 0x00000020 // Floating-Point Inexact Exception
  59. // Raw Interrupt Status
  60. #define SYSEXC_RIS_FPOFCRIS 0x00000010 // Floating-Point Overflow
  61. // Exception Raw Interrupt Status
  62. #define SYSEXC_RIS_FPUFCRIS 0x00000008 // Floating-Point Underflow
  63. // Exception Raw Interrupt Status
  64. #define SYSEXC_RIS_FPIOCRIS 0x00000004 // Floating-Point Invalid Operation
  65. // Raw Interrupt Status
  66. #define SYSEXC_RIS_FPDZCRIS 0x00000002 // Floating-Point Divide By 0
  67. // Exception Raw Interrupt Status
  68. #define SYSEXC_RIS_FPIDCRIS 0x00000001 // Floating-Point Input Denormal
  69. // Exception Raw Interrupt Status
  70. //*****************************************************************************
  71. //
  72. // The following are defines for the bit fields in the SYSEXC_IM register.
  73. //
  74. //*****************************************************************************
  75. #define SYSEXC_IM_FPIXCIM 0x00000020 // Floating-Point Inexact Exception
  76. // Interrupt Mask
  77. #define SYSEXC_IM_FPOFCIM 0x00000010 // Floating-Point Overflow
  78. // Exception Interrupt Mask
  79. #define SYSEXC_IM_FPUFCIM 0x00000008 // Floating-Point Underflow
  80. // Exception Interrupt Mask
  81. #define SYSEXC_IM_FPIOCIM 0x00000004 // Floating-Point Invalid Operation
  82. // Interrupt Mask
  83. #define SYSEXC_IM_FPDZCIM 0x00000002 // Floating-Point Divide By 0
  84. // Exception Interrupt Mask
  85. #define SYSEXC_IM_FPIDCIM 0x00000001 // Floating-Point Input Denormal
  86. // Exception Interrupt Mask
  87. //*****************************************************************************
  88. //
  89. // The following are defines for the bit fields in the SYSEXC_MIS register.
  90. //
  91. //*****************************************************************************
  92. #define SYSEXC_MIS_FPIXCMIS 0x00000020 // Floating-Point Inexact Exception
  93. // Masked Interrupt Status
  94. #define SYSEXC_MIS_FPOFCMIS 0x00000010 // Floating-Point Overflow
  95. // Exception Masked Interrupt
  96. // Status
  97. #define SYSEXC_MIS_FPUFCMIS 0x00000008 // Floating-Point Underflow
  98. // Exception Masked Interrupt
  99. // Status
  100. #define SYSEXC_MIS_FPIOCMIS 0x00000004 // Floating-Point Invalid Operation
  101. // Masked Interrupt Status
  102. #define SYSEXC_MIS_FPDZCMIS 0x00000002 // Floating-Point Divide By 0
  103. // Exception Masked Interrupt
  104. // Status
  105. #define SYSEXC_MIS_FPIDCMIS 0x00000001 // Floating-Point Input Denormal
  106. // Exception Masked Interrupt
  107. // Status
  108. //*****************************************************************************
  109. //
  110. // The following are defines for the bit fields in the SYSEXC_IC register.
  111. //
  112. //*****************************************************************************
  113. #define SYSEXC_IC_FPIXCIC 0x00000020 // Floating-Point Inexact Exception
  114. // Interrupt Clear
  115. #define SYSEXC_IC_FPOFCIC 0x00000010 // Floating-Point Overflow
  116. // Exception Interrupt Clear
  117. #define SYSEXC_IC_FPUFCIC 0x00000008 // Floating-Point Underflow
  118. // Exception Interrupt Clear
  119. #define SYSEXC_IC_FPIOCIC 0x00000004 // Floating-Point Invalid Operation
  120. // Interrupt Clear
  121. #define SYSEXC_IC_FPDZCIC 0x00000002 // Floating-Point Divide By 0
  122. // Exception Interrupt Clear
  123. #define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal
  124. // Exception Interrupt Clear
  125. #endif // __HW_SYSEXC_H__