@@ -25,6 +25,7 @@
#include <fal.h>
#include <sfud.h>
+#ifdef FAL_USING_SFUD_PORT
#ifdef RT_USING_SFUD
#include <spi_flash_sfud.h>
#endif
@@ -97,3 +98,5 @@ static int erase(long offset, size_t size)
return size;
}
+#endif /* FAL_USING_SFUD_PORT */
+