📄 c33std.h
字号:
volatile unsigned char Padding5[0x40];
/* Reserved [0x260] */
volatile unsigned char Padding1[0xa0];
} T_IO1;
/**** End of struct *********************************************************/
/****************************************************************************
* Extended I/O Register (Misc) [0x000-0xfff] *
****************************************************************************/
typedef struct{
/* Infomation Register (Info) [0x000] */
struct{
union{
volatile unsigned char byte;
} CoreId;
union{
volatile unsigned char byte;
} ProductId;
union{
volatile unsigned char byte;
} ModelId;
union{
volatile unsigned char byte;
} Virsion;
volatile unsigned char Padding[0x1c];
} Info;
/* Extended I/O Port (Port) [0x020] */
struct{
union{
volatile unsigned char byte;
struct{
volatile unsigned char P40 : 1;
volatile unsigned char P41 : 1;
volatile unsigned char P42 : 1;
volatile unsigned char P43 : 1;
volatile unsigned char P44 : 1;
volatile unsigned char P45 : 1;
volatile unsigned char P46 : 1;
volatile unsigned char P47 : 1;
} bit;
} P4xDat;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P40 : 1;
volatile unsigned char P41 : 1;
volatile unsigned char P42 : 1;
volatile unsigned char P43 : 1;
volatile unsigned char P44 : 1;
volatile unsigned char P45 : 1;
volatile unsigned char P46 : 1;
volatile unsigned char P47 : 1;
} bit;
} P4xCtl;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P50 : 1;
volatile unsigned char P51 : 1;
volatile unsigned char P52 : 1;
volatile unsigned char P53 : 1;
volatile unsigned char P54 : 1;
volatile unsigned char P55 : 1;
volatile unsigned char P56 : 1;
volatile unsigned char P57 : 1;
} bit;
} P5xDat;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P50 : 1;
volatile unsigned char P51 : 1;
volatile unsigned char P52 : 1;
volatile unsigned char P53 : 1;
volatile unsigned char P54 : 1;
volatile unsigned char P55 : 1;
volatile unsigned char P56 : 1;
volatile unsigned char P57 : 1;
} bit;
} P5xCtl;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P60 : 1;
volatile unsigned char P61 : 1;
volatile unsigned char P62 : 1;
volatile unsigned char P63 : 1;
volatile unsigned char P64 : 1;
volatile unsigned char P65 : 1;
volatile unsigned char P66 : 1;
volatile unsigned char P67 : 1;
} bit;
} P6xDat;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P60 : 1;
volatile unsigned char P61 : 1;
volatile unsigned char P62 : 1;
volatile unsigned char P63 : 1;
volatile unsigned char P64 : 1;
volatile unsigned char P65 : 1;
volatile unsigned char P66 : 1;
volatile unsigned char P67 : 1;
} bit;
} P6xCtl;
volatile unsigned char Padding0[0x1a];
union{
volatile unsigned char byte;
struct{
volatile unsigned char P00 : 2;
volatile unsigned char P01 : 2;
volatile unsigned char P02 : 2;
volatile unsigned char P03 : 2;
} bit;
} P0xSel0;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P04 : 2;
volatile unsigned char P05 : 2;
volatile unsigned char P06 : 2;
volatile unsigned char P07 : 2;
} bit;
} P0xSel1;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P10 : 2;
volatile unsigned char P11 : 2;
volatile unsigned char P12 : 2;
volatile unsigned char P13 : 2;
} bit;
} P1xSel0;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P14 : 2;
volatile unsigned char P15 : 2;
volatile unsigned char P16 : 2;
volatile unsigned char P17 : 2;
} bit;
} P1xSel1;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P20 : 2;
volatile unsigned char P21 : 2;
volatile unsigned char P22 : 2;
volatile unsigned char P23 : 2;
} bit;
} P2xSel0;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P24 : 2;
volatile unsigned char P25 : 2;
volatile unsigned char P26 : 2;
volatile unsigned char P27 : 2;
} bit;
} P2xSel1;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P30 : 2;
volatile unsigned char P31 : 2;
volatile unsigned char P32 : 2;
volatile unsigned char P33 : 2;
} bit;
} P3xSel0;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P34 : 2;
volatile unsigned char P35 : 2;
volatile unsigned char P36 : 2;
volatile unsigned char P37 : 2;
} bit;
} P3xSel1;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P40 : 2;
volatile unsigned char P41 : 2;
volatile unsigned char P42 : 2;
volatile unsigned char P43 : 2;
} bit;
} P4xSel0;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P44 : 2;
volatile unsigned char P45 : 2;
volatile unsigned char P46 : 2;
volatile unsigned char P47 : 2;
} bit;
} P4xSel1;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P50 : 2;
volatile unsigned char P51 : 2;
volatile unsigned char P52 : 2;
volatile unsigned char P53 : 2;
} bit;
} P5xSel0;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P54 : 2;
volatile unsigned char P55 : 2;
volatile unsigned char P56 : 2;
volatile unsigned char P57 : 2;
} bit;
} P5xSel1;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P60 : 2;
volatile unsigned char P61 : 2;
volatile unsigned char P62 : 2;
volatile unsigned char P63 : 2;
} bit;
} P6xSel0;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P64 : 2;
volatile unsigned char P65 : 2;
volatile unsigned char P66 : 2;
volatile unsigned char P67 : 2;
} bit;
} P6xSel1;
volatile unsigned char Padding[0xb2];
} Port;
/* SmartMedia Contoroler (Sm) [0x100] */
struct{
union{
volatile unsigned char byte;
struct{
volatile unsigned char CeSel : 2;
volatile unsigned char Rsv : 6;
} bit;
} Ctl;
volatile unsigned char Padding1[0xff];
} Sm;
/* FIFO Serial I/F (Fsio) [0x200] */
struct{
union{
volatile unsigned char byte;
} TxD;
union{
volatile unsigned char byte;
} RxD;
union{
volatile unsigned char byte;
struct{
volatile unsigned char NotEmpty : 1;
volatile unsigned char NotFull : 1;
volatile unsigned char OverflowErr : 1;
volatile unsigned char ParityErr : 1;
volatile unsigned char FlamingErr : 1;
volatile unsigned char TxBusy : 1;
volatile unsigned char DatNum : 2;
} bit;
} Stat;
union{
volatile unsigned char byte;
struct{
volatile unsigned char FsioMode : 2;
volatile unsigned char ClkSel : 1;
volatile unsigned char StopBit : 1;
volatile unsigned char ParityMode : 1;
volatile unsigned char ParityEna : 1;
volatile unsigned char RxEna : 1;
volatile unsigned char TxEna : 1;
} bit;
} Ctl;
union{
volatile unsigned char byte;
struct{
volatile unsigned char Mode : 2;
volatile unsigned char RxInv : 1;
volatile unsigned char TxInv : 1;
volatile unsigned char ClkDiv : 1;
volatile unsigned char FifoLv : 2;
volatile unsigned char SrdyHiMask : 1;
} bit;
} IrDA;
union{
volatile unsigned char byte;
struct{
volatile unsigned char Run : 1;
volatile unsigned char Rsv : 7;
} bit;
} Tim;
union{
volatile unsigned char byte;
} TimRldL;
union{
volatile unsigned char byte;
} TimRldH;
union{
volatile unsigned char byte;
} TimCntL;
union{
volatile unsigned char byte;
} TimCntH;
volatile unsigned char Padding[0x6];
} Fsio0;
/* Reserved [0x210] */
volatile unsigned char Padding0[0xdf0];
/* Extended Bus Controler (Bcu) [0xf00] */
struct{
union{
volatile unsigned char byte;
struct{
volatile unsigned char Rw : 1;
volatile unsigned char Adr : 1;
volatile unsigned char Ce : 1;
volatile unsigned char Cas : 1;
volatile unsigned char Rsv : 4;
} bit;
} BusPup;
union{
volatile unsigned char byte;
struct{
volatile unsigned char Rw : 1;
volatile unsigned char Adr : 1;
volatile unsigned char Ce : 1;
volatile unsigned char Cas : 1;
volatile unsigned char Dat : 1;
volatile unsigned char Rsv : 3;
} bit;
} BusLow;
union{
volatile unsigned char byte;
struct{
volatile unsigned char K50_54 : 1;
volatile unsigned char K60_63 : 1;
volatile unsigned char K64_67 : 1;
volatile unsigned char Rsv : 5;
} bit;
} KeyPup;
union{
volatile unsigned char byte;
} KeyLow;
union{
volatile unsigned char byte;
struct{
volatile unsigned char P00_07 : 1;
volatile unsigned char P10_16 : 1;
volatile unsigned char P20_27 : 1;
volatile unsigned char P30_35 : 1;
volatile unsigned char Rsv0 : 2;
volatile unsigned char P60_63 : 1;
volatile unsigned char Rsv1 : 1;
} bit;
} PortPup;
union{
volatile unsigned char byte;
} PortLow;
volatile unsigned char Padding0[0xa];
union{
volatile unsigned char byte;
struct{
volatile unsigned char UsbWait : 3;
volatile unsigned char Rsv : 1;
volatile unsigned char UsbClkEna : 1;
volatile unsigned char UsbSnzEna : 1;
volatile unsigned char Osc5On : 1;
volatile unsigned char LcdClkEna : 1;
} bit;
} McrCtl;
volatile unsigned char Padding1[0xf];
} Bcu;
/* Reserved [0xf30] */
volatile unsigned char Padding1[0xd0];
} T_MISC;
/**** End of struct *********************************************************/
#endif _C33STD_H_
/**** End of file ***********************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -