代码搜索结果
找到约 10,000 项符合
Flash 的代码
flash.asm
//============================================================
// 文件名称:flash.asm
// 实现功能: SPCE061 32K flash 的读写
// 日期: 2003/6/9
//===========================================================
flash.c
#include"SPCE061A.H"
#define lint long int
#define uint unsigned int
#define uchar unsigned char
#define ulint unsigned long int
#define Flash_Data (uint)0xf000
//*****************************
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.h
#include "..\inc\44b.h"
#include "..\inc\def.h"
/*KM29U128 IO 定义*/
//RB ->GPE0
//CLE ->GPC11
//ALE ->GPC10
//WP ->
//CE ->GPC15
#define RB (0x01)
#define CLE (0x800)
#define ALE (0x400)
flash.h
/*
定义flash的基地址
RAM的基地址
*/
#define FLASH_START 0x70000000
#define RAM_START 0xC0000000
#define FLASH(offset) (FLASH_START + (offset))
#define FLASH_BYTE(offset) (*(volatile unsigned char