瀏覽代碼

enable required Pullups in SDHC_ReleaseGPIO(void)

main
Frank 7 年之前
父節點
當前提交
cea34a24d8
共有 1 個檔案被更改,包括 7 行新增6 行删除
  1. +7
    -6
      utility/KinetisSDHC.c

+ 7
- 6
utility/KinetisSDHC.c 查看文件

@@ -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…
取消
儲存