www.pudn.com > SVPWM.rar > DSP2833x_MemCopy.c, change:2012-06-26,size:1499b


// TI File $Revision: /main/1 $ 
// Checkin $Date: August 18, 2006   13:46:33 $ 
//########################################################################### 
// 
// FILE:	DSP2833x_MemCopy.c 
// 
// TITLE:	Memory Copy Utility 
// 
// ASSUMPTIONS: 
// 
//           
// 
// DESCRIPTION: 
// 
//          This function will copy the specified memory contents from 
//          one location to another.  
//  
//          Uint16 *SourceAddr        Pointer to the first word to be moved 
//                                    SourceAddr < SourceEndAddr 
//          Uint16* SourceEndAddr     Pointer to the last word to be moved 
//          Uint16* DestAddr          Pointer to the first destination word 
// 
//          No checks are made for invalid memory locations or that the 
//          end address is > then the first start address. 
//  
//           
//########################################################################### 
// $TI Release: 2833x/2823x Header Files V1.32 $ 
// $Release Date: June 28, 2010 $ 
//########################################################################### 
 
#include "DSP2833x_Device.h" 
 
void MemCopy(Uint16 *SourceAddr, Uint16* SourceEndAddr, Uint16* DestAddr) 
{ 
    while(SourceAddr < SourceEndAddr) 
    {  
       *DestAddr++ = *SourceAddr++; 
    } 
    return; 
} 
 
//=========================================================================== 
// End of file. 
//===========================================================================