Intel 386 User Manual page 387

Embedded microprocessor
Table of Contents

Advertisement

Intel386™ EX EMBEDDED MICROPROCESSOR USER'S MANUAL
InitDMA1ForSSIXmitterToMem
DMAInterrupt
See Appendix C for included header files.
#include "80386ex.h"
#include "ev386ex.h"
#include "dma.h"
#include <DOS.h>
#pragma warning(disable:4704)
/*****************************************************************************
EnableDMAHWRequests:
int EnableDMAHWRequests(int nChannel)
Description:
Enables channel hardware requests for the given DMA channel.
Parameters:
nChannel
Returns:
Error Code
Assumptions:
None
Syntax:
int error_code;
error_code = EnableDMAHWRequests (DMA_Channel0);
Real/Protected Mode:
No changes required
*****************************************************************************/
int EnableDMAHWRequests(int nChannel)
{
BYTE regDMAMSK = 0; /*Clear regDMAMSK[HRM]*/
/*Check input*/
if (
(nChannel != DMA_Channel0) && (nChannel != DMA_Channel1) )
return ERR_BADINPUT;
regDMAMSK = nChannel;
_SetEXRegByte(DMAMSK, regDMAMSK);
12-52
Initializes DMA channel1 for transfers between the
SIO transmitter port and memory
Interrupt Service Routine for DMA generated
interrupts
/*Disable optimization warning*/
--channel to enable hardware requests
/*Set regDMAMSK[CS] to channel*/
/*Clear hardware request mask for*/

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents