Progress with Kinetis SDHC driver (more to to)

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3904 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-08-22 15:42:10 +00:00
parent e874de4796
commit 749ff36d5c
3 changed files with 1 additions and 20 deletions

View File

@ -172,15 +172,6 @@ static void kinetis_mediachange(void)
g_nsh.inserted = inserted;
sdhc_mediachange(g_nsh.sdhc, inserted);
/* If the card has been inserted, then check if it is write protected
* aw well.
*/
if (inserted)
{
sdhc_wrprotect(g_nsh.sdhc, !kinetis_gpioread(GPIO_SD_WRPROTECT));
}
}
}
#endif
@ -228,10 +219,6 @@ int nsh_archinitialize(void)
kinetis_pinconfig(GPIO_SD_CARDDETECT);
kinetis_pinirqattach(GPIO_SD_CARDDETECT, kinetis_cdinterrupt);
/* Configure the write protect GPIO */
kinetis_pinconfig(GPIO_SD_WRPROTECT);
/* Mount the SDHC-based MMC/SD block driver */
/* First, get an instance of the SDHC interface */

View File

@ -111,7 +111,6 @@
#define GPIO_SD_CARDDETECT (GPIO_PULLUP | PIN_INT_BOTH | PIN_PORTE | PIN28)
#define GPIO_SD_WRPROTECT (GPIO_PULLUP | PIN_PORTE | PIN27)
#define GPIO_SD_CARDON (GPIO_HIGHDRIVE | GPIO_OUTPUT_ZER0 | PIN_PORTE | PIN6)
#define GPIO_SW1 (GPIO_PULLUP | PIN_INT_BOTH | PIN_PORTA | PIN19)
#define GPIO_SW2 (GPIO_PULLUP | PIN_INT_BOTH | PIN_PORTE | PIN26)

View File

@ -216,12 +216,7 @@ int nsh_archinitialize(void)
#ifdef CONFIG_NSH_HAVEMMCSD
int ret;
/* Configure GPIO pins.
*
* First CD power. The initial state will provide SD power.
*/
kinetis_pinconfig(GPIO_SD_CARDON); /* Applies power to the card */
/* Configure GPIO pins */
/* Attached the card detect interrupt (but don't enable it yet) */