tao_z
2021-06-30 945ba42f7550d5a203e43d82b43ed82dc981d9e9
USR/SRC/gd32e23x_it.c
@@ -36,6 +36,8 @@
#include "gd32e23x_it.h"
#include "motor.h"
#include "pwm.h"
#include "os_task.h"
/*!
    \brief      this function handles NMI exception
@@ -141,7 +143,7 @@
*/
void SysTick_Handler(void)
{
    delay_decrement();
    OS_TickFlag = 1;
}
/*!
    \brief      this function handles EXTI4-15 exception
@@ -170,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);
    }
}