代码搜索结果
找到约 10,000 项符合
Flash 的代码
flash.h
#ifndef __FLASH_H
#define __FLASH_H
#define ROM_BASE 0x00000000
#define DRAM_BASE 0x0c000000
#define SRAM_BASE 0x00000000
#define DEVICE_TYPE_X8 (8 / 8)
#define DEVICE_T
flash.c
#include "..\inc\board.h"
#include "..\inc\bios.h"
#include "..\inc\flash.h"
unsigned long flash_base;
unsigned short mfr_id;
unsigned short dev_id;
void send_cmd(unsigned long addr,unsigned char
flash.cmd
MEMORY
{
PAGE 0 :
OTP : origin = 0x3D7800, length = 0x000800
FLASHJ : origin = 0x3D8000, length = 0x002000
FLASHI : origin = 0x3DA000, length = 0x002000
FLASHH
flash.cmd
MEMORY
{
PAGE 0 :
OTP : origin = 0x3D7800, length = 0x000800
FLASHJ : origin = 0x3D8000, length = 0x002000
FLASHI : origin = 0x3DA000, length = 0x002000
FLASHH
flash.cmd
MEMORY
{
PAGE 0 :
OTP : origin = 0x3D7800, length = 0x000800
FLASHJ : origin = 0x3D8000, length = 0x002000
FLASHI : origin = 0x3DA000, length = 0x002000
FLASHH
flash.cfg
#base start end P reg terase tme tnvs tpgs tprog tnvh tnvh1 trcv
0 0x0004 0x7dff 1 0x0f40 0x0002 0x0006 0x001A 0x0033 0x0066 0x001A 0x019A 0x0006
0 0x0000 0x0003 1 0x0f80 0
flash编程.c
int flash_single_write(unsigned int address,unsigned short data)
{
volatile unsigned short *_p=FLASH_BASE;
_p[0x555]=0x00AA; //第一周期的
flash擦除.c
int flash_sec_erase(unsigned int sector_index)
{
unsigned int address;
volatile unsigned short *_p=FLASH_BASE;
address=Sec2Addr(sector_index);