📄 m8260ioport.h
字号:
/* m8260IOPort.h - Motorola MPC8260 I/O Port header file */
/* Copyright 2002-2005 Founder Communications, Inc. */
/* Copyright 1984-1999 Wind River Systems, Inc. */
/*
modification history
--------------------
01b,24jan05,fhc add interface definitions
01a,12sep99,ms_ created from m8260Sio.h, 01b
*/
/*
* This file contains constants and routins for the I/O Ports in the
* Motorola MPC8260 PowerQUICC II integrated Communications Processor
*/
#ifndef __INCm8260IOPorth
#define __INCm8260IOPorth
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ASMLANGUAGE
/* I/O Port Configuration Registers */
/* Port A registers */
#define M8260_IOP_PADIR(base) ((VINT32 *) ((base) + 0x010D00)) /* direction */
#define M8260_IOP_PAPAR(base) ((VINT32 *) ((base) + 0x010D04)) /* assignment */
#define M8260_IOP_PASO(base) ((VINT32 *) ((base) + 0x010D08)) /* option */
#define M8260_IOP_PAODR(base) ((VINT32 *) ((base) + 0x010D0C)) /* open drain */
#define M8260_IOP_PADAT(base) ((VINT32 *) ((base) + 0x010D10)) /* data */
/* Port B registers */
#define M8260_IOP_PBDIR(base) ((VINT32 *) ((base) + 0x010D20))
#define M8260_IOP_PBPAR(base) ((VINT32 *) ((base) + 0x010D24))
#define M8260_IOP_PBSO(base) ((VINT32 *) ((base) + 0x010D28))
#define M8260_IOP_PBODR(base) ((VINT32 *) ((base) + 0x010D2C))
#define M8260_IOP_PBDAT(base) ((VINT32 *) ((base) + 0x010D30))
/* Port C registers */
#define M8260_IOP_PCDIR(base) ((VINT32 *) ((base) + 0x010D40))
#define M8260_IOP_PCPAR(base) ((VINT32 *) ((base) + 0x010D44))
#define M8260_IOP_PCSO(base) ((VINT32 *) ((base) + 0x010D48))
#define M8260_IOP_PCODR(base) ((VINT32 *) ((base) + 0x010D4C))
#define M8260_IOP_PCDAT(base) ((VINT32 *) ((base) + 0x010D50))
/* Port D registers */
#define M8260_IOP_PDDIR(base) ((VINT32 *) ((base) + 0x010D60))
#define M8260_IOP_PDPAR(base) ((VINT32 *) ((base) + 0x010D64))
#define M8260_IOP_PDSO(base) ((VINT32 *) ((base) + 0x010D68))
#define M8260_IOP_PDODR(base) ((VINT32 *) ((base) + 0x010D6C))
#define M8260_IOP_PDDAT(base) ((VINT32 *) ((base) + 0x010D70))
#endif /* _ASMLANGUAGE */
/* routines */
extern void m8260IOPortInit(void);
extern void m8260IOPortReset(void);
extern int m8260IOPortRead(int port, int pin);
extern void m8260IOPortWrite(int port, int pin, int level);
extern STATUS m8260IOPortIntConnect(VOIDFUNCPTR *vector, VOIDFUNCPTR routine, int parameter);
extern void m8260IOPortRegShow(int port);
#ifdef __cplusplus
}
#endif
#endif /* __INCm8260IOPorth */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -