esp-idf/components
Ivan Grokhotkov 9379d7b9f9 sdmmc: wait for command done event even if data transfer is over
This fixes errors logged on the console: sdmmc_req:
handle_idle_state_events unhandled: 00000004 00000000

The issue happens if "data done" event occurs before "command done".
State machine code did not check *which* event occurred in
SENDING_CMD state, and went to IDLE or SENDING_DATA state on any
non-error event. In this case, we can't process "data done" event
until command has completed. This change introduces "unhandled event"
mask, which is carried over from one run of process_events to the
other. This allows waiting for the "command done" event to complete,
and then process "data done" event.

Ref TW17126.
2018-05-15 09:59:20 +08:00
..
2018-04-17 16:36:49 +05:00
2018-04-30 14:22:45 +05:30
2018-02-28 10:17:14 +11:00
2018-04-25 14:54:09 +08:00
2016-11-16 15:57:34 +11:00
2017-03-07 10:18:47 +11:00
2018-05-11 14:49:35 +08:00