eeprom.h

来自「linux下ROMMONITOR,FLASH,MODEM等操作原代码,请需要的朋」· C头文件 代码 · 共 33 行

H
33
字号
/*******************************************************************************
 *
 * Filename: eeprom.h
 *
 * Definition of eeprom routines
 *
 * Revision information:
 *
 * 28AUG2004	kb_admin	initial creation - adapted from Atmel sources
 *
 * BEGIN_KBDD_BLOCK
 * No warranty, expressed or implied, is included with this software.  It is
 * provided "AS IS" and no warranty of any kind including statutory or aspects
 * relating to merchantability or fitness for any purpose is provided.  All
 * intellectual property rights of others is maintained with the respective
 * owners.  This software is not copyrighted and is intended for reference
 * only.
 * END_BLOCK
 ******************************************************************************/

#ifndef _EEPROM_H_
#define _EEPROM_H_

#define AT91C_TWSI_CLOCK	100000
#define EEPROM_PAGE_SIZE	32
#define TWSI_EEPROM_ADDRESS	0x50

/* The following function write eeprom at ee_addr using data 	*/
/*  from data_add for size bytes.				*/
extern void WriteEEPROM(unsigned ee_addr, char *data_addr, unsigned size);

#endif /* _EEPROM_H_ */

⌨️ 快捷键说明

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