diff options
author | edolomb <none@example.com> | 2018-03-20 15:48:32 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2018-03-20 15:48:32 +0000 |
commit | 1db7f68d4ad84c7e8c9b5e1240e9bb2c684ce670 (patch) | |
tree | 32e2c97654eadc759e49cc068d4b597ec3accbce /os/hal/ports | |
parent | 6d1e6cca8fb3077f455d3852d1e39d70c5f89997 (diff) | |
download | ChibiOS-1db7f68d4ad84c7e8c9b5e1240e9bb2c684ce670.tar.gz ChibiOS-1db7f68d4ad84c7e8c9b5e1240e9bb2c684ce670.tar.bz2 ChibiOS-1db7f68d4ad84c7e8c9b5e1240e9bb2c684ce670.zip |
Deleted pin's setup. Pins are configured in board.c
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11829 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports')
-rw-r--r-- | os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc_device.c b/os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc_device.c index 194655c76..806fc4305 100644 --- a/os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc_device.c +++ b/os/hal/ports/SAMA/LLD/SDMMCv1/ch_sdmmc_device.c @@ -86,7 +86,7 @@ uint8_t sdmmc_device_lowlevelcfg(SdmmcDriver *driver) sdmmc_set_capabilities((Sdmmc*) SDMMC0, caps0, CAPS0_MASK, 0, 0);
/* Configure SDMMC0 pins */
-
+#if 0
/** SDMMC0 pin Card Detect (CD) */
palSetGroupMode(PIOA, (1u << PIOA_PIN13), 0U,
PAL_SAMA_FUNC_PERIPH_A | PAL_MODE_INPUT_PULLUP);
@@ -109,7 +109,7 @@ uint8_t sdmmc_device_lowlevelcfg(SdmmcDriver *driver) /** SDMMC0 pin 8-bit Data (DA0-7) */
palSetGroupMode(PIOA, 0x000003fc, 0U,
PAL_SAMA_FUNC_PERIPH_A | PAL_MODE_INPUT_PULLUP);
-
+#endif
res = 1;
}
@@ -122,6 +122,7 @@ uint8_t sdmmc_device_lowlevelcfg(SdmmcDriver *driver) sdmmc_set_capabilities(SDMMC1, caps0, CAPS0_MASK, 0, 0);
/* Configure SDMMC1 pins */
+#if 0
/** SDMMC1 pin Card Detect (CD) */
palSetGroupMode(PIOA, (1u << PIOA_PIN30), 0U,
PAL_SAMA_FUNC_PERIPH_E | PAL_MODE_INPUT_PULLUP);
@@ -136,7 +137,7 @@ uint8_t sdmmc_device_lowlevelcfg(SdmmcDriver *driver) /** SDMMC1 pin 4-bit Data (DA0-3) */
palSetGroupMode(PIOA, 0x003c0000, 0U,
PAL_SAMA_FUNC_PERIPH_E | PAL_MODE_INPUT_PULLUP);
-
+#endif
res = 1;
}
break;
@@ -145,7 +146,6 @@ uint8_t sdmmc_device_lowlevelcfg(SdmmcDriver *driver) break;
}
-
if (res) {
//check res
res = IS_CACHE_ALIGNED(driver->config->data_buf);
|