📄 nand_flash.c
字号:
/**********************************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -