]> granicus.if.org Git - esp-idf/commit
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)
commitfdfa7e6cc2f817a7742db39f017bba2f5395c4e3
treeb48534daf8eaa868e3ab79922f5620fad3f50d8c
parent3f4e917ad6811e333723dc8d512fb6d1e61bf150
parent49848eaed52c003a4f19fd1cc750c2b5c886ee7a
Merge branch 'bugfix/sdmmc_timeout' into 'master'

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