dataper_conf.c

来自「zilog的实时操作系统RZK,可以移植到多种处理器上」· C语言 代码 · 共 74 行

C
74
字号
/*
 * File       : DataPer_Conf.c
 * Description: This file contains the data persistence implementation for
 *				ZTP
 *				data persistance of different values.
 * Author     : 
 * Created on : 3-FEB-2005
 *
 * Copyright 2004-2005 ZiLOG Inc.  ALL RIGHTS RESERVED.
 *
 * This file contains unpublished confidential and proprietary information
 * of ZiLOG, Inc.
 * NO PART OF THIS WORK MAY BE DUPLICATED, STORED, PUBLISHED OR DISCLOSED 
 * IN ANY FORM WITHOUT THE PRIOR WRITTEN CONSENT OF ZiLOG, INC.
 * This is not a license and no use of any kind of this work is authorized
 * in the absence of a written license granted by ZiLOG, Inc. in ZiLOG's 
 * sole discretion 
 */


/*
 * standard header files
 */
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>

/*
 * system header files
 */
#include "DataPerStruct.h"
#include "IntFlash_InfoPage_Driver.h"
#include "MT28F008_Driver.h"
#include "ZInterrupt.h"

#ifdef RAM_MAP
// for external flash block
DATA_PER_CFG_t g_data_per_cfg = {
	( void * ) 0x104000,        		/* starting address */
	( UINT32 ) 0x00002000UL,        /* erasable block size */
	MT28F008_Init,
	MT28F008_Read,
	MT28F008_Write,
	MT28F008_Erase,
	MT28F008_Close
} ;

#else

#ifdef _EZ80L92
DATA_PER_CFG_t g_data_per_cfg = {
	( void * ) 0x004000,        		/* starting address */
	( UINT32 ) 0x00002000UL,        /* erasable block size */
	MT28F008_Init,
	MT28F008_Read,
	MT28F008_Write,
	MT28F008_Erase,
	MT28F008_Close
} ;
#else
DATA_PER_CFG_t g_data_per_cfg = {
	( void * ) 0x00000,        		/* starting address */
	( UINT32 ) 0x0000100UL,        /* erasable block size */
	IntFlash_IP_Init,
	IntFlash_IP_Read,
	IntFlash_IP_Write,
	IntFlash_IP_Erase,
	IntFlash_IP_Close
} ;
#endif
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?