]> granicus.if.org Git - esp-idf/commit
sdmmc host: add handling of CD and WP pins
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 23 Apr 2018 06:44:46 +0000 (14:44 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 24 Apr 2018 11:08:44 +0000 (19:08 +0800)
commit85ab4fc83e05f04f33324a7a1a51263eaaeeb926
treed0ff727235b6848736ca3238b5e8dc18ab9fe289
parent829c6cef395e9eeb05ab5c0780abcb59286c888d
sdmmc host: add handling of CD and WP pins

Previous version of the code only connected CD and WP to the
peripheral, in fact the hardware does not use the values of these
signals automatically. This adds code to read CD and WP values when
command is executed and return errors if card is not present, or
write command is executed when WP signal is active.
components/driver/sdmmc_host.c
components/soc/esp32/include/soc/sdmmc_struct.h