/*H***************************************************************************
*
* $Archive:: /boards/dsk5509a/lib/dsk5509_flash_read.c                        $
* $Revision:: 1                                                               $
* $Date:: 11/10/05 11:38a                                                     $
* $Author:: Shilpab                                                           $
*
* DESCRIPTION:
*
* 
* NOTES : 
*
* (C) Copyright 2005 by Spectrum Digital Incorporated
* All rights reserved
*
*H***************************************************************************/

/*
 *  ======== dsk5509_flash_read.c ========
 *  DSK5509_FLASH_read() implementation
 */

#include <std.h>
#include <csl.h>

#include <dsk5509.h>
#include <dsk5509_flash.h>

/* Read data from a data range in Flash */
void DSK5509_FLASH_read(Uint32 src, Uint32 dst, Uint32 length)
{
    Uint32 i, tmpval;

    /* Establish source and destination */
    for (i =0; i < length; i++)
    {
        tmpval = DSK5509_mget(src++);
        DSK5509_mset(dst++, tmpval);
    }
}
