esp32s2: disable sdmmc api

This commit is contained in:
ChenJianxing 2020-06-01 20:08:20 +08:00 committed by zhangyanjiao
parent ba67a9518e
commit 7cbb970b50
2 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,8 @@ menu "Example Configuration"
choice SNIFFER_PCAP_DESTINATION choice SNIFFER_PCAP_DESTINATION
prompt "Select destination to store pcap file" prompt "Select destination to store pcap file"
default SNIFFER_PCAP_DESTINATION_SD default SNIFFER_PCAP_DESTINATION_SD if IDF_TARGET_ESP32
default SNIFFER_PCAP_DESTINATION_JTAG if IDF_TARGET_ESP32S2
help help
Select where to store the pcap file. Select where to store the pcap file.
Currently support storing files to SD card or to host via JTAG interface. Currently support storing files to SD card or to host via JTAG interface.

View file

@ -19,8 +19,10 @@
#include "esp_wifi.h" #include "esp_wifi.h"
#include "esp_err.h" #include "esp_err.h"
#include "esp_log.h" #include "esp_log.h"
#if CONFIG_SNIFFER_PCAP_DESTINATION_SD
#include "driver/sdmmc_host.h" #include "driver/sdmmc_host.h"
#include "driver/sdspi_host.h" #include "driver/sdspi_host.h"
#endif
#include "nvs_flash.h" #include "nvs_flash.h"
#include "sdmmc_cmd.h" #include "sdmmc_cmd.h"
#include "cmd_system.h" #include "cmd_system.h"