Bläddra i källkod

Merge pull request #9 from FrankBoesing/patch-1

enable required Pullups in SDHC_ReleaseGPIO(void)
main
Paul Stoffregen 7 år sedan
förälder
incheckning
f4105ecf4e
1 ändrade filer med 7 tillägg och 6 borttagningar
  1. +7
    -6
      utility/KinetisSDHC.c

+ 7
- 6
utility/KinetisSDHC.c Visa fil

@@ -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; /* PULLUP 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.D2 */
}



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

Laddar…
Avbryt
Spara