]> granicus.if.org Git - esp-idf/commit
examples/sdmmc: enable internal pull-ups in SD mode
authorIvan Grokhotkov <ivan@espressif.com>
Fri, 13 Oct 2017 00:21:06 +0000 (08:21 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Fri, 13 Oct 2017 00:21:06 +0000 (08:21 +0800)
commita5f96b22d1fc126ed470faf4234c1ddd25a3dea0
treebaead0dd05f742f6aa698588c01785f5b7738f9c
parent3cf23ff77d958e211114199324232ba80ed14012
examples/sdmmc: enable internal pull-ups in SD mode

Some development boards do not have sufficient external pull-ups on
SD card pins. Most notably, if high level on GPIO13 is not registered
by the card when GO_IDLE_STATE command is received, the card will enter
SPI mode and further communication will not be possible, until power to
the card is toggled.

This change enables internal pull-ups on SD card pins in an attempt to
make this initialization process more reliable.
examples/storage/sd_card/main/sd_card_example_main.c