kopia lustrzana https://github.com/micropython/micropython
ports/esp32/machine_sdcard.c: CLK, CMD and D0 custom pins in SD/MMC.
Signed-off-by: Josep Comas <jcomas@gmail.com>pull/12708/head
rodzic
75cb7218e1
commit
d17135d5d2
|
@ -298,7 +298,7 @@ STATIC mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args
|
||||||
// it is a good idea to set the internal pull-ups anyway.
|
// it is a good idea to set the internal pull-ups anyway.
|
||||||
// slot_config.flags = SDMMC_SLOT_FLAG_INTERNAL_PULLUP;
|
// slot_config.flags = SDMMC_SLOT_FLAG_INTERNAL_PULLUP;
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32S3
|
||||||
SET_CONFIG_PIN(slot_config, clk, ARG_sck);
|
SET_CONFIG_PIN(slot_config, clk, ARG_sck);
|
||||||
SET_CONFIG_PIN(slot_config, cmd, ARG_mosi);
|
SET_CONFIG_PIN(slot_config, cmd, ARG_mosi);
|
||||||
SET_CONFIG_PIN(slot_config, d0, ARG_miso);
|
SET_CONFIG_PIN(slot_config, d0, ARG_miso);
|
||||||
|
|
Ładowanie…
Reference in New Issue