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

Subversion Repositories usb_fpga_1_11

[/] [usb_fpga_1_11/] [trunk/] [include/] [ztex-flash1.h] - Diff between revs 6 and 8

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 6 Rev 8
Line 883... Line 883...
/* *********************************************************************
/* *********************************************************************
   ***** flash_write_finish_sector *************************************
   ***** flash_write_finish_sector *************************************
   ********************************************************************* */
   ********************************************************************* */
/*
/*
   Writes the rest of the sector (n dummy bytes + CRC, the whole sector has to be written)
   Writes the rest of the sector (n dummy bytes + CRC, the whole sector has to be written)
   but do not write the finalization procedure. This is done by flash_write_finish
   but do not run the finalization procedure. This is done by flash_write_finish
   or flash_write_next, i.e. these functions must be called after flash_write_finish_sector.
   or flash_write_next, i.e. these functions must be called after flash_write_finish_sector.
 
 
   Between flash_write_finish / flash_write_next and flash_write_finish_sector some code
   Between flash_write_finish / flash_write_next and flash_write_finish_sector some code
   may be executed because flash_write_finish / flash_write_next start with
   may be executed because flash_write_finish / flash_write_next start with
   mmc_wait_busy().
   mmc_wait_busy().
Line 930... Line 930...
 
 
/* *********************************************************************
/* *********************************************************************
   ***** flash_write_next **********************************************
   ***** flash_write_next **********************************************
   ********************************************************************* */
   ********************************************************************* */
/*
/*
   Prepare the nexte sector for write transimssion, see flash_write_finish1.
   Prepare the nexte sector for writing, see flash_write_finish_sector.
*/
*/
void flash_write_next () {
void flash_write_next () {
    mmc_wait_busy();
    mmc_wait_busy();
    flash_write_byte( 0xfc );                   // send the stop byte
    flash_write_byte( 0xfc );                   // send the stop byte
}
}

powered by: WebSVN 2.1.0

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