feat: 完成互补pwm输出接口

This commit is contained in:
2024-04-16 18:17:30 +08:00
parent 58af6f0c89
commit f0cbc9f1d3
16 changed files with 765 additions and 82 deletions

7
app/by_utils.c Normal file
View File

@@ -0,0 +1,7 @@
#include "by_utils.h"
inline int32_t clip_s32(int32_t x, int32_t low, int32_t up)
{
return (x > up ? up : x < low ? low
: x);
}