Intel386™ EX EMBEDDED MICROPROCESSOR USER’S MANUAL
C-10
typedef enum
{
DMA_Channel0 = 0,
DMA_Channel1 = 1
} DMAChannelEnum;
typedef enum
{
ERR_NONE = 0,
ERR_BADINPUT = -1
} ERREnum;
/* DMA Function Definitions */
int SetDMAReqIOAddr(int nChannel, WORD wIO);
int SetDMATargMemAddr(int nChannel, void *ptMemory);
int SetDMAXferCount(int nChannel, DWORD lCount);
int EnableDMAHWRequests(int nChannel);
int DisableDMAHWRequests(int nChannel);
void InitDMA(void);
void InitDMA1ForSerialXmitter(void);
/*************** Port I/O configuration defines **************/
/* Port 1 configuration defines */
#define DCD0 0x1
#define RTS0 0x2
#define DTR0 0x4
#define DSR0 0x8
#define RI0 0X10
#define LOCK 0x20
#define HOLD 0X40
#define HOLDACK 0X80
/* Port 2 configuration defines */
#define CS0 0x1
#define CS1 0x2
#define CS2 0x4
#define CS3 0x8
#define CS4 0X10
#define RXD0 0x20
#define TXD0 0X40
#define CTS0 0X80
/* Port 3 configuration defines */
#define TMROUT0 0x1
#define TMROUT1 0x2
#define INT0 0x4
#define INT1 0x8
#define INT2 0x10
#define INT3 0x20
#define PWRDWN 0x40
#define COMCLK 0x80
/* Port Direction defines */
#define P0_IN 0x1