90 likes | 208 Views
Working with the 6713 DSK Basic Code. ECE5580. File structure for 6713 DSK. The example code throughout the book [1] uses the same file structure to support all example and structure The files are a mix of processor DSK board support files and custom initialization and ISR routines.
E N D
File structure for 6713 DSK • The example code throughout the book [1] uses the same file structure to support all example and structure • The files are a mix of processor \ DSK board support files and custom initialization and ISR routines. • All files are located on lab computer and are available with the book under . \CD
File structure for 6713 DSK • Processor support file: • c6x.h • Define variable to access control registers • Defines macros to provide data alignment assertions and context save and restore for inline assembly • Intrinsic function definitions
File structure for 6713 DSK • DSK support files • C6x11DSK.h • Defines Variable to access peripheral device addresses • Structures to group a peripheral configuration values • Include definition for the EMIF, McBSP, EDMA, timers, Cache config • Define the memory map for the DSK
File structure for 6713 DSK • DSK_config.h • Define the codec being used • Specific to the books examples
File structure for 6713 DSK • DSK_support.h and .c • Provide functions and their prototypes to initialized the DSK hardware. • Initializes the McBSPs for use with the AIC23 codec on the board • The internal PLL for use with hardware such as SDRAM, ect.. • Configures which interrupts to use.
File structure for 6713 DSK • Vector.asm • Defines the interrupt table • Runs main() at reset called _c_int00 • Maps interrupt routine for input and output from the code
File structure for 6713 DSK • Startup.c • Provide a place to put user defined startup routines (not used much) • Main.c • Main loop code/init • ISRs.c • Interrupt code • Structure defining input/output data to codec