DSP2803x_NmiIntrupt.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. //###########################################################################
  2. //
  3. // FILE: DSP2803x_NmiIntrupt.h
  4. //
  5. // TITLE: DSP2803x Device NMI Interrupt Register Definitions
  6. //
  7. //###########################################################################
  8. // $TI Release: F2803x C/C++ Header Files and Peripheral Examples V130 $
  9. // $Release Date: May 8, 2015 $
  10. // $Copyright: Copyright (C) 2009-2015 Texas Instruments Incorporated -
  11. // http://www.ti.com/ ALL RIGHTS RESERVED $
  12. //###########################################################################
  13. #ifndef DSP2803x_NMIINTRUPT_H
  14. #define DSP2803x_NMIINTRUPT_H
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. //===========================================================================
  19. // NMI Interrupt Register Bit Definitions
  20. //
  21. struct NMICFG_BITS { // bits description
  22. Uint16 rsvd1:1; // 0 reserved
  23. Uint16 CLOCKFAIL:1; // 1 Fail Interrupt Enable Bits
  24. Uint16 rsvd2:14; // 15:02 reserved
  25. };
  26. union NMICFG_REG {
  27. Uint16 all;
  28. struct NMICFG_BITS bit;
  29. };
  30. struct NMIFLG_BITS { // bits description
  31. Uint16 NMIINT:1; // 0 NMI Interrupt Flag
  32. Uint16 CLOCKFAIL:1; // 1 Clock Fail Interrupt Flags
  33. Uint16 rsvd1:14; // 15:02 reserved
  34. };
  35. union NMIFLG_REG {
  36. Uint16 all;
  37. struct NMIFLG_BITS bit;
  38. };
  39. struct NMIFLGCLR_BITS { // bits description
  40. Uint16 NMIINT:1; // 0 NMIINT Flag Clear Bit
  41. Uint16 CLOCKFAIL:1; // 1 CLOCKFAIL Flag Clear Bit
  42. Uint16 rsvd1:14; // 15:02 reserved
  43. };
  44. union NMIFLGCLR_REG {
  45. Uint16 all;
  46. struct NMIFLGCLR_BITS bit;
  47. };
  48. struct NMIFLGFRC_BITS { // bits description
  49. Uint16 rsvd1:1; // 0 reserved
  50. Uint16 CLOCKFAIL:1; // 1 CLOCKFAIL Flag Force Bit
  51. Uint16 rsvd2:14; // 15:02 reserved
  52. };
  53. union NMIFLGFRC_REG {
  54. Uint16 all;
  55. struct NMIFLGFRC_BITS bit;
  56. };
  57. //===========================================================================
  58. // NMI Interrupt Register Definitions
  59. //
  60. struct NMIINTRUPT_REGS {
  61. union NMICFG_REG NMICFG;
  62. union NMIFLG_REG NMIFLG;
  63. union NMIFLGCLR_REG NMIFLGCLR;
  64. union NMIFLGFRC_REG NMIFLGFRC;
  65. Uint16 NMIWDCNT;
  66. Uint16 NMIWDPRD;
  67. Uint16 rsvd1[10];
  68. };
  69. //===========================================================================
  70. // NMI Interrupt External References and Function Declarations
  71. //
  72. extern volatile struct NMIINTRUPT_REGS NmiIntruptRegs;
  73. #ifdef __cplusplus
  74. }
  75. #endif /* extern "C" */
  76. #endif // end of DSP2803x_NMIINTRUPT_H definition
  77. //===========================================================================
  78. // End of file
  79. //===========================================================================