aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/ATSAMA5D2
diff options
context:
space:
mode:
authorareviu <areviu.info@gmail.com>2018-01-15 21:08:56 +0000
committerareviu <areviu.info@gmail.com>2018-01-15 21:08:56 +0000
commitc8a29d8802f436115664cc640faa8389cb4beb19 (patch)
tree9cb163de4d0c927a73ace97d8dac773b2463c683 /testhal/ATSAMA5D2
parenta5fa48f014bdcb90297fbfefcb08b5b9f9019ed7 (diff)
downloadChibiOS-c8a29d8802f436115664cc640faa8389cb4beb19.tar.gz
ChibiOS-c8a29d8802f436115664cc640faa8389cb4beb19.tar.bz2
ChibiOS-c8a29d8802f436115664cc640faa8389cb4beb19.zip
removed legacy code for pmc
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11288 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/ATSAMA5D2')
-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.