代码搜索结果
找到约 10,000 项符合
EEPROM 的代码
eeprom.c
/*******************************************************************************
EEPROM.C
Copyright (c) SmartASIC, Inc. All rights reserved.
****************************************************
eeprom.h
#define uint8 unsigned char
#define uint16 unsigned int
extern void WriteROM(uint8 Page,uint8 Data[]);
extern void ReadROM(uint8 Page, uint8 Data[]);
eeprom.c
#include "LZK.H"
void WriteROM(uint8 Page,uint8 Data[])
{
uint8 Counter;
SFRPAGE = 0x00;
while( BUSY );
STA = 1;//发送启动信号
while( SMB0STA != 0x08 );//起始位发送成功
eeprom.h
#ifndef EEPROM_H__
#define EEPROM_H__
extern unsigned char byte_read(unsigned int byte_addr);
extern void byte_write(unsigned int byte_addr, unsigned char indata);
extern void Sector_eraser(un
eeprom.c
#include"XQG.h"
#include
#define IAP_READ 0x01 /* 字节读数据存储区 */
#define IAP_WRITE 0x02 /* 字节编程数据存储区 */
#define IAP_ERASER 0x03 /* 扇区擦除
eeprom.c
/*
create by hzh, to support wr/rd parameters to/from eeprom
*/
#include "def.h"
#include "2440addr.h"
#include "2440lib.h"
#define SLV_ADDR_24C02 0xa0
void Delay(int ms);
static volati
eeprom.h
/* eeprom.h - EEPROM NVRAM haeder file */
/*
* Copyright (c) 2005 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only
eeprom.c
/* eeprom.c - EEPROM NVRAM routines */
/*
* Copyright (c) 2005 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pur