PDL for FM0+  Version1.0
Peripheral Driverl Library for FM0+
C:/pdl_v10/library/driver/dma/dma.c File Reference
#include "dma.h"
Include dependency graph for dma.c:

Go to the source code of this file.

Data Structures

union  un_dmac_dmaca_t
union  un_dmac_dmacb_t

Defines

#define GET_DMA_ADDRESS(x)   (FM0P_DMAC_BASE + (0x10ul * (x)) + 0x10ul)

Functions

static en_result_t Dma_Irq_Init (uint8_t u8DmaChannel)
 Init DMA interrupt IRQ.
static en_result_t Dma_Irq_DeInit (uint8_t u8DmaChannel)
 De-Init DMA interrupt.
void DmaIrqHandler (uint8_t u8DmaChannel)
 DMA interrupt handler.
en_result_t Dma_EnableInt (uint8_t u8DmaChannel, stc_dma_int_sel_t *pstcIntSel, stc_dma_int_cb_t *pstcIntCb)
 Enable interrupt of a DMA channel.
en_result_t Dma_DisableInt (uint8_t u8DmaChannel, stc_dma_int_sel_t *pstcIntSel)
 Disable interrupt of a DMA channel.
en_result_t Dma_Init_Channel (uint8_t u8DmaChannel, volatile stc_dma_config_t *pstcConfig)
 Initializes a DMA channel.
en_result_t Dma_DeInit_Channel (uint8_t u8DmaChannel)
 De-Initializes a DMA channel.
en_result_t Dma_SetChannel (uint8_t u8DmaChannel, boolean_t bEnable, boolean_t bPause, boolean_t bSoftwareTrigger)
 Enable, disable, pause, or trigger a DMA channel via configuration.
en_dma_stop_cause_t Dma_GetStopCause (uint8_t u8DmaChannel)
 Read stop cause of a DMA channel.
en_result_t Dma_Enable (void)
 Enable DMA globally.
en_result_t Dma_Disable (void)
 Disable DMA globally.

Variables

static stc_dma_intern_data_t stcDmaInternData
 Store DMA internal data.

Detailed Description

A detailed description is available at DMA description

History:

  • 2014-02-19 0.1 Edison Zhang First version
  • 2014-03-06 0.2 Edison Zhang Update Dma_DeInit_Channel() function

Definition in file dma.c.