tao_z
2021-06-30 945ba42f7550d5a203e43d82b43ed82dc981d9e9
USR/SRC/gd32e23x_it.c
@@ -36,6 +36,7 @@
#include "gd32e23x_it.h"
#include "motor.h"
#include "pwm.h"
#include "os_task.h"
/*!
@@ -171,7 +172,8 @@
{
    if (SET == timer_interrupt_flag_get(TIMER2, TIMER_INT_FLAG_UP)) //time2 count up overflow
    {
        BLDC_SpeedAndPID();
        // BLDC_SpeedAndPID();
        TIMER2_IRQHandler_CallBack();
        timer_interrupt_flag_clear(TIMER2, TIMER_INT_FLAG_UP);
    }
}