mirror of
https://github.com/eclipse-threadx/levelx.git
synced 2026-09-14 04:06:00 +08:00
update nand flash simulator
align the nand flash simulator against the PR #65 Tests: Total Test time (real) = 6.33 sec ~/work/git_repos/github/eclipse/levelx_rahmanih/test/cmake 3/3 Test #1: default_build_coverage::levelx_nand_flash_test ........ Passed 44.06 sec 100% tests passed, 0 tests failed out of 3
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