From c8a29d8802f436115664cc640faa8389cb4beb19 Mon Sep 17 00:00:00 2001 From: areviu Date: Mon, 15 Jan 2018 21:08:56 +0000 Subject: removed legacy code for pmc git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11288 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/ATSAMA5D2/SDMMC/main.c | 15 --------------- testhal/ATSAMA5D2/SDMMC/mcuconf.h | 4 +++- 2 files changed, 3 insertions(+), 16 deletions(-) (limited to 'testhal') 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. -- cgit v1.2.3