feat(platform/idf): add fatfs port for host msc

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-11-04 22:49:27 +08:00
parent cf85c8851a
commit cddc373eb2
3 changed files with 302 additions and 1 deletions

View File

@@ -64,7 +64,11 @@ elseif(ESP_PLATFORM)
idf_component_get_property(freertos_include freertos ORIG_INCLUDE_PATH)
set(priv_req esp_mm esp_netif esp_timer)
if(CONFIG_CHERRYUSB_HOST_MSC)
list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/platform/idf/usbh_fatfs.c)
endif()
set(priv_req esp_mm esp_netif esp_timer fatfs)
if(${IDF_VERSION_MAJOR} LESS 6)
list(APPEND priv_req usb)
endif()