1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 16:00:57 +00:00

core/embed: decrease SD card operations timeout to 5s

This commit is contained in:
Pavol Rusnak 2019-12-11 17:24:28 +00:00
parent b34675401c
commit 43da0d754a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -298,7 +298,7 @@ secbool sdcard_read_blocks(uint32_t *dest, uint32_t block_num,
err =
HAL_SD_ReadBlocks_DMA(&sd_handle, (uint8_t *)dest, block_num, num_blocks);
if (err == HAL_OK) {
err = sdcard_wait_finished(&sd_handle, 60000);
err = sdcard_wait_finished(&sd_handle, 5000);
}
dma_deinit(&SDMMC_DMA);
@ -342,7 +342,7 @@ secbool sdcard_write_blocks(const uint32_t *src, uint32_t block_num,
err =
HAL_SD_WriteBlocks_DMA(&sd_handle, (uint8_t *)src, block_num, num_blocks);
if (err == HAL_OK) {
err = sdcard_wait_finished(&sd_handle, 60000);
err = sdcard_wait_finished(&sd_handle, 5000);
}
dma_deinit(&SDMMC_DMA);