Skip to content

Commit

Permalink
revert:回退luat_pwm_open的修改
Browse files Browse the repository at this point in the history
  • Loading branch information
doudouladou committed Oct 31, 2023
1 parent 24768b1 commit 3581556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion luat/include/luat_pwm.h
Expand Up @@ -14,7 +14,7 @@ typedef struct luat_pwm_conf {
uint8_t reverse;
} luat_pwm_conf_t;

int luat_pwm_open(int channel, size_t period, size_t pulse, int pnum, uint8_t reverse, int stop_level);
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);
int luat_pwm_close(int channel);
Expand Down
2 changes: 1 addition & 1 deletion luat/weak/luat_pwm_weak.c
Expand Up @@ -3,5 +3,5 @@
#include "luat_pwm.h"

LUAT_WEAK int luat_pwm_setup(luat_pwm_conf_t* conf) {
return luat_pwm_open(conf->channel, conf->period, conf->pulse, conf->pnum, conf->reverse, conf->stop_level);
return luat_pwm_open(conf->channel, conf->period, conf->pulse, conf->pnum);
}

0 comments on commit 3581556

Please sign in to comment.