dm643_flash_read.c
来自「基于ccs2(6000)开发环境,通过这个程序可以修改板上EEPROM 的MAC」· C语言 代码 · 共 31 行
C
31 行
/*
* Copyright 2003 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== dm643_flash_read.c ========
* DM643_FLASH_read() implementation
*/
#include <std.h>
#include <csl.h>
#include <dm643.h>
#include <dm643_flash.h>
/* Read data from a data range in Flash */
void DM643_FLASH_read(Uint32 src, Uint32 dst, Uint32 length)
{
Uint8 *psrc, *pdst;
Uint32 i;
/* Establish source and destination */
psrc = (Uint8 *)src;
pdst = (Uint8 *)dst;
for (i = 0; i < length; i++)
{
*pdst++ = *psrc++;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?