Download Stellaris Peripheral Driver Library User's Guide

Transcript
uDMA Controller
Prototype:
void
uDMAChannelAssign(unsigned long ulMapping)
Parameters:
ulMapping is a macro specifying the peripheral assignment for a channel.
Description:
This function assigns a peripheral mapping to a uDMA channel. It is used to select which
peripheral is used for a uDMA channel. The parameter ulMapping should be one of the macros
named UDMA_CHn_tttt from the header file udma.h. For example, to assign uDMA channel
0 to the UART2 RX channel, the parameter should be the macro UDMA_CH0_UART2RX.
Please consult the Stellaris data sheet for a table showing all the possible peripheral assignments for the uDMA channels for a particular device.
Note:
This function is only available on devices that have the DMA Channel Map Select registers
(DMACHMAP0-3). Please consult the data sheet for your part.
Returns:
None.
29.2.3.2 uDMAChannelAttributeDisable
Disables attributes of a uDMA channel.
Prototype:
void
uDMAChannelAttributeDisable(unsigned long ulChannelNum,
unsigned long ulAttr)
Parameters:
ulChannelNum is the channel to configure.
ulAttr is a combination of attributes for the channel.
Description:
This function is used to disable attributes of a uDMA channel.
The ulAttr parameter is the logical OR of any of the following:
UDMA_ATTR_USEBURST is used to restrict transfers to use only burst mode.
UDMA_ATTR_ALTSELECT is used to select the alternate control structure for this channel.
UDMA_ATTR_HIGH_PRIORITY is used to set this channel to high priority.
UDMA_ATTR_REQMASK is used to mask the hardware request signal from the peripheral for this channel.
Returns:
None.
September 05, 2012
443