]> granicus.if.org Git - esp-idf/commitdiff
chore(spi): add log to show native pins or not when configure pins.
authormichael <xiaoxufeng@espressif.com>
Thu, 28 Dec 2017 02:31:23 +0000 (10:31 +0800)
committermichael <xiaoxufeng@espressif.com>
Thu, 28 Dec 2017 04:03:29 +0000 (12:03 +0800)
components/driver/spi_common.c

index 89d1f8c0177521e735c2ce3f722893b1b4f2c325..02c1b38b6d993d8e54477971b51af589ad07d692 100644 (file)
@@ -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