NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

GPDMA_Public_Functions

GPDMA_Public_Functions
[GPDMA]

Functions

void GPDMA_Init (void)
 Initialize GPDMA controller.
Status GPDMA_Setup (GPDMA_Channel_CFG_Type *GPDMAChannelConfig, fnGPDMACbs_Type *pfnGPDMACbs)
 Setup GPDMA channel peripheral according to the specified parameters in the GPDMAChannelConfig.
void GPDMA_ChannelCmd (uint8_t channelNum, FunctionalState NewState)
 Enable/Disable DMA channel.
void GPDMA_IntHandler (void)
 Standard GPDMA interrupt handler, this function will check all interrupt status of GPDMA channels, then execute the call back function id they're already installed.

Function Documentation

void GPDMA_ChannelCmd ( uint8_t  channelNum,
FunctionalState  NewState 
)

Enable/Disable DMA channel.

Parameters:
[in]channelNumGPDMA channel, should be in range from 0 to 7
[in]NewStateNew State of this command, should be:

  • ENABLE.
  • DISABLE.
Returns:
None

Definition at line 373 of file lpc17xx_gpdma.c.

void GPDMA_Init ( void   )

Initialize GPDMA controller.

Parameters:
None
Returns:
None

Definition at line 205 of file lpc17xx_gpdma.c.

void GPDMA_IntHandler ( void   )

Standard GPDMA interrupt handler, this function will check all interrupt status of GPDMA channels, then execute the call back function id they're already installed.

Parameters:
[in]None
Returns:
None

Definition at line 394 of file lpc17xx_gpdma.c.

Status GPDMA_Setup ( GPDMA_Channel_CFG_Type GPDMAChannelConfig,
fnGPDMACbs_Type pfnGPDMACbs 
)

Setup GPDMA channel peripheral according to the specified parameters in the GPDMAChannelConfig.

Parameters:
[in]GPDMAChannelConfigPointer to a GPDMA_CH_CFG_Type structure that contains the configuration information for the specified GPDMA channel peripheral.
[in]pfnGPDMACbsPointer to a GPDMA interrupt call-back function
Returns:
ERROR if selected channel is enabled before or SUCCESS if channel is configured successfully

Definition at line 235 of file lpc17xx_gpdma.c.