📄 s12int.h
字号:
/*******************************************************************************/
/**
Copyright (c) 2007 Freescale Semiconductor
Freescale Confidential Proprietary
\file S12INT.h
\brief S12XF512 Interrupt module definitions
\author Freescale Semiconductor
\author Guadalajara Applications Laboratory RTAC Americas
\author Jaime Orozco
\version 1.0
\date March/09/2007
*/
/*******************************************************************************/
/* */
/* All software, source code, included documentation, and any implied know-how */
/* are property of Freescale Semiconductor and therefore considered */
/* CONFIDENTIAL INFORMATION. */
/* */
/* This confidential information is disclosed FOR DEMONSTRATION PURPOSES ONLY. */
/* */
/* All Confidential Information remains the property of Freescale Semiconductor*/
/* and will not be copied or reproduced without the express written permission */
/* of the Discloser, except for copies that are absolutely necessary in order */
/* to fulfill the Purpose. */
/* */
/* Services performed by FREESCALE in this matter are performed AS IS and */
/* without any warranty. CUSTOMER retains the final decision relative to the */
/* total design and functionality of the end product. */
/* */
/* FREESCALE neither guarantees nor will be held liable by CUSTOMER for the */
/* success of this project. */
/* */
/* FREESCALE disclaims all warranties, express, implied or statutory including,*/
/* but not limited to, implied warranty of merchantability or fitness for a */
/* particular purpose on any hardware, software or advise supplied to the */
/* project by FREESCALE, and or any product resulting from FREESCALE services. */
/* */
/* In no event shall FREESCALE be liable for incidental or consequential */
/* damages arising out of this agreement. CUSTOMER agrees to hold FREESCALE */
/* harmless against any and all claims demands or actions by anyone on account */
/* of any damage,or injury, whether commercial, contractual, or tortuous, */
/* rising directly or indirectly as a result of the advise or assistance */
/* supplied CUSTOMER in connection with product, services or goods supplied */
/* under this Agreement. */
/* */
/*******************************************************************************/
#ifndef S12INT_H /*prevent duplicated includes */
#define S12INT_H
/*** IVBR - Interrupt Vector Base Register; 0x00000121 ***/
typedef union {
byte Byte;
struct {
byte IVB_ADDR :8; /* Interrupt vector base address bits */
} Bits;
} IVBRSTR;
extern volatile IVBRSTR _IVBR @(REG_BASE + 0x00000121);
#define IVBR _IVBR.Byte
#define IVBR_IVB_ADDR _IVBR.Bits.IVB_ADDR
#define IVBR_IVB_ADDR_MASK 255
#define IVBR_IVB_ADDR_BITNUM 0
/*** INT_XGPRIO - XGATE Interrupt Priority Configuration Register; 0x00000126 ***/
typedef union {
byte Byte;
struct {
byte XILVL :3; /* XGATE Interrupt Priority Level */
byte :1;
byte :1;
byte :1;
byte :1;
byte :1;
} Bits;
} INT_XGPRIOSTR;
extern volatile INT_XGPRIOSTR _INT_XGPRIO @(REG_BASE + 0x00000126);
#define INT_XGPRIO _INT_XGPRIO.Byte
#define INT_XGPRIO_XILVL _INT_XGPRIO.Bits.XILVL
#define INT_XGPRIO_XILVL_MASK 7
#define INT_XGPRIO_XILVL_BITNUM 0
/*** INT_CFADDR - Interrupt Configuration Address Register; 0x00000127 ***/
typedef union {
byte Byte;
struct {
byte :1;
byte :1;
byte :1;
byte :1;
byte INT_CFADDRGrp :4; /* Interrupt Request Configuration Data Register select bits */
} Bits;
} INT_CFADDRSTR;
extern volatile INT_CFADDRSTR _INT_CFADDR @(REG_BASE + 0x00000127);
#define INT_CFADDR _INT_CFADDR.Byte
#define INT_CFADDR_INT_CFADDRGrp _INT_CFADDR.Bits.INT_CFADDRGrp
#define INT_CFADDR_INT_CFADDRGrp_MASK 240
#define INT_CFADDR_INT_CFADDRGrp_BITNUM 4
/*** INT_CFDATA0 - Interrupt Configuration Data Register 0; 0x00000128 ***/
typedef union {
byte Byte;
struct {
byte PRIOLVL :3; /* Interrupt Request Priority Level Bits */
byte :1;
byte :1;
byte :1;
byte :1;
byte RQST :1; /* XGATE Request Enable */
} Bits;
} INT_CFDATA0STR;
extern volatile INT_CFDATA0STR _INT_CFDATA0 @(REG_BASE + 0x00000128);
#define INT_CFDATA0 _INT_CFDATA0.Byte
#define INT_CFDATA0_PRIOLVL _INT_CFDATA0.Bits.PRIOLVL
#define INT_CFDATA0_RQST _INT_CFDATA0.Bits.RQST
/* INT_CFDATA_ARR: Access 8 INT_CFDATAx registers in an array */
#define INT_CFDATA_ARR ((byte *) &INT_CFDATA0)
#define INT_CFDATA0_PRIOLVL_MASK 7
#define INT_CFDATA0_PRIOLVL_BITNUM 0
#define INT_CFDATA0_RQST_MASK 128
/*** INT_CFDATA1 - Interrupt Configuration Data Register 1; 0x00000129 ***/
typedef union {
byte Byte;
struct {
byte PRIOLVL :3; /* Interrupt Request Priority Level Bits */
byte :1;
byte :1;
byte :1;
byte :1;
byte RQST :1; /* XGATE Request Enable */
} Bits;
} INT_CFDATA1STR;
extern volatile INT_CFDATA1STR _INT_CFDATA1 @(REG_BASE + 0x00000129);
#define INT_CFDATA1 _INT_CFDATA1.Byte
#define INT_CFDATA1_PRIOLVL _INT_CFDATA1.Bits.PRIOLVL
#define INT_CFDATA1_RQST _INT_CFDATA1.Bits.RQST
#define INT_CFDATA1_PRIOLVL_MASK 7
#define INT_CFDATA1_PRIOLVL_BITNUM 0
#define INT_CFDATA1_RQST_MASK 128
/*** INT_CFDATA2 - Interrupt Configuration Data Register 2; 0x0000012A ***/
typedef union {
byte Byte;
struct {
byte PRIOLVL :3; /* Interrupt Request Priority Level Bits */
byte :1;
byte :1;
byte :1;
byte :1;
byte RQST :1; /* XGATE Request Enable */
} Bits;
} INT_CFDATA2STR;
extern volatile INT_CFDATA2STR _INT_CFDATA2 @(REG_BASE + 0x0000012A);
#define INT_CFDATA2 _INT_CFDATA2.Byte
#define INT_CFDATA2_PRIOLVL _INT_CFDATA2.Bits.PRIOLVL
#define INT_CFDATA2_RQST _INT_CFDATA2.Bits.RQST
#define INT_CFDATA2_PRIOLVL_MASK 7
#define INT_CFDATA2_PRIOLVL_BITNUM 0
#define INT_CFDATA2_RQST_MASK 128
/*** INT_CFDATA3 - Interrupt Configuration Data Register 3; 0x0000012B ***/
typedef union {
byte Byte;
struct {
byte PRIOLVL :3; /* Interrupt Request Priority Level Bits */
byte :1;
byte :1;
byte :1;
byte :1;
byte RQST :1; /* XGATE Request Enable */
} Bits;
} INT_CFDATA3STR;
extern volatile INT_CFDATA3STR _INT_CFDATA3 @(REG_BASE + 0x0000012B);
#define INT_CFDATA3 _INT_CFDATA3.Byte
#define INT_CFDATA3_PRIOLVL _INT_CFDATA3.Bits.PRIOLVL
#define INT_CFDATA3_RQST _INT_CFDATA3.Bits.RQST
#define INT_CFDATA3_PRIOLVL_MASK 7
#define INT_CFDATA3_PRIOLVL_BITNUM 0
#define INT_CFDATA3_RQST_MASK 128
/*** INT_CFDATA4 - Interrupt Configuration Data Register 4; 0x0000012C ***/
typedef union {
byte Byte;
struct {
byte PRIOLVL :3; /* Interrupt Request Priority Level Bits */
byte :1;
byte :1;
byte :1;
byte :1;
byte RQST :1; /* XGATE Request Enable */
} Bits;
} INT_CFDATA4STR;
extern volatile INT_CFDATA4STR _INT_CFDATA4 @(REG_BASE + 0x0000012C);
#define INT_CFDATA4 _INT_CFDATA4.Byte
#define INT_CFDATA4_PRIOLVL _INT_CFDATA4.Bits.PRIOLVL
#define INT_CFDATA4_RQST _INT_CFDATA4.Bits.RQST
#define INT_CFDATA4_PRIOLVL_MASK 7
#define INT_CFDATA4_PRIOLVL_BITNUM 0
#define INT_CFDATA4_RQST_MASK 128
/*** INT_CFDATA5 - Interrupt Configuration Data Register 5; 0x0000012D ***/
typedef union {
byte Byte;
struct {
byte PRIOLVL :3; /* Interrupt Request Priority Level Bits */
byte :1;
byte :1;
byte :1;
byte :1;
byte RQST :1; /* XGATE Request Enable */
} Bits;
} INT_CFDATA5STR;
extern volatile INT_CFDATA5STR _INT_CFDATA5 @(REG_BASE + 0x0000012D);
#define INT_CFDATA5 _INT_CFDATA5.Byte
#define INT_CFDATA5_PRIOLVL _INT_CFDATA5.Bits.PRIOLVL
#define INT_CFDATA5_RQST _INT_CFDATA5.Bits.RQST
#define INT_CFDATA5_PRIOLVL_MASK 7
#define INT_CFDATA5_PRIOLVL_BITNUM 0
#define INT_CFDATA5_RQST_MASK 128
/*** INT_CFDATA6 - Interrupt Configuration Data Register 6; 0x0000012E ***/
typedef union {
byte Byte;
struct {
byte PRIOLVL :3; /* Interrupt Request Priority Level Bits */
byte :1;
byte :1;
byte :1;
byte :1;
byte RQST :1; /* XGATE Request Enable */
} Bits;
} INT_CFDATA6STR;
extern volatile INT_CFDATA6STR _INT_CFDATA6 @(REG_BASE + 0x0000012E);
#define INT_CFDATA6 _INT_CFDATA6.Byte
#define INT_CFDATA6_PRIOLVL _INT_CFDATA6.Bits.PRIOLVL
#define INT_CFDATA6_RQST _INT_CFDATA6.Bits.RQST
#define INT_CFDATA6_PRIOLVL_MASK 7
#define INT_CFDATA6_PRIOLVL_BITNUM 0
#define INT_CFDATA6_RQST_MASK 128
/*** INT_CFDATA7 - Interrupt Configuration Data Register 7; 0x0000012F ***/
typedef union {
byte Byte;
struct {
byte PRIOLVL :3; /* Interrupt Request Priority Level Bits */
byte :1;
byte :1;
byte :1;
byte :1;
byte RQST :1; /* XGATE Request Enable */
} Bits;
} INT_CFDATA7STR;
extern volatile INT_CFDATA7STR _INT_CFDATA7 @(REG_BASE + 0x0000012F);
#define INT_CFDATA7 _INT_CFDATA7.Byte
#define INT_CFDATA7_PRIOLVL _INT_CFDATA7.Bits.PRIOLVL
#define INT_CFDATA7_RQST _INT_CFDATA7.Bits.RQST
#define INT_CFDATA7_PRIOLVL_MASK 7
#define INT_CFDATA7_PRIOLVL_BITNUM 0
#define INT_CFDATA7_RQST_MASK 128
#endif /* S12INT_H */
/*******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -