aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
Diffstat (limited to 'testhal')
-rw-r--r--testhal/ATSAMA5D2/SDMMC/main.c15
-rw-r--r--testhal/ATSAMA5D2/SDMMC/mcuconf.h4
2 files changed, 3 insertions, 16 deletions
diff --git a/testhal/ATSAMA5D2/SDMMC/main.c b/testhal/ATSAMA5D2/SDMMC/main.c
index ee87869b8..978453d25 100644
--- a/testhal/ATSAMA5D2/SDMMC/main.c
+++ b/testhal/ATSAMA5D2/SDMMC/main.c
@@ -53,25 +53,10 @@ static THD_FUNCTION(Thread1, arg) {
}
}
-//for emmc
-#define CFG_FASTEST { \
- PMC_PCR_GCKCSS_UPLL_CLK, \
- 1, \
- }
-#define CFG_SDMMC { \
- PMC_PCR_GCKCSS_PLLA_CLK, \
- 1, \
- }
static const SamaSDMMCConfig sdmmc_slot1_cfg = {
SDMMC_SLOT1,
- { CFG_SDMMC },
- false,
-#if SDMMC_USE_TC == 1
- TC0,
- 0,
-#endif
sdmmcbuffer,
data_buf,
sizeof(data_buf),
diff --git a/testhal/ATSAMA5D2/SDMMC/mcuconf.h b/testhal/ATSAMA5D2/SDMMC/mcuconf.h
index 0c7f64108..1d2651a62 100644
--- a/testhal/ATSAMA5D2/SDMMC/mcuconf.h
+++ b/testhal/ATSAMA5D2/SDMMC/mcuconf.h
@@ -82,7 +82,9 @@
/*
* SECUMOD
*/
-#define HAL_USE_SECUMOD TRUE
+#define SAMA_ST_USE_PIT TRUE
+#define SAMA_ST_USE_TC0 FALSE
+#define SAMA_ST_USE_TC1 FALSE
/*
* TC driver system settings.