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
|
}
|
}
|