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
This commit is contained in:
edolomb 2018-03-20 15:48:32 +00:00
parent 6d1e6cca8f
commit 1db7f68d4a
1 changed files with 4 additions and 4 deletions

View File

@ -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);