examples: file_serving: add support for ESP32-S3, refactoring

* Move filesystem mounting code into a separate file to simplify the
  main source file.
* Clean up SDMMC and SDSPI related code. Move pin configuration into
  Kconfig.
* Use same base_path ('/data') for either SPIFFS or SD. Remove the
  check in file_server.c about the base path.
* Update README according to the changes above.
This commit is contained in:
Ivan Grokhotkov
2022-02-08 20:25:08 +01:00
parent eefb0442c9
commit c8d1737d57
12 changed files with 368 additions and 281 deletions

View File

@@ -1,3 +1,2 @@
CONFIG_EXAMPLE_MOUNT_SD_CARD=y
CONFIG_EXAMPLE_FORMAT_IF_MOUNT_SDCARD_FAILED=y
CONFIG_EXAMPLE_USE_SDMMC_HOST=y