generated from hulk/gd32e23x_template_cmake_vscode
fix(timer):修复在输出高电平时,CCR=ARR情况下,驱动信号有毛刺。设置CCR=ARR+1,即可解决要输出高电平时的毛刺问题。
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include "gd32e23x.h"
|
||||
#include "stdbool.h"
|
||||
|
||||
#define ACTUARTOR_PERIOD_MAX 1000u
|
||||
|
||||
void actuator_init(void);
|
||||
|
||||
void actuator_output(actuator_channel_t channel, uint16_t duty, actuator_direction_t direction);
|
||||
|
||||
Reference in New Issue
Block a user