⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rru852flash.h

📁 powerPC866 系列平台BSP移植开发的参考代码
💻 H
字号:
#ifndef rru852flash_dot_h
#define rru852flash_dot_h

#define HIGH_FLASH_ADDRESS	0xfc7fffff
#define LOW_FLASH_ADDRESS	0xfc000000

#define FLASH_BASE_ADDRESS	0xfc000000
#define FLASH_READ_ID		0x0090
#define FLASH_READ_MAID		0x0000
#define FLASH_READ_DEID		0x0002
#define FLASH_ERASE_BLOCK_CMD1	0x0020
#define FLASH_ERASE_BLOCK_CMD2	0x00d0
#define FLASH_PROG_CMD			0x0040
#define FLASH_READ_ARRAY	0x00FF
#define FLASH_STATUS_OK		0x0080
#define WAIT_TIMES			0x100
#define PROG_WAIT_TIMES		0x1000
#define FLASH_BLOCK_SIZE	0x20000

#define CONFIG_ADRS_IN_FLASH	0xfc7e0000	/* The second highst 64K bytes of flash */
#define BOOT_LINE_ADRS_IN_FLASH	0xfc7f0000	/* The highest 64k bytes of flash */


extern int prog_flash(unsigned int adrs, int len, unsigned char * pbuf);
extern int erase_flash_range(unsigned int startaddress, unsigned int endaddress);
extern void checkft(unsigned short * manid, unsigned short * devid);

#endif

⌨️ 快捷键说明

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