瀏覽代碼

add: 补充fatfs库所需要的2个函数

Wendal Chen 2 年之前
父節點
當前提交
be320a90d9
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      luatos/components/luat/port/luat_spi_idf5.c

+ 11 - 0
luatos/components/luat/port/luat_spi_idf5.c

@@ -495,3 +495,14 @@ int luat_spi_change_speed(int spi_id, uint32_t speed) {
     return ret;
     // return 0;
 }
+
+#ifdef LUAT_USE_FATFS
+#include "ff.h"
+#include "diskio.h"
+void luat_spi_set_sdhc_ctrl(block_disk_t *disk) {
+
+}
+
+void luat_sdio_set_sdhc_ctrl(block_disk_t *disk) {
+}
+#endif