Browse Source

fix: api, luat_spi.h写着串口id

Wendal Chen 10 months ago
parent
commit
fc2b2c9768
2 changed files with 2 additions and 2 deletions
  1. 1 1
      demo/camera/Air105/capture/main.lua
  2. 1 1
      luat/include/luat_spi.h

+ 1 - 1
demo/camera/Air105/capture/main.lua

@@ -86,7 +86,7 @@ sys.taskInit(function()
 
     local spiId = 2
     local result = spi.setup(
-        spiId,--串口id
+        spiId,--spi id
         255, -- 不使用默认CS脚
         0,--CPHA
         0,--CPOL

+ 1 - 1
luat/include/luat_spi.h

@@ -40,7 +40,7 @@ typedef struct luat_fatfs_spi
 typedef int (*luat_spi_irq_callback_t)(int spi_id, void *user_data);
 
 /**
-    spiId,--串口id
+    spiId,--spi id
     cs,
     0,--CPHA
     0,--CPOL