#define outpw(port,value) *((volatile unsigned int *)(port))=value
#define inpw(port) (*((volatile unsigned int *)(port)))
#define outpb(port,value) *((volatile unsigned char *)(port))=value
#define inpb(port) (*((volatile unsigned char *)(port)))
#define outps(port,value) *((volatile unsigned short *)(port))=value
#define inps(port) (*((volatile unsigned short *)(port)))
#define outp32(port,value) *((volatile unsigned int *)(port))=value
#define inp32(port) (*((volatile unsigned int *)(port)))
#define outp8(port,value) *((volatile unsigned char *)(port))=value
#define inp8(port) (*((volatile unsigned char *)(port)))
#define outp16(port,value) *((volatile unsigned short *)(port))=value
#define inp16(port) (*((volatile unsigned short *)(port)))
搞不懂这是什么东东
|