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

📄 nand.h

📁 s3c2440bootloader的stepldr修改版
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
--*/

#ifndef __NAND_H__
#define __NAND_H__

// NAND Flash Command.
#define CMD_READ       0x00        // Read
#define CMD_READ1      0x01        // Read1
#define CMD_READ2      0x50        // Read2
#define CMD_READID     0x90        // ReadID
#define CMD_WRITE      0x80        // Write phase 1
#define CMD_WRITE2     0x10        // Write phase 2
#define CMD_ERASE      0x60        // Erase phase 1
#define CMD_ERASE2     0xD0        // Erase phase 2
#define CMD_STATUS     0x70        // Status read
#define CMD_RESET      0xFF        // Reset

static UINT16 FlashID;

void NF_Init(void);
int  NF_ReadPage(UINT32 block, UINT32 page, volatile BYTE * buffer);
int  NF_ReadID(void);
void NF_Reset(void);

#endif

⌨️ 快捷键说明

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