]> granicus.if.org Git - esp-idf/commitdiff
Merge branch 'bugfix/sdmmc_timeout' into 'master'
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 25 Apr 2017 08:27:12 +0000 (16:27 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 25 Apr 2017 08:27:12 +0000 (16:27 +0800)
sdmmc: handle card removal when CD is not used

When SD card is removed during transaction, SDMMC peripheral can report
a range of errors, such as timeouts, CRC errors, start/end bit errors.
Under normal conditions (card is inserted), SDMMC peripheral also generates
command done or data done interrupts. When the card is removed, such
interrupts may not be always generated.

This change fixes handling of timeout interrupts and SBE interrupts.
It also adds a one second timeout into the event processing loop. This
timeout allows applications to recover in cases when the SDMMC peripheral
doesn’t generate command/data done event on card removal.

Fixes TW11592.

See merge request !678


Trivial merge