Description
Source
Call Graph
Start Line: 264
unsigned char SkipBlockNandFlash_ReadPage(const struct SkipBlockNandFlash *skipBlock, unsigned short block, unsigned short page, void *data, void *spare)
{
#if !defined(OP_BOOTSTRAP_on)
// Check that the block is not BAD if data is requested
if (CheckBlock(skipBlock, block) != GOODBLOCK) {
TRACE_ERROR("SkipBlockNandFlash_ReadPage: Block is BAD.\n\r");
return NandCommon_ERROR_BADBLOCK;
}
// Read data with ECC verification
return EccNandFlash_ReadPage(ECC(skipBlock), block, page, data, spare);
#else
return RawNandFlash_ReadPage(RAW(skipBlock), block, page, data, spare);
#endif
}