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
Josep Comas 2023-10-16 18:23:56 +02:00
rodzic 8b12923da2
commit 57cf18d7d4
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -298,6 +298,10 @@ 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.
// slot_config.flags = SDMMC_SLOT_FLAG_INTERNAL_PULLUP;
SET_CONFIG_PIN(slot_config, clk, ARG_sck);
SET_CONFIG_PIN(slot_config, cmd, ARG_mosi);
SET_CONFIG_PIN(slot_config, d0, ARG_miso);
SET_CONFIG_PIN(slot_config, gpio_cd, ARG_cd);
SET_CONFIG_PIN(slot_config, gpio_wp, ARG_wp);