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

Subversion Repositories eco32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /eco32/trunk
    from Rev 198 to Rev 199
    Reverse comparison

Rev 198 → Rev 199

/stdalone/dskchk2/dskchk2/main.c
175,6 → 175,7
}
*DISK_SCT = sector;
*DISK_CNT = 1;
*DISK_CTRL = *DISK_CTRL & ~(DISK_CTRL_DONE | DISK_CTRL_ERR);
*DISK_CTRL = *DISK_CTRL | DISK_CTRL_STRT;
while ((*DISK_CTRL & DISK_CTRL_DONE) == 0) ;
if (*DISK_CTRL & DISK_CTRL_ERR) {
199,11 → 200,6
corrupted = 0;
for (check = 0; check < numChecks; check++) {
sectorRequ = nextRandomSector(NUM_SECTORS);
//----------------------------------------------
if (numChecks == 1) {
sectorRequ = 0x14001;
}
//----------------------------------------------
if (!readSector(sectorRequ, buffer)) {
error("cannot read disk");
}

powered by: WebSVN 2.1.0

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