mirror of
https://github.com/eclipse-threadx/levelx.git
synced 2026-09-13 19:46:00 +08:00
Merge pull request #66 from rahmanih/update_nand_simulator
Updated the nand flash simulator
This commit is contained in:
@@ -278,11 +278,16 @@ UINT ecc_status = LX_SUCCESS;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (spare_buffer)
|
||||
{
|
||||
|
||||
#ifdef LX_NAND_ENABLE_CONTROL_BLOCK_FOR_DRIVER_INTERFACE
|
||||
status = _lx_nand_flash_simulator_extra_bytes_get(nand_flash, block, page + i, spare_buffer + i * SPARE_BYTES_PER_PAGE, SPARE_BYTES_PER_PAGE);
|
||||
status = _lx_nand_flash_simulator_extra_bytes_get(nand_flash, block, page + i, spare_buffer + i * SPARE_BYTES_PER_PAGE, SPARE_BYTES_PER_PAGE);
|
||||
#else
|
||||
status = _lx_nand_flash_simulator_extra_bytes_get(block, page + i, spare_buffer + i * SPARE_BYTES_PER_PAGE, SPARE_BYTES_PER_PAGE);
|
||||
status = _lx_nand_flash_simulator_extra_bytes_get(block, page + i, spare_buffer + i * SPARE_BYTES_PER_PAGE, SPARE_BYTES_PER_PAGE);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
return (ecc_status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user