feat(FOC): 添加开关机功能并优化定时器配置
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "initial.h"
|
||||
#include "gd32c10x_timer.h"
|
||||
#include "systick.h"
|
||||
#include <stdint.h>
|
||||
#include "Timer.h"
|
||||
@@ -124,6 +125,8 @@ u8 watchdog_init(u32 time) {
|
||||
void driver_init(void) {
|
||||
timer1_gpio_config();
|
||||
timer1_pwm_config();
|
||||
TIMER3_config();
|
||||
|
||||
}
|
||||
|
||||
int fputc(int ch, FILE *f) throw() {
|
||||
|
||||
Reference in New Issue
Block a user