Freescale Semiconductor Inc.
    Regional Technical Application Center

 

E:/PROJECTS/IOP/ADC Average/Src/ADC_Filter/ADC_Filter_Drv/src/edma_init.h File Reference

#include "Derivative.h"
#include "Adc_Cfg.h"

Include dependency graph for edma_init.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DMA_ADC_CFIFO_CHANNEL   (uint8_t)0
#define DMA_ADC_RFIFO_CHANNEL   (uint8_t)1
#define ADC_DMA_CFIFO0_SOURCE   (uint8_t)0x32
#define ADC_DMA_RFIFO0_SOURCE   (uint8_t)0x31
#define ADC_DMA_CFIFO1_SOURCE   (uint8_t)0x34
#define ADC_DMA_RFIFO1_SOURCE   (uint8_t)0x33
#define ENABLE_DMA_CHANNEL(channel)   EDMA.SERQR.R = channel;
#define SET_INTERRUPT_PRIORITY(u8IntNum, u8Priority)   INTC.PSR[u8IntNum].R = (uint8_t)u8Priority;

Functions

void vfnedma_init (void)
 This function initialize DMA engine.
void vfndma_config_fcn (void)
 This function configures TCD 0 & 1 to handle CFIFOx and RFIFOx.

Variables

uint32_t cQUEUE0
vuint16_t rQUEUE0 [12]
vuint32_t cQUEUE1 [1]
vuint16_t rQUEUE1 [1]
vuint32_t cQUEUE2 [1]
vuint16_t rQUEUE2 [1]
vuint32_t cQUEUE3 [1]
vuint16_t rQUEUE3 [1]
vuint32_t cQUEUE4 [1]
vuint16_t rQUEUE4 [1]
vuint32_t cQUEUE5 [1]
vuint16_t rQUEUE5 [1]
uint32_t cQUEUE [4]


Define Documentation

#define ADC_DMA_CFIFO0_SOURCE   (uint8_t)0x32

Source number of CFIFO 0 (DMA_MUX number)

#define ADC_DMA_CFIFO1_SOURCE   (uint8_t)0x34

Source number of CFIFO 1 (DMA_MUX number)

#define ADC_DMA_RFIFO0_SOURCE   (uint8_t)0x31

Source number of RFIFO 0 (DMA_MUX number)

#define ADC_DMA_RFIFO1_SOURCE   (uint8_t)0x33

Source number of RFIFO 1 (DMA_MUX number)

#define DMA_ADC_CFIFO_CHANNEL   (uint8_t)0

DMA channel assigned to handle ADC CFIFO queues

#define DMA_ADC_RFIFO_CHANNEL   (uint8_t)1

DMA channel assigned to handle ADC RFIFO queues

#define ENABLE_DMA_CHANNEL ( channel   )     EDMA.SERQR.R = channel;

Enable DMA channel X

#define SET_INTERRUPT_PRIORITY ( u8IntNum,
u8Priority   )     INTC.PSR[u8IntNum].R = (uint8_t)u8Priority;

writes to INTC Priority register


Function Documentation

void vfndma_config_fcn ( void   ) 

This function configures TCD 0 & 1 to handle CFIFOx and RFIFOx.

Author:
R01160
Parameters:
none 
Returns:
none
Warning:
DMA channel 0 is assigned to handle CFIFOx and DMA channel 1
handles RFIFOx

void vfnedma_init ( void   ) 

This function initialize DMA engine.

Author:
R01160
Parameters:
none 
Returns:
none
Warning:
DMA channel 0 & 1 are always enabled


Variable Documentation