nand_flash.c

来自「把将yaffs 移植到 ucos 系统」· C语言 代码 · 共 58 行

C
58
字号
/**********************************************************************

Author:			Andy.Wu
Date:			2006.6.8

Description:	this file is the driver of nand_flash. 


***********************************************************************/


/*************************************************
Initialize the  hardware of nandflash
*************************************************/
int nand_flash_hwr_init(void)
{

	return 0;
}



/************************************************
Erase a block on nandflash;
block:	the number of block;

*************************************************/
int nand_flash_erase_block(int block)
{

	return 0;
}

/************************************************
Write data to blockpage;
blockpage:
data:	the first 512bytes
spare:	the next 16bytes
*************************************************/
int nand_flash_program_buf(int blockpage, const unsigned char *data, const unsigned char *spare)
{

	return 0;
}



/************************************************
Write data to blockpage;
blockpage:
data:	the first 512 bytes
spare:	the next 16 bytes
*************************************************/
int nand_flash_read_buf(int blockpage, unsigned char *data,unsigned char *spare)
{

	return 0;
}

⌨️ 快捷键说明

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