/* * ======== edma.c ======== * This is the code needed to setup the edma. */ /**************************************************************\ * The "EDMA Config" type data structure holds the * parameters to be programmed into a EDMA channel. * Register Make (RMK) macros build a 32-bit unsigned int; * below it is used to build the Options (OPT) register. * The OF macros provide the proper typecasting needed for * the EDMA Config data structure. * * To locate the structure below, use: * * Help-->User Manuals--> * SPRU401 - TMS320C6000 Chip Support Library API Reference Guide * * 1. Open the SPRU401 .pdf file. * 2. Search for "EDMA_OPT_field_symval" and go to the link * * Notice that Table B-23 specifies how to build the * OPT RMK structure. If you want to know the options for * each field, just look at the table. * * You can locate the other Config fields by searching for: * * "EDMA_SRC_field_symval" * * Use this as a template for individual structures: * EDMA_Config variableName = { EDMA_OPT_RMK( EDMA_OPT_PRI_???, // Priority EDMA_OPT_ESIZE_???, // Element size EDMA_OPT_2DS_???, // 2 dimensional source EDMA_OPT_SUM_???, // Src update mode EDMA_OPT_2DD_???, // 2 dimensional dest EDMA_OPT_DUM_???, // Dest update mode EDMA_OPT_TCINT_???, // Cause EDMA interrupt EDMA_OPT_TCC_OF(???), // Transfer Complete Code EDMA_OPT_TCCM_???, // Transfer Complete Code Upper Bits (c64x only) EDMA_OPT_ATCINT_???, // Alternate TCC Interrupt (c64x only) EDMA_OPT_ATCC_???, // Alternate Transfer Complete Code (c64x only) EDMA_OPT_PDTS_???, // Peripheral Device Transfer Source (c64x only) EDMA_OPT_PDTD_???, // Peripheral Device Transfer Dest (c64x only) EDMA_OPT_LINK_???, // Enable link parameters EDMA_OPT_FS_??? // Use frame sync ), EDMA_SRC_OF(???), // src address EDMA_CNT_OF(???), // Count = buffer size EDMA_DST_OF(???), // dest address EDMA_IDX_OF(???), // frame/element index value EDMA_RLD_OF(???) // reload }; \**************************************************************/ /* * ======== Include files ======== */ /* * ======== Declarations ======== */ #define BUFFSIZE 32 /* * ======== Prototypes ======== */ void initEdma(void); /* * ======== References ======== */ /* * ======== Global Variables ======== */ /* * ======== initEdma ======== */ void initEdma(void) { }