You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
//###########################################################################
|
|
//
|
|
// 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: F2833x/F2823x Header Files and Peripheral Examples V142 $
|
|
// $Release Date: November 1, 2016 $
|
|
// $Copyright: Copyright (C) 2007-2016 Texas Instruments Incorporated -
|
|
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
|
//###########################################################################
|
|
|
|
//
|
|
// Included Files
|
|
//
|
|
#include "DSP2833x_Device.h"
|
|
|
|
//
|
|
// MemCopy -
|
|
//
|
|
void
|
|
MemCopy(Uint16 *SourceAddr, Uint16* SourceEndAddr, Uint16* DestAddr)
|
|
{
|
|
while(SourceAddr < SourceEndAddr)
|
|
{
|
|
*DestAddr++ = *SourceAddr++;
|
|
}
|
|
return;
|
|
}
|
|
|
|
//
|
|
// End of file
|
|
//
|
|
|