From 7bfdf63a71c67066405bb19e8872791c943b9e10 Mon Sep 17 00:00:00 2001 From: "Kate J. Temkin" Date: Fri, 18 May 2018 07:42:35 -0600 Subject: [PATCH] fusee sdmmc: don't time out on long reads --- fusee/fusee-primary/src/display/video_fb.h | 2 +- fusee/fusee-primary/src/sdmmc.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fusee/fusee-primary/src/display/video_fb.h b/fusee/fusee-primary/src/display/video_fb.h index ebedc0626..35aadd528 100644 --- a/fusee/fusee-primary/src/display/video_fb.h +++ b/fusee/fusee-primary/src/display/video_fb.h @@ -28,7 +28,7 @@ #define CONSOLE_FG_COL 0xa0 /* Try using the small font */ -#define CONFIG_VIDEO_FONT_SMALL +//#define CONFIG_VIDEO_FONT_SMALL /* * Graphic Data Format (GDF) bits for VIDEO_DATA_FORMAT diff --git a/fusee/fusee-primary/src/sdmmc.c b/fusee/fusee-primary/src/sdmmc.c index b04820fda..c023f6a71 100644 --- a/fusee/fusee-primary/src/sdmmc.c +++ b/fusee/fusee-primary/src/sdmmc.c @@ -1157,6 +1157,10 @@ static int sdmmc_wait_for_interrupt(struct mmc *mmc, // Finally, EOI the relevant interrupt. mmc->regs->int_status |= fault_conditions; + + // Reset the timebase, so it applies to the next + // DMA interval. + timebase = get_time(); } if (mmc->regs->int_status & target_irq)