fix warning

This commit is contained in:
p-eaglelaw 2022-08-07 10:34:14 +08:00 committed by Xiang Xiao
parent 702e2f3680
commit 631ae0032e

View File

@ -1,19 +1,24 @@
#include "types.h" #include "types.h"
#include <arch/irq.h> #include "rom_sym_def.h"
#include "mcu_phy_bumbee.h" #include <arch/irq.h>
#include "mcu_phy_bumbee.h"
#ifndef CONFIG_PHY6222_SDK
void TIM1_IRQHandler1(void) extern int clear_timer_int(AP_TIM_TypeDef* TIMx);
{ extern void clear_timer(AP_TIM_TypeDef* TIMx);
/* HAL_ENTER_CRITICAL_SECTION() */ extern void LL_evt_schedule(void);
if (AP_TIM1->status & 0x1) #ifndef CONFIG_PHY6222_SDK
{ void TIM1_IRQHandler1(void)
clear_timer_int(AP_TIM1); {
clear_timer(AP_TIM1); /* HAL_ENTER_CRITICAL_SECTION() */
LL_evt_schedule();
} if (AP_TIM1->status & 0x1)
{
/* HAL_EXIT_CRITICAL_SECTION(); */ clear_timer_int(AP_TIM1);
} clear_timer(AP_TIM1);
#endif LL_evt_schedule();
}
/* HAL_EXIT_CRITICAL_SECTION(); */
}
#endif