浏览代码

add:补充函数

alienwalker 2 年之前
父节点
当前提交
5ff6681cab
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      luat/include/luat_pwm.h

+ 4 - 0
luat/include/luat_pwm.h

@@ -14,6 +14,10 @@ typedef struct luat_pwm_conf {
     uint8_t reverse;
 } luat_pwm_conf_t;
 
+#ifdef __LUATOS__
+#else
+int luat_pwm_set_callback(int channel, CBFuncEx_t callback, void *param);
+#endif
 int luat_pwm_open(int channel, size_t period, size_t pulse, int pnum);
 int luat_pwm_setup(luat_pwm_conf_t* conf);
 int luat_pwm_capture(int channel,int freq);