Browse Source

enable required Pullups in SDHC_ReleaseGPIO(void)

main
Frank 7 years ago
parent
commit
cea34a24d8
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      utility/KinetisSDHC.c

+ 7
- 6
utility/KinetisSDHC.c View File

@@ -561,15 +561,16 @@ static void SDHC_InitGPIO(void)
// release the SDHC Controller signals
static void SDHC_ReleaseGPIO(void)
{
PORTE_PCR0 = 0;
PORTE_PCR1 = 0;
PORTE_PCR2 = 0;
PORTE_PCR3 = 0;
PORTE_PCR4 = 0;
PORTE_PCR5 = 0;
PORTE_PCR0 = PORT_PCR_MUX(1) | PORT_PCR_PE | PORT_PCR_PS; /* PULLUP SDHC.D1 */
PORTE_PCR1 = PORT_PCR_MUX(1) | PORT_PCR_PE | PORT_PCR_PS; /* PULLUP SDHC.D0 */
PORTE_PCR2 = 0; /* SDHC.CLK */
PORTE_PCR3 = PORT_PCR_MUX(1) | PORT_PCR_PE | PORT_PCR_PS; /* SDHC.CMD */
PORTE_PCR4 = PORT_PCR_MUX(1) | PORT_PCR_PE | PORT_PCR_PS; /* PULLUP SDHC.D3 */
PORTE_PCR5 = PORT_PCR_MUX(1) | PORT_PCR_PE | PORT_PCR_PS; /* PULLUP SDHC.D1 */
}



static void SDHC_SetClock(uint32_t sysctl)
{
uint32_t n, timeout;

Loading…
Cancel
Save