📄 io_map.h
字号:
#define INTCR_IRQEN_MASK 64
#define INTCR_IRQE_MASK 128
/*** HPRIO - Highest Priority I Interrupt; 0x0000001F ***/
typedef union {
byte Byte;
struct {
byte :1;
byte PSEL1 :1; /* Highest Priority I Interrupt Bit 1 */
byte PSEL2 :1; /* Highest Priority I Interrupt Bit 2 */
byte PSEL3 :1; /* Highest Priority I Interrupt Bit 3 */
byte PSEL4 :1; /* Highest Priority I Interrupt Bit 4 */
byte PSEL5 :1; /* Highest Priority I Interrupt Bit 5 */
byte PSEL6 :1; /* Highest Priority I Interrupt Bit 6 */
byte PSEL7 :1; /* Highest Priority I Interrupt Bit 7 */
} Bits;
struct {
byte :1;
byte grpPSEL_1 :7;
} MergedBits;
} HPRIOSTR;
extern volatile HPRIOSTR _HPRIO @(REG_BASE + 0x0000001F);
#define HPRIO _HPRIO.Byte
#define HPRIO_PSEL1 _HPRIO.Bits.PSEL1
#define HPRIO_PSEL2 _HPRIO.Bits.PSEL2
#define HPRIO_PSEL3 _HPRIO.Bits.PSEL3
#define HPRIO_PSEL4 _HPRIO.Bits.PSEL4
#define HPRIO_PSEL5 _HPRIO.Bits.PSEL5
#define HPRIO_PSEL6 _HPRIO.Bits.PSEL6
#define HPRIO_PSEL7 _HPRIO.Bits.PSEL7
#define HPRIO_PSEL_1 _HPRIO.MergedBits.grpPSEL_1
#define HPRIO_PSEL HPRIO_PSEL_1
#define HPRIO_PSEL1_MASK 2
#define HPRIO_PSEL2_MASK 4
#define HPRIO_PSEL3_MASK 8
#define HPRIO_PSEL4_MASK 16
#define HPRIO_PSEL5_MASK 32
#define HPRIO_PSEL6_MASK 64
#define HPRIO_PSEL7_MASK 128
#define HPRIO_PSEL_1_MASK 254
#define HPRIO_PSEL_1_BITNUM 1
/*** BKPCT0 - Breakpoint Control Register 0; 0x00000028 ***/
typedef union {
byte Byte;
struct {
byte :1;
byte :1;
byte :1;
byte :1;
byte BKTAG :1; /* Breakpoint on Tag */
byte BKBDM :1; /* Breakpoint Background Debug Mode Enable */
byte BKFULL :1; /* Full Breakpoint Mode Enable */
byte BKEN :1; /* Breakpoint Enable */
} Bits;
} BKPCT0STR;
extern volatile BKPCT0STR _BKPCT0 @(REG_BASE + 0x00000028);
#define BKPCT0 _BKPCT0.Byte
#define BKPCT0_BKTAG _BKPCT0.Bits.BKTAG
#define BKPCT0_BKBDM _BKPCT0.Bits.BKBDM
#define BKPCT0_BKFULL _BKPCT0.Bits.BKFULL
#define BKPCT0_BKEN _BKPCT0.Bits.BKEN
/* BKPCT_ARR: Access 2 BKPCTx registers in an array */
#define BKPCT_ARR ((volatile byte *) &BKPCT0)
#define BKPCT0_BKTAG_MASK 16
#define BKPCT0_BKBDM_MASK 32
#define BKPCT0_BKFULL_MASK 64
#define BKPCT0_BKEN_MASK 128
/*** BKPCT1 - Breakpoint Control Register 1; 0x00000029 ***/
typedef union {
byte Byte;
struct {
byte BK1RW :1; /* R/W Compare Value 1 */
byte BK1RWE :1; /* R/W Compare Enable 1 */
byte BK0RW :1; /* R/W Compare Value 0 */
byte BK0RWE :1; /* R/W Compare Enable 0 */
byte BK1MBL :1; /* Breakpoint Mask Low Byte for Second Address */
byte BK1MBH :1; /* Breakpoint Mask High Byte for Second Address */
byte BK0MBL :1; /* Breakpoint Mask Low Byte for First Address */
byte BK0MBH :1; /* Breakpoint Mask High Byte for First Address */
} Bits;
} BKPCT1STR;
extern volatile BKPCT1STR _BKPCT1 @(REG_BASE + 0x00000029);
#define BKPCT1 _BKPCT1.Byte
#define BKPCT1_BK1RW _BKPCT1.Bits.BK1RW
#define BKPCT1_BK1RWE _BKPCT1.Bits.BK1RWE
#define BKPCT1_BK0RW _BKPCT1.Bits.BK0RW
#define BKPCT1_BK0RWE _BKPCT1.Bits.BK0RWE
#define BKPCT1_BK1MBL _BKPCT1.Bits.BK1MBL
#define BKPCT1_BK1MBH _BKPCT1.Bits.BK1MBH
#define BKPCT1_BK0MBL _BKPCT1.Bits.BK0MBL
#define BKPCT1_BK0MBH _BKPCT1.Bits.BK0MBH
#define BKPCT1_BK1RW_MASK 1
#define BKPCT1_BK1RWE_MASK 2
#define BKPCT1_BK0RW_MASK 4
#define BKPCT1_BK0RWE_MASK 8
#define BKPCT1_BK1MBL_MASK 16
#define BKPCT1_BK1MBH_MASK 32
#define BKPCT1_BK0MBL_MASK 64
#define BKPCT1_BK0MBH_MASK 128
/*** BKP0X - First Address Memory Expansion Breakpoint Register; 0x0000002A ***/
typedef union {
byte Byte;
struct {
byte BK0V0 :1; /* First Address Breakpoint Expansion Address Value Bit 0 */
byte BK0V1 :1; /* First Address Breakpoint Expansion Address Value Bit 1 */
byte BK0V2 :1; /* First Address Breakpoint Expansion Address Value Bit 2 */
byte BK0V3 :1; /* First Address Breakpoint Expansion Address Value Bit 3 */
byte BK0V4 :1; /* First Address Breakpoint Expansion Address Value Bit 4 */
byte BK0V5 :1; /* First Address Breakpoint Expansion Address Value Bit 5 */
byte :1;
byte :1;
} Bits;
struct {
byte grpBK0V :6;
byte :1;
byte :1;
} MergedBits;
} BKP0XSTR;
extern volatile BKP0XSTR _BKP0X @(REG_BASE + 0x0000002A);
#define BKP0X _BKP0X.Byte
#define BKP0X_BK0V0 _BKP0X.Bits.BK0V0
#define BKP0X_BK0V1 _BKP0X.Bits.BK0V1
#define BKP0X_BK0V2 _BKP0X.Bits.BK0V2
#define BKP0X_BK0V3 _BKP0X.Bits.BK0V3
#define BKP0X_BK0V4 _BKP0X.Bits.BK0V4
#define BKP0X_BK0V5 _BKP0X.Bits.BK0V5
#define BKP0X_BK0V _BKP0X.MergedBits.grpBK0V
#define BKP0X_BK0V0_MASK 1
#define BKP0X_BK0V1_MASK 2
#define BKP0X_BK0V2_MASK 4
#define BKP0X_BK0V3_MASK 8
#define BKP0X_BK0V4_MASK 16
#define BKP0X_BK0V5_MASK 32
#define BKP0X_BK0V_MASK 63
#define BKP0X_BK0V_BITNUM 0
/*** BKP0H - First Address High Byte Breakpoint Register; 0x0000002B ***/
typedef union {
byte Byte;
struct {
byte BIT8 :1; /* First Address Breakpoint Register Bit 8 */
byte BIT9 :1; /* First Address Breakpoint Register Bit 9 */
byte BIT10 :1; /* First Address Breakpoint Register Bit 10 */
byte BIT11 :1; /* First Address Breakpoint Register Bit 11 */
byte BIT12 :1; /* First Address Breakpoint Register Bit 12 */
byte BIT13 :1; /* First Address Breakpoint Register Bit 13 */
byte BIT14 :1; /* First Address Breakpoint Register Bit 14 */
byte BIT15 :1; /* First Address Breakpoint Register Bit 15 */
} Bits;
} BKP0HSTR;
extern volatile BKP0HSTR _BKP0H @(REG_BASE + 0x0000002B);
#define BKP0H _BKP0H.Byte
#define BKP0H_BIT8 _BKP0H.Bits.BIT8
#define BKP0H_BIT9 _BKP0H.Bits.BIT9
#define BKP0H_BIT10 _BKP0H.Bits.BIT10
#define BKP0H_BIT11 _BKP0H.Bits.BIT11
#define BKP0H_BIT12 _BKP0H.Bits.BIT12
#define BKP0H_BIT13 _BKP0H.Bits.BIT13
#define BKP0H_BIT14 _BKP0H.Bits.BIT14
#define BKP0H_BIT15 _BKP0H.Bits.BIT15
#define BKP0H_BIT8_MASK 1
#define BKP0H_BIT9_MASK 2
#define BKP0H_BIT10_MASK 4
#define BKP0H_BIT11_MASK 8
#define BKP0H_BIT12_MASK 16
#define BKP0H_BIT13_MASK 32
#define BKP0H_BIT14_MASK 64
#define BKP0H_BIT15_MASK 128
/*** BKP0L - First Address Low Byte Breakpoint Register; 0x0000002C ***/
typedef union {
byte Byte;
struct {
byte BIT0 :1; /* First Address Breakpoint Register Bit 0 */
byte BIT1 :1; /* First Address Breakpoint Register Bit 1 */
byte BIT2 :1; /* First Address Breakpoint Register Bit 2 */
byte BIT3 :1; /* First Address Breakpoint Register Bit 3 */
byte BIT4 :1; /* First Address Breakpoint Register Bit 4 */
byte BIT5 :1; /* First Address Breakpoint Register Bit 5 */
byte BIT6 :1; /* First Address Breakpoint Register Bit 6 */
byte BIT7 :1; /* First Address Breakpoint Register Bit 7 */
} Bits;
} BKP0LSTR;
extern volatile BKP0LSTR _BKP0L @(REG_BASE + 0x0000002C);
#define BKP0L _BKP0L.Byte
#define BKP0L_BIT0 _BKP0L.Bits.BIT0
#define BKP0L_BIT1 _BKP0L.Bits.BIT1
#define BKP0L_BIT2 _BKP0L.Bits.BIT2
#define BKP0L_BIT3 _BKP0L.Bits.BIT3
#define BKP0L_BIT4 _BKP0L.Bits.BIT4
#define BKP0L_BIT5 _BKP0L.Bits.BIT5
#define BKP0L_BIT6 _BKP0L.Bits.BIT6
#define BKP0L_BIT7 _BKP0L.Bits.BIT7
#define BKP0L_BIT0_MASK 1
#define BKP0L_BIT1_MASK 2
#define BKP0L_BIT2_MASK 4
#define BKP0L_BIT3_MASK 8
#define BKP0L_BIT4_MASK 16
#define BKP0L_BIT5_MASK 32
#define BKP0L_BIT6_MASK 64
#define BKP0L_BIT7_MASK 128
/*** BKP1X - Second Address Memory Expansion Breakpoint Register; 0x0000002D ***/
typedef union {
byte Byte;
struct {
byte BK1V0 :1; /* Second Address Breakpoint Expansion Address Value Bit 0 */
byte BK1V1 :1; /* Second Address Breakpoint Expansion Address Value Bit 1 */
byte BK1V2 :1; /* Second Address Breakpoint Expansion Address Value Bit 2 */
byte BK1V3 :1; /* Second Address Breakpoint Expansion Address Value Bit 3 */
byte BK1V4 :1; /* Second Address Breakpoint Expansion Address Value Bit 4 */
byte BK1V5 :1; /* Second Address Breakpoint Expansion Address Value Bit 5 */
byte :1;
byte :1;
} Bits;
struct {
byte grpBK1V :6;
byte :1;
byte :1;
} MergedBits;
} BKP1XSTR;
extern volatile BKP1XSTR _BKP1X @(REG_BASE + 0x0000002D);
#define BKP1X _BKP1X.Byte
#define BKP1X_BK1V0 _BKP1X.Bits.BK1V0
#define BKP1X_BK1V1 _BKP1X.Bits.BK1V1
#define BKP1X_BK1V2 _BKP1X.Bits.BK1V2
#define BKP1X_BK1V3 _BKP1X.Bits.BK1V3
#define BKP1X_BK1V4 _BKP1X.Bits.BK1V4
#define BKP1X_BK1V5 _BKP1X.Bits.BK1V5
#define BKP1X_BK1V _BKP1X.MergedBits.grpBK1V
#define BKP1X_BK1V0_MASK 1
#define BKP1X_BK1V1_MASK 2
#define BKP1X_BK1V2_MASK 4
#define BKP1X_BK1V3_MASK 8
#define BKP1X_BK1V4_MASK 16
#define BKP1X_BK1V5_MASK 32
#define BKP1X_BK1V_MASK 63
#define BKP1X_BK1V_BITNUM 0
/*** BKP1H - Data (Second Address) High Byte Breakpoint Register; 0x0000002E ***/
typedef union {
byte Byte;
struct {
byte BIT8 :1; /* Data (Second Address) Breakpoint Register Bit 8 */
byte BIT9 :1; /* Data (Second Address) Breakpoint Register Bit 9 */
byte BIT10 :1; /* Data (Second Address) Breakpoint Register Bit 10 */
byte BIT11 :1; /* Data (Second Address) Breakpoint Register Bit 11 */
byte BIT12 :1; /* Data (Second Address) Breakpoint Register Bit 12 */
byte BIT13 :1; /* Data (Second Address) Breakpoint Register Bit 13 */
byte BIT14 :1; /* Data (Second Address) Breakpoint Register Bit 14 */
byte BIT15 :1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -