Peripheral DMA
UG0331 User Guide Revision 15.0
273
4.
The PDMA signals in top level instance are shown in the following figure.
Figure 135 •
PDMA Signals
5.
Generate the component by clicking
Generate Component
or by selecting
SmartDesign>Generate Component
. For more information on generation of the component, refer
to the
. The firmware driver folder and SoftConsole workspace is included
into the project. Click the highlighted
Configure firmware
button as shown in the following figure to
find the PDMA drivers.
Figure 136 •
PDMA Driver User Guide
6.
Click
Generate Bitstream
under
Program Design
to complete *.fdb file generation. Double-click
Export Firmware
under
Handoff Design
for
Firmware Development
in the Libero SoC design flow
window to generate the SoftConsole Firmware Project. The SoftConsole folder contains the
mss_pdma firmware driver. The firmware driver, mss_pdma (mss_pdma.c and mss_pdma.h) which
provides a set of functions for controlling the MSS PDMA transfers, can also be downloaded from
the Microsemi firmware catalog. the following table lists the APIs for PDMA. For more information on
the APIs, refer to the
Smartfusion2_MSS_PDMA_Driver_UG
as shown in the preceding figure.
Table 176 •
MSS PDMA APIs
Category
API
Description and Usage
Initialization
PDMA_init()
Initializes PDMA
Configuration
PDMA_configure()
Channel priority
Transfer size
Source and/or destination address increment
Source or destination of DMA transfer
Insert wait states
Selects the peripheral and direction
Selects the transfer type
PDMA_pause()
Pauses PDMA transfer
PDMA_resume()
Resumes PDMA transfer
PDMA_abort()
Aborts the PDMA transfer