1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
//###########################################################################
//
// FILE: F2837xD_nmiintrupt.h
//
// TITLE: NMIINTRUPT Register Definitions.
//
//###########################################################################
// $TI Release: F2837xD Support Library v3.05.00.00 $
// $Release Date: Tue Jun 26 03:15:23 CDT 2018 $
// $Copyright:
// Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//###########################################################################
#ifndef __F2837xD_NMIINTRUPT_H__
#define __F2837xD_NMIINTRUPT_H__
#ifdef __cplusplus
extern "C" {
#endif
//---------------------------------------------------------------------------
// NMIINTRUPT Individual Register Bit Definitions:
struct NMICFG_BITS { // bits description
Uint16 NMIE:1; // 0 Global NMI Enable
Uint16 rsvd1:15; // 15:1 Reserved
};
union NMICFG_REG {
Uint16 all;
struct NMICFG_BITS bit;
};
struct NMIFLG_BITS { // bits description
Uint16 NMIINT:1; // 0 NMI Interrupt Flag
Uint16 CLOCKFAIL:1; // 1 Clock Fail Interrupt Flag
Uint16 RAMUNCERR:1; // 2 RAM Uncorrectable Error NMI Flag
Uint16 FLUNCERR:1; // 3 Flash Uncorrectable Error NMI Flag
Uint16 CPU1HWBISTERR:1; // 4 HW BIST Error NMI Flag
Uint16 CPU2HWBISTERR:1; // 5 HW BIST Error NMI Flag
Uint16 PIEVECTERR:1; // 6 PIE Vector Fetch Error Flag
Uint16 rsvd1:1; // 7 Reserved
Uint16 rsvd2:1; // 8 Reserved
Uint16 CPU2WDRSn:1; // 9 CPU2 WDRSn Reset Indication Flag
Uint16 CPU2NMIWDRSn:1; // 10 CPU2 NMIWDRSn Reset Indication Flag
Uint16 rsvd3:1; // 11 Reserved
Uint16 rsvd4:4; // 15:12 Reserved
};
union NMIFLG_REG {
Uint16 all;
struct NMIFLG_BITS bit;
};
struct NMIFLGCLR_BITS { // bits description
Uint16 NMIINT:1; // 0 NMIINT Flag Clear
Uint16 CLOCKFAIL:1; // 1 CLOCKFAIL Flag Clear
Uint16 RAMUNCERR:1; // 2 RAMUNCERR Flag Clear
Uint16 FLUNCERR:1; // 3 FLUNCERR Flag Clear
Uint16 CPU1HWBISTERR:1; // 4 CPU1HWBISTERR Flag Clear
Uint16 CPU2HWBISTERR:1; // 5 CPU2HWBISTERR Flag Clear
Uint16 PIEVECTERR:1; // 6 PIEVECTERR Flag Clear
Uint16 rsvd1:1; // 7 Reserved
Uint16 rsvd2:1; // 8 Reserved
Uint16 CPU2WDRSn:1; // 9 CPU2WDRSn Flag Clear
Uint16 CPU2NMIWDRSn:1; // 10 CPU2NMIWDRSn Flag Clear
Uint16 OVF:1; // 11 OVF Flag Clear
Uint16 rsvd3:4; // 15:12 Reserved
};
union NMIFLGCLR_REG {
Uint16 all;
struct NMIFLGCLR_BITS bit;
};
struct NMIFLGFRC_BITS { // bits description
Uint16 rsvd1:1; // 0 Reserved
Uint16 CLOCKFAIL:1; // 1 CLOCKFAIL Flag Force
Uint16 RAMUNCERR:1; // 2 RAMUNCERR Flag Force
Uint16 FLUNCERR:1; // 3 FLUNCERR Flag Force
Uint16 CPU1HWBISTERR:1; // 4 CPU1HWBISTERR Flag Force
Uint16 CPU2HWBISTERR:1; // 5 CPU2HWBISTERR Flag Force
Uint16 PIEVECTERR:1; // 6 PIEVECTERR Flag Force
Uint16 rsvd2:1; // 7 Reserved
Uint16 rsvd3:1; // 8 Reserved
Uint16 CPU2WDRSn:1; // 9 CPU2WDRSn Flag Force
Uint16 CPU2NMIWDRSn:1; // 10 CPU2NMIWDRSn Flag Force
Uint16 OVF:1; // 11 OVF Flag Force
Uint16 rsvd4:4; // 15:12 Reserved
};
union NMIFLGFRC_REG {
Uint16 all;
struct NMIFLGFRC_BITS bit;
};
struct NMISHDFLG_BITS { // bits description
Uint16 rsvd1:1; // 0 Reserved
Uint16 CLOCKFAIL:1; // 1 Shadow CLOCKFAIL Flag
Uint16 RAMUNCERR:1; // 2 Shadow RAMUNCERR Flag
Uint16 FLUNCERR:1; // 3 Shadow FLUNCERR Flag
Uint16 CPU1HWBISTERR:1; // 4 Shadow CPU1HWBISTERR Flag
Uint16 CPU2HWBISTERR:1; // 5 Shadow CPU2HWBISTERR Flag
Uint16 PIEVECTERR:1; // 6 Shadow PIEVECTERR Flag
Uint16 rsvd2:1; // 7 Reserved
Uint16 rsvd3:1; // 8 Reserved
Uint16 CPU2WDRSn:1; // 9 Shadow CPU2WDRSn Flag
Uint16 CPU2NMIWDRSn:1; // 10 Shadow CPU2NMIWDRSn Flag
Uint16 OVF:1; // 11 Shadow OVF Flag
Uint16 rsvd4:4; // 15:12 Reserved
};
union NMISHDFLG_REG {
Uint16 all;
struct NMISHDFLG_BITS bit;
};
struct NMI_INTRUPT_REGS {
union NMICFG_REG NMICFG; // NMI Configuration Register
union NMIFLG_REG NMIFLG; // NMI Flag Register (XRSn Clear)
union NMIFLGCLR_REG NMIFLGCLR; // NMI Flag Clear Register
union NMIFLGFRC_REG NMIFLGFRC; // NMI Flag Force Register
Uint16 NMIWDCNT; // NMI Watchdog Counter Register
Uint16 NMIWDPRD; // NMI Watchdog Period Register
union NMISHDFLG_REG NMISHDFLG; // NMI Shadow Flag Register
};
//---------------------------------------------------------------------------
// NMIINTRUPT External References & Function Declarations:
//
#ifdef CPU1
extern volatile struct NMI_INTRUPT_REGS NmiIntruptRegs;
#endif
#ifdef CPU2
extern volatile struct NMI_INTRUPT_REGS NmiIntruptRegs;
#endif
#ifdef __cplusplus
}
#endif /* extern "C" */
#endif
//===========================================================================
// End of file.
//===========================================================================
|