Skip to content

Commit

Permalink
mimxrt/sdcard: Reverted changes due to issues in tests.
Browse files Browse the repository at this point in the history
Referted changes in transfer_blocking due to issues detected
in long running test-cases.
  • Loading branch information
alphaFred committed Aug 4, 2021
1 parent 6a3535a commit d56ff25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ports/mimxrt/boards/make-pins.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def main():
"--iomux",
dest="iomux_filename",
help="Specifies the fsl_iomux.h file for the chip",
default="fsl_iomux.h",
default="fsl_iomuxc.h",
)
parser.add_argument(
"-b",
Expand Down
4 changes: 1 addition & 3 deletions ports/mimxrt/sdcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ static status_t sdcard_transfer_blocking(USDHC_Type *base, usdhc_handle_t *handl
{
status = USDHC_TransferNonBlocking(base, handle, &dma_config, transfer);
retry_ctr++;
ticks_delay_us64(100);
} while (!(status == kStatus_Success) && (retry_ctr < 8192UL));
} while (!(status == kStatus_Success) && (retry_ctr < 1000000 UL));

if (retry_ctr > retry_ctr_max) {
retry_ctr_max = retry_ctr;
Expand All @@ -308,7 +307,6 @@ static status_t sdcard_transfer_blocking(USDHC_Type *base, usdhc_handle_t *handl
sdcard_transfer_done = false;
return kStatus_Success;
}
MICROPY_EVENT_POLL_HOOK
ticks_delay_us64(10);
}
return kStatus_Timeout;
Expand Down

0 comments on commit d56ff25

Please sign in to comment.