FOC开环调试成功
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "initial.h"
|
||||
#include "systick.h"
|
||||
#include <stdint.h>
|
||||
#include "Timer.h"
|
||||
|
||||
extern u16 adc_value[7];
|
||||
|
||||
@@ -117,6 +118,13 @@ u8 watchdog_init(u32 time) {
|
||||
fwdgt_enable();
|
||||
return status;
|
||||
}
|
||||
/**
|
||||
* @brief driver输出初始化
|
||||
*/
|
||||
void driver_init(void) {
|
||||
timer1_gpio_config();
|
||||
timer1_pwm_config();
|
||||
}
|
||||
|
||||
int fputc(int ch, FILE *f) throw() {
|
||||
usart_data_transmit(EVAL_COM0, (uint8_t)ch);
|
||||
|
||||
Reference in New Issue
Block a user