00001 /************************************************************************************ 00002 * peripheralMap.h: Defines mapping of available peripherals to their functions on 00003 * the master and slave DSPs. 00004 * 00005 * Damon Fasching, UW Madison (510)486-5230 fasching@wisconsin.cern.ch 00006 ************************************************************************************/ 00007 #ifndef PERIPHERAL_MAP 00008 #define PERIPHERAL_MAP 00009 00010 #include <csl.h> 00011 #include <csl_irq.h> 00012 #include <csl_dma.h> 00013 #include <csl_timer.h> 00014 #include <csl_mcbsp.h> 00015 00016 /* The two DSP timer channels are used to flash a hearbeat LED, and for general 00017 purpose timing information for all DSP functions. */ 00018 #define HEARTBEAT_TIMER_CH (TIMER_DEV0) 00019 #define USER_TIMER_CH (TIMER_DEV1) 00020 00021 #ifdef I_AM_SLAVE_DSP1 00022 00023 /* This DMA channel is used to burst data from the router output event FIFO to the 00024 * slave burst buffer. */ 00025 00026 #define CH_DMA_DATA_BRST (DMA_CH0) 00027 #define DEST_ADDR_DMA_DATA_BRST (DMA0_DEST_ADDR) 00028 #define SECONDARY_CTRL_ADDR_DATA_BRST (DMA0_SECONDARY_CTRL_ADDR) 00029 00030 /* This interrupt is generated when the DMA from the router is finished. It is 00031 * hooked to an ISR which starts analysis of the data. */ 00032 00033 #define IRQ_BLOCK_DMA_DONE (IRQ_INT_08) /* IRQ for end of frame done */ 00034 00035 /* MCBSP 0 drives the enable/disable router event trapping signal. 00036 * MCBSP 1 drives the HALT_OUTPUT and an LED */ 00037 00038 #define MCBSP_TRAP_ENABLE 0 00039 #define MCBSP_HALT_AND_LED 1 00040 00041 #endif 00042 00043 #endif