该代码实现了 两次下载法在dspC6713平台上 烧写flash的操作过程

源代码在线查看: c6711_interrupt.c

软件大小: 636 K
上传用户: billhu
关键词: flash dspC 6713 代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*****************************************************************************
				*
				* component   :   
				*
				* module name :     c6201_hw.c
				* date        :     
				*
				* subcomponent:
				*
				******************************************************************************/
				#ifndef MASTER_FILE
				#define C6711_GLOBALS
				#include "includes.h"
				#endif
				
				
				
				/******************************************************************************
				*                                                                            
				* function    : Illegal_Interrupt_Handler (void)
				* description : NMI_Interrupt  INT_01#
				*                                                                            
				*               A Pure autonomous interrupt handler that has nothing to do                                                             
				*               with the KERNEL.                                                             
				*                                                                            
				*               Called whenever an interrupt occures that is not set ok or an error situation                                                             
				*               has occured. This interrupt handler should never execute.                                                             
				*               But is here for debugging purposes
				*                                                                            
				* dependencies: Setup in the interrupt vector : vectors.asm                                                             
				*               Do not use a C call in the routine if it can be avoided                                                             
				*               otherwise the C compiler generates a big push and pop allocation frame
				*               on the stack (takes time)                                                             
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				*                                                                            
				******************************************************************************/
				interrupt void 
				Illegal_Interrupt_Handler(void)
				{
				   /* Illegal interrupts shall never be called */
				
				}	
				
				
				/******************************************************************************
				*                                                                            
				* function    : External_Interrupt4
				* description : INT_04#
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				*                                                                            
				******************************************************************************/
				interrupt void
				External_Interrupt4(void)
				{
				   
				   //OS_ENTER_CRITICAL();
				
				   //OS_EXIT_CRITICAL();
				
				}
				
				
				/******************************************************************************
				*                                                                            
				* function    : McBsp_Receive_0_Interrupt
				* description : INT_5#
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				*                                                                            
				******************************************************************************/
				interrupt void 
				McBsp_Receive_0_Interrupt( void)            /* Interrupt  5, Not Used */
				{
				   
				}  
				
				 
				/******************************************************************************
				*                                                                            
				* function    : McBsp_Receive_1_Interrupt
				* description : INT_6#
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				*                                                                            
				******************************************************************************/
				interrupt void 
				McBsp_Receive_1_Interrupt( void)            /* Interrupt  6, Not Used  */
				{
				   
				}   
				
				
				/******************************************************************************
				*                                                                            
				* function    : External_Interrupt7
				* description : INT_07#
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				*                                                                            
				******************************************************************************/
				interrupt void
				External_Interrupt7(void)
				{
				   
				} 
				
				       
				/******************************************************************************
				*                                                                            
				* function    : DMAChannel_0_Interrupt	(void ) 
				*               DMAChannel_1_Interrupt	(void )
				*                                                                            
				* description : DMA controller interrupt's handlers
				*                                                                            
				*               Acts on an interrupt when the DMA channel issues an interrupt
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				*                                                                            
				******************************************************************************/
				interrupt void  
				EDMAChannel_0_Interrupt	(void)              /* Interrupt  8 */
				{
				}
				
				
				interrupt void  
				EDMAChannel_1_Interrupt	(void)              /* Interrupt  9 */
				{
				}	
				
				
				/******************************************************************************
				*                                                                            
				* function    : EMIF_SDRAM_Timer_Interrupt(void )      
				* description : INT_10#
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :    
				* note  :   do not declare this with the  ordinary interrupt keyword 
				*           or #pragma interrupt () ;                                                                          
				******************************************************************************/
				interrupt void
				EMIF_SDRAM_Timer_Interrupt(void )
				{
				  
				}	
				
				
				
				/******************************************************************************
				*                                                                            
				* function    : DMAChannel_2_Interrupt	(void )                                            
				*               DMAChannel_3_Interrupt	(void )                                                             
				*                                                                            
				* description : DMA controller interrupt's handlers
				*                                                                            
				*               Acts on an interrupt when the DMA channel issues an interrupt
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				*                                                                            
				******************************************************************************/
				interrupt void  
				EDMAChannel_2_Interrupt	(void)              /* Interrupt 11  */
				{
				}	
				
				interrupt void   
				EDMAChannel_3_Interrupt	(void)              /* Interrupt 12 */
				{
				}
				
				
				/******************************************************************************
				*                                                                            
				* function    : HostPortInterrupt(void )      DSPINT
				* description : HostPortInterrupt interrupt handler
				*                                                                            
				*               Acts on an interrupt when the Host issues an interrupt
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				* note  :   do not declare this with the  ordinary interrupt keyword 
				*           or #pragma interrupt () ;                                                                          
				******************************************************************************/
				       
				interrupt void 
				HostPortInterrupt(void)                     /* Interrupt 13, Not Used  */
				{
				   
				}	
				
				
				/**********************************************************************************************************
				*
				* FUNCTION NAME: TimerZeroTick                                           
				*                                                                                                        *
				* Description: This function is called 199.99 times per second or, 11 times faster than the normal DOS
				*             tick rate of 18.20648 Hz.  Thus every 11th time, the normal DOS tick handler is called.
				*              This is called chaining.  10 times out of 11, however, the interrupt controller on the PC
				*              must be cleared to allow for the next interrupt.
				*
				* Arguments  : none
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : none
				* Cost  :
				*
				**********************************************************************************************************/
				
				void interrupt 
				TimerZeroTick(void)      /* Interrupt 14, Debug interrupt Aid */
				{
				   
				}
				
				/******************************************************************************
				*                                                                            
				* function    : TimerOneTick(void ) 
				* description : Timer 1 tick interrupt handler
				*                                                                            
				*               Ticks every millisecond                                                             
				*                                                                            
				* dependencies: Setup in the interrupt vector : c6inthnd.asm
				*                                               os_cpu_a.asm                             
				*                                                                            
				*  Input      : None
				*  Output     : None
				* history     :                                                              
				* return value : 
				* Cost  :                                                                     
				* NOTE:  do not declare this with the  ordinary interrupt keyword
				         or #pragma interrupt () ;                                                                        
				******************************************************************************/
				
				interrupt void 
				TimerOneTick(void)   /* Interrupt 15, System Timer One millisecond */
				{
				  
				}	
				
				
				
							

相关资源