Intel 386 User Manual page 388

Embedded microprocessor
Table of Contents

Advertisement

}
/*****************************************************************************
DisableDMAHWRequests:
Description:
Disables channel hardware requests for the given DMA channel.
The channel, however, can still receive software requests.
Parameters:
nChannel
Returns:
Error Code
Assumptions:
None
Syntax:
int error_code;
error_code = DisableDMAHWRequests(DMA_Channel0);
Real/Protected Mode:
No changes required
*****************************************************************************/
int DisableDMAHWRequests(int nChannel)
{
WORD regDMAMSK = 0;
//Check input
if (
(nChannel != DMA_Channel0) && (nChannel != DMA_Channel1) )
return ERR_BADINPUT;
regDMAMSK = nChannel;
regDMAMSK &= 0x04;
_SetEXRegByte(DMAMSK, regDMAMSK);
return ERR_NONE;
}
/*****************************************************************************
SetDMAReqIOAddr:
/*
--channel to mask hardware requests
given channel*/
//Set regDMAMSK[CS] to channel
//Set regDMAMSK[HRM]
//Set hw request mask for given
//channel
DMA CONTROLLER
12-53

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents