📄 io_map.h
字号:
#define SIP2_TPM1CH_MASK 0x06
#define SIP2_TPM1CH_BITNUM 0x01
#define SIP2_TPM2CH_MASK 0x60
#define SIP2_TPM2CH_BITNUM 0x05
/*** KBISC - KBI Status and Control Register; 0x0000001C ***/
typedef union {
byte Byte;
struct {
byte KBMOD :1; /* Keyboard Detection Mode */
byte KBIE :1; /* Keyboard Interrupt Enable */
byte KBACK :1; /* Keyboard Interrupt Acknowledge */
byte KBF :1; /* Keyboard Interrupt Flag */
byte :1;
byte :1;
byte :1;
byte :1;
} Bits;
} KBISCSTR;
extern volatile KBISCSTR _KBISC @0x0000001C;
#define KBISC _KBISC.Byte
#define KBISC_KBMOD _KBISC.Bits.KBMOD
#define KBISC_KBIE _KBISC.Bits.KBIE
#define KBISC_KBACK _KBISC.Bits.KBACK
#define KBISC_KBF _KBISC.Bits.KBF
#define KBISC_KBMOD_MASK 0x01
#define KBISC_KBIE_MASK 0x02
#define KBISC_KBACK_MASK 0x04
#define KBISC_KBF_MASK 0x08
/*** KBIPE - KBI Pin Enable Register; 0x0000001D ***/
typedef union {
byte Byte;
struct {
byte KBIPE0 :1; /* Keyboard Pin Enable for KBI Port Bit 0 */
byte KBIPE1 :1; /* Keyboard Pin Enable for KBI Port Bit 1 */
byte KBIPE2 :1; /* Keyboard Pin Enable for KBI Port Bit 2 */
byte KBIPE3 :1; /* Keyboard Pin Enable for KBI Port Bit 3 */
byte KBIPE4 :1; /* Keyboard Pin Enable for KBI Port Bit 4 */
byte KBIPE5 :1; /* Keyboard Pin Enable for KBI Port Bit 5 */
byte KBIPE6 :1; /* Keyboard Pin Enable for KBI Port Bit 6 */
byte KBIPE7 :1; /* Keyboard Pin Enable for KBI Port Bit 7 */
} Bits;
} KBIPESTR;
extern volatile KBIPESTR _KBIPE @0x0000001D;
#define KBIPE _KBIPE.Byte
#define KBIPE_KBIPE0 _KBIPE.Bits.KBIPE0
#define KBIPE_KBIPE1 _KBIPE.Bits.KBIPE1
#define KBIPE_KBIPE2 _KBIPE.Bits.KBIPE2
#define KBIPE_KBIPE3 _KBIPE.Bits.KBIPE3
#define KBIPE_KBIPE4 _KBIPE.Bits.KBIPE4
#define KBIPE_KBIPE5 _KBIPE.Bits.KBIPE5
#define KBIPE_KBIPE6 _KBIPE.Bits.KBIPE6
#define KBIPE_KBIPE7 _KBIPE.Bits.KBIPE7
#define KBIPE_KBIPE0_MASK 0x01
#define KBIPE_KBIPE1_MASK 0x02
#define KBIPE_KBIPE2_MASK 0x04
#define KBIPE_KBIPE3_MASK 0x08
#define KBIPE_KBIPE4_MASK 0x10
#define KBIPE_KBIPE5_MASK 0x20
#define KBIPE_KBIPE6_MASK 0x40
#define KBIPE_KBIPE7_MASK 0x80
/*** KBIES - KBI Edge Select Register; 0x0000001E ***/
typedef union {
byte Byte;
struct {
byte KBEDG0 :1; /* Keyboard Edge Select Bit 0 */
byte KBEDG1 :1; /* Keyboard Edge Select Bit 1 */
byte KBEDG2 :1; /* Keyboard Edge Select Bit 2 */
byte KBEDG3 :1; /* Keyboard Edge Select Bit 3 */
byte KBEDG4 :1; /* Keyboard Edge Select Bit 4 */
byte KBEDG5 :1; /* Keyboard Edge Select Bit 5 */
byte KBEDG6 :1; /* Keyboard Edge Select Bit 6 */
byte KBEDG7 :1; /* Keyboard Edge Select Bit 7 */
} Bits;
} KBIESSTR;
extern volatile KBIESSTR _KBIES @0x0000001E;
#define KBIES _KBIES.Byte
#define KBIES_KBEDG0 _KBIES.Bits.KBEDG0
#define KBIES_KBEDG1 _KBIES.Bits.KBEDG1
#define KBIES_KBEDG2 _KBIES.Bits.KBEDG2
#define KBIES_KBEDG3 _KBIES.Bits.KBEDG3
#define KBIES_KBEDG4 _KBIES.Bits.KBEDG4
#define KBIES_KBEDG5 _KBIES.Bits.KBEDG5
#define KBIES_KBEDG6 _KBIES.Bits.KBEDG6
#define KBIES_KBEDG7 _KBIES.Bits.KBEDG7
#define KBIES_KBEDG0_MASK 0x01
#define KBIES_KBEDG1_MASK 0x02
#define KBIES_KBEDG2_MASK 0x04
#define KBIES_KBEDG3_MASK 0x08
#define KBIES_KBEDG4_MASK 0x10
#define KBIES_KBEDG5_MASK 0x20
#define KBIES_KBEDG6_MASK 0x40
#define KBIES_KBEDG7_MASK 0x80
/*** PAGESEL - Page Select Register; 0x0000001F ***/
typedef union {
byte Byte;
struct {
byte AD6 :1; /* Page Selector Bit 6 */
byte AD7 :1; /* Page Selector Bit 7 */
byte AD8 :1; /* Page Selector Bit 8 */
byte AD9 :1; /* Page Selector Bit 9 */
byte AD10 :1; /* Page Selector Bit 10 */
byte AD11 :1; /* Page Selector Bit 11 */
byte AD12 :1; /* Page Selector Bit 12 */
byte AD13 :1; /* Page Selector Bit 13 */
} Bits;
} PAGESELSTR;
extern volatile PAGESELSTR _PAGESEL @0x0000001F;
#define PAGESEL _PAGESEL.Byte
#define PAGESEL_AD6 _PAGESEL.Bits.AD6
#define PAGESEL_AD7 _PAGESEL.Bits.AD7
#define PAGESEL_AD8 _PAGESEL.Bits.AD8
#define PAGESEL_AD9 _PAGESEL.Bits.AD9
#define PAGESEL_AD10 _PAGESEL.Bits.AD10
#define PAGESEL_AD11 _PAGESEL.Bits.AD11
#define PAGESEL_AD12 _PAGESEL.Bits.AD12
#define PAGESEL_AD13 _PAGESEL.Bits.AD13
#define PAGESEL_AD6_MASK 0x01
#define PAGESEL_AD7_MASK 0x02
#define PAGESEL_AD8_MASK 0x04
#define PAGESEL_AD9_MASK 0x08
#define PAGESEL_AD10_MASK 0x10
#define PAGESEL_AD11_MASK 0x20
#define PAGESEL_AD12_MASK 0x40
#define PAGESEL_AD13_MASK 0x80
/*** LCDWF0 - LCD Waveform Register 0; 0x00000020 ***/
typedef union {
byte Byte;
struct {
byte BPALCD0 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPBLCD0 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPCLCD0 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPDLCD0 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPELCD0 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPFLCD0 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPGLCD0 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPHLCD0 :1; /* Segment on/off Frontplane/Backplane Operation */
} Bits;
} LCDWF0STR;
extern volatile LCDWF0STR _LCDWF0 @0x00000020;
#define LCDWF0 _LCDWF0.Byte
#define LCDWF0_BPALCD0 _LCDWF0.Bits.BPALCD0
#define LCDWF0_BPBLCD0 _LCDWF0.Bits.BPBLCD0
#define LCDWF0_BPCLCD0 _LCDWF0.Bits.BPCLCD0
#define LCDWF0_BPDLCD0 _LCDWF0.Bits.BPDLCD0
#define LCDWF0_BPELCD0 _LCDWF0.Bits.BPELCD0
#define LCDWF0_BPFLCD0 _LCDWF0.Bits.BPFLCD0
#define LCDWF0_BPGLCD0 _LCDWF0.Bits.BPGLCD0
#define LCDWF0_BPHLCD0 _LCDWF0.Bits.BPHLCD0
/* LCDWF_ARR: Access 22 LCDWFx registers in an array */
#define LCDWF_ARR ((volatile byte *__paged) &LCDWF0)
#define LCDWF0_BPALCD0_MASK 0x01
#define LCDWF0_BPBLCD0_MASK 0x02
#define LCDWF0_BPCLCD0_MASK 0x04
#define LCDWF0_BPDLCD0_MASK 0x08
#define LCDWF0_BPELCD0_MASK 0x10
#define LCDWF0_BPFLCD0_MASK 0x20
#define LCDWF0_BPGLCD0_MASK 0x40
#define LCDWF0_BPHLCD0_MASK 0x80
/*** LCDWF1 - LCD Waveform Register 1; 0x00000021 ***/
typedef union {
byte Byte;
struct {
byte BPALCD1 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPBLCD1 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPCLCD1 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPDLCD1 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPELCD1 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPFLCD1 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPGLCD1 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPHLCD1 :1; /* Segment on/off Frontplane/Backplane Operation */
} Bits;
} LCDWF1STR;
extern volatile LCDWF1STR _LCDWF1 @0x00000021;
#define LCDWF1 _LCDWF1.Byte
#define LCDWF1_BPALCD1 _LCDWF1.Bits.BPALCD1
#define LCDWF1_BPBLCD1 _LCDWF1.Bits.BPBLCD1
#define LCDWF1_BPCLCD1 _LCDWF1.Bits.BPCLCD1
#define LCDWF1_BPDLCD1 _LCDWF1.Bits.BPDLCD1
#define LCDWF1_BPELCD1 _LCDWF1.Bits.BPELCD1
#define LCDWF1_BPFLCD1 _LCDWF1.Bits.BPFLCD1
#define LCDWF1_BPGLCD1 _LCDWF1.Bits.BPGLCD1
#define LCDWF1_BPHLCD1 _LCDWF1.Bits.BPHLCD1
#define LCDWF1_BPALCD1_MASK 0x01
#define LCDWF1_BPBLCD1_MASK 0x02
#define LCDWF1_BPCLCD1_MASK 0x04
#define LCDWF1_BPDLCD1_MASK 0x08
#define LCDWF1_BPELCD1_MASK 0x10
#define LCDWF1_BPFLCD1_MASK 0x20
#define LCDWF1_BPGLCD1_MASK 0x40
#define LCDWF1_BPHLCD1_MASK 0x80
/*** LCDWF2 - LCD Waveform Register 2; 0x00000022 ***/
typedef union {
byte Byte;
struct {
byte BPALCD2 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPBLCD2 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPCLCD2 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPDLCD2 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPELCD2 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPFLCD2 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPGLCD2 :1; /* Segment on/off Frontplane/Backplane Operation */
byte BPHLCD2 :1; /* Segment on/off Frontplane/Backplane Operation */
} Bits;
} LCDWF2STR;
extern volatile LCDWF2STR _LCDWF2 @0x00000022;
#define LCDWF2 _LCDWF2.Byte
#define LCDWF2_BPALCD2 _LCDWF2.Bits.BPALCD2
#define LCDWF2_BPBLCD2 _LCDWF2.Bits.BPBLCD2
#define LCDWF2_BPCLCD2 _LCDWF2.Bits.BPCLCD2
#define LCDWF2_BPDLCD2 _LCDWF2.Bits.BPDLCD2
#define LCDWF2_BPELCD2 _LCDWF2.Bits.BPELCD2
#define LCDWF2_BPFLCD2 _LCDWF2.Bits.BPFLCD2
#define LCDWF2_BPGLCD2 _LCDWF2.Bits.BPGLCD2
#define LCDWF2_BPHLCD2 _LCDWF2.Bits.BPHLCD2
#define LCDWF2_BPALCD2_MASK 0x01
#define LCDWF2_BPBLCD2_MASK 0x02
#define LCDWF2_BPCLCD2_MASK 0x04
#define LCDWF2_BPDLCD2_MASK 0x08
#define LCDWF2_BPELCD2_MASK 0x10
#define LCDWF2_BPFLCD2_MASK 0x20
#define LCDWF2_BPGLCD2_MASK 0x40
#define LCDWF2_BPHLCD2_MASK 0x80
/*** LCDWF3 - LCD Waveform Register 3; 0x00000023 ***/
typedef union {
byte Byte;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -