Programming Examples
Listing 7-4. Two Descriptors in Small List Flow Mode
.section sdram;
.byte2 arrBlock1[0x400];
.byte2 arrBlock2[0x800];
.section L1_data_a;
.byte2 descBlock1 = lo(descBlock2);
.var
descBlock1.addr = arrBlock1;
.byte2 descBlock1.cfg = FLOW_SMALL|NDSIZE_5|WDSIZE_16|DMAEN;
.byte2 descBlock1.len = length(arrBlock1);
descBlock1.end:
.byte2 descBlock2 = lo(descBlock1);
.var
descBlock2.addr = arrBlock2;
.byte2 descBlock2.cfg =
FLOW_SMALL|NDSIZE_5|DI_EN|WDSIZE_16|DMAEN;
.byte2 descBlock2.len = length(arrBlock2);
descBlock2.end:
Another method takes advantage of C-style structures in global header
files. The header file
Listing 7-5. Header File to Define Descriptor Structures
#ifndef __INCLUDE_DESCRIPTORS__
#define __INCLUDE_DESCRIPTORS__
#ifdef _LANGUAGE_C
typedef struct {
void
*pStart;
short dConfig;
short dXCount;
short dXModify;
short dYCount;
short dYModify;
7-96
could look like
descriptors.h
ADSP-BF50x Blackfin Processor Hardware Reference
Listing
7-5.
Need help?
Do you have a question about the ADSP-BF506F and is the answer not in the manual?