From: michael Date: Thu, 28 Dec 2017 02:31:23 +0000 (+0800) Subject: chore(spi): add log to show native pins or not when configure pins. X-Git-Tag: v3.1-beta1~502^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2552fdccd1fd865a6af64fabe94ff30a8aa03949;p=esp-idf chore(spi): add log to show native pins or not when configure pins. --- diff --git a/components/driver/spi_common.c b/components/driver/spi_common.c index 89d1f8c017..02c1b38b6d 100644 --- a/components/driver/spi_common.c +++ b/components/driver/spi_common.c @@ -246,6 +246,11 @@ esp_err_t spicommon_bus_initialize_io(spi_host_device_t host, const spi_bus_conf } *is_native = native; + if ( native ) { + ESP_LOGD(SPI_TAG, "SPI%d use native pins.", host ); + } else { + ESP_LOGD(SPI_TAG, "SPI%d use gpio matrix.", host ); + } if (native) { //All SPI native pin selections resolve to 1, so we put that here instead of trying to figure