OpenCores
URL https://opencores.org/ocsvn/usb_nand_reader/usb_nand_reader/trunk

Subversion Repositories usb_nand_reader

[/] [usb_nand_reader/] [trunk/] [mini32/] [CMD_BlockErase.c] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 pradd
 
2
#include "NandControl.h"
3
#include "CMD.h"
4
 
5
void cmd_chip_block_erase(unsigned char* inBuffer)
6
{
7
    nand_send_command(NC_BLOCK_ERASE1);
8
    nand_send_address(inBuffer + 1, 3);
9
    do_delay(100);
10
    nand_send_command(NC_BLOCK_ERASE2);
11
    do_delay(100);
12
    nand_wait_ready();
13
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.