Memory to Memory DMA demo from CMSIS example. This demo execute 1000 times of 32 word memory to memory DMA (copy), and also measures number of dummy loop execution during DMA cylcles. Line 56 of "DMA_M2M.c" can change DMA source. where; 1)static : source is SRAM 2)const : source is Flash ROM

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

lpc17xx_gpdma.h File Reference

lpc17xx_gpdma.h File Reference

Contains all macro definitions and function prototypes support for GPDMA firmware library on LPC17xx. More...

Go to the source code of this file.

Data Structures

struct  GPDMA_Channel_CFG_Type
 GPDMA Channel configuration structure type definition. More...
struct  GPDMA_LLI_Type
 GPDMA Linker List Item structure type definition. More...

Enumerations

enum  GPDMA_Status_Type {
  GPDMA_STAT_INT, GPDMA_STAT_INTTC, GPDMA_STAT_INTERR, GPDMA_STAT_RAWINTTC,
  GPDMA_STAT_RAWINTERR, GPDMA_STAT_ENABLED_CH
}
 

GPDMA Status enumeration.

More...
enum  GPDMA_StateClear_Type { GPDMA_STATCLR_INTTC, GPDMA_STATCLR_INTERR }
 

GPDMA Interrupt clear status enumeration.

More...

Functions

void GPDMA_Init (void)
 Initialize GPDMA controller.
Status GPDMA_Setup (GPDMA_Channel_CFG_Type *GPDMAChannelConfig)
 Setup GPDMA channel peripheral according to the specified parameters in the GPDMAChannelConfig.
IntStatus GPDMA_IntGetStatus (GPDMA_Status_Type type, uint8_t channel)
 Check if corresponding channel does have an active interrupt request or not.
void GPDMA_ClearIntPending (GPDMA_StateClear_Type type, uint8_t channel)
 Clear one or more interrupt requests on DMA channels.
void GPDMA_ChannelCmd (uint8_t channelNum, FunctionalState NewState)
 Enable/Disable DMA channel.

Detailed Description

Contains all macro definitions and function prototypes support for GPDMA firmware library on LPC17xx.

Version:
2.0
Date:
21. May. 2010
Author:
NXP MCU SW Application Team

Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Definition in file lpc17xx_gpdma.h.