hw_sysexc.h
Go to the documentation of this file.
1 //*****************************************************************************
2 //
3 // hw_sysexc.h - Macros used when accessing the system exception module.
4 //
5 // Copyright (c) 2011-2017 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 //*****************************************************************************
37 
38 #ifndef __HW_SYSEXC_H__
39 #define __HW_SYSEXC_H__
40 
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 //
56 // The following are defines for the bit fields in the SYSEXC_RIS register.
57 //
58 //*****************************************************************************
59 #define SYSEXC_RIS_FPIXCRIS 0x00000020 // Floating-Point Inexact Exception
60  // Raw Interrupt Status
61 #define SYSEXC_RIS_FPOFCRIS 0x00000010 // Floating-Point Overflow
62  // Exception Raw Interrupt Status
63 #define SYSEXC_RIS_FPUFCRIS 0x00000008 // Floating-Point Underflow
64  // Exception Raw Interrupt Status
65 #define SYSEXC_RIS_FPIOCRIS 0x00000004 // Floating-Point Invalid Operation
66  // Raw Interrupt Status
67 #define SYSEXC_RIS_FPDZCRIS 0x00000002 // Floating-Point Divide By 0
68  // Exception Raw Interrupt Status
69 #define SYSEXC_RIS_FPIDCRIS 0x00000001 // Floating-Point Input Denormal
70  // Exception Raw Interrupt Status
71 
72 //*****************************************************************************
73 //
74 // The following are defines for the bit fields in the SYSEXC_IM register.
75 //
76 //*****************************************************************************
77 #define SYSEXC_IM_FPIXCIM 0x00000020 // Floating-Point Inexact Exception
78  // Interrupt Mask
79 #define SYSEXC_IM_FPOFCIM 0x00000010 // Floating-Point Overflow
80  // Exception Interrupt Mask
81 #define SYSEXC_IM_FPUFCIM 0x00000008 // Floating-Point Underflow
82  // Exception Interrupt Mask
83 #define SYSEXC_IM_FPIOCIM 0x00000004 // Floating-Point Invalid Operation
84  // Interrupt Mask
85 #define SYSEXC_IM_FPDZCIM 0x00000002 // Floating-Point Divide By 0
86  // Exception Interrupt Mask
87 #define SYSEXC_IM_FPIDCIM 0x00000001 // Floating-Point Input Denormal
88  // Exception Interrupt Mask
89 
90 //*****************************************************************************
91 //
92 // The following are defines for the bit fields in the SYSEXC_MIS register.
93 //
94 //*****************************************************************************
95 #define SYSEXC_MIS_FPIXCMIS 0x00000020 // Floating-Point Inexact Exception
96  // Masked Interrupt Status
97 #define SYSEXC_MIS_FPOFCMIS 0x00000010 // Floating-Point Overflow
98  // Exception Masked Interrupt
99  // Status
100 #define SYSEXC_MIS_FPUFCMIS 0x00000008 // Floating-Point Underflow
101  // Exception Masked Interrupt
102  // Status
103 #define SYSEXC_MIS_FPIOCMIS 0x00000004 // Floating-Point Invalid Operation
104  // Masked Interrupt Status
105 #define SYSEXC_MIS_FPDZCMIS 0x00000002 // Floating-Point Divide By 0
106  // Exception Masked Interrupt
107  // Status
108 #define SYSEXC_MIS_FPIDCMIS 0x00000001 // Floating-Point Input Denormal
109  // Exception Masked Interrupt
110  // Status
111 
112 //*****************************************************************************
113 //
114 // The following are defines for the bit fields in the SYSEXC_IC register.
115 //
116 //*****************************************************************************
117 #define SYSEXC_IC_FPIXCIC 0x00000020 // Floating-Point Inexact Exception
118  // Interrupt Clear
119 #define SYSEXC_IC_FPOFCIC 0x00000010 // Floating-Point Overflow
120  // Exception Interrupt Clear
121 #define SYSEXC_IC_FPUFCIC 0x00000008 // Floating-Point Underflow
122  // Exception Interrupt Clear
123 #define SYSEXC_IC_FPIOCIC 0x00000004 // Floating-Point Invalid Operation
124  // Interrupt Clear
125 #define SYSEXC_IC_FPDZCIC 0x00000002 // Floating-Point Divide By 0
126  // Exception Interrupt Clear
127 #define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal
128  // Exception Interrupt Clear
129 
130 #endif // __HW_SYSEXC_H__
Copyright 2018, Texas Instruments Incorporated