/////////////////////////////////////////////////////////////////////// // Filename: DSK_Support.h // // Synopsis: Declarations for DSK configuration using DSP/BIOS // // Authors: Michael G. Morrow // // Date of Last Revision: 3/17/2004 // // Copyright (c): 2001-2002 by Michael G. Morrow. All rights reserved. /////////////////////////////////////////////////////////////////////// #ifndef DSK_Support_H_INCLUDED #define DSK_Support_H_INCLUDED #include #include "c6x11dsk.h" // supported codecs #define TLC320AD535 0 #define eDSP_PCM3006 1 #define TI_PCM3003_16bit 2 #define DSK6713_16bit 3 #include "DSK_Config.h" // user selects dsk/codec type here // frame buffer declarations #define BUFFER_COUNT 1440 // buffer length in McBSP samples (L+R) #define BUFFER_LENGTH BUFFER_COUNT*2 // two shorts read from McBSP each time #define NUM_BUFFERS 3 // don't change this! extern far short buffer[NUM_BUFFERS][BUFFER_LENGTH]; // EDMA codec transfer addresses #if CodecType == TLC320AD535 #define DXR_address 0x30000000 #define DRR_address 0x30000000 #else #define DXR_address 0x34000000 #define DRR_address 0x34000000 #endif #endif