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 <arch/irq.h>
#include "mcu_phy_bumbee.h"
#ifndef CONFIG_PHY6222_SDK
void TIM1_IRQHandler1(void)
{
/* HAL_ENTER_CRITICAL_SECTION() */
if (AP_TIM1->status & 0x1)
{
clear_timer_int(AP_TIM1);
clear_timer(AP_TIM1);
LL_evt_schedule();
}
/* HAL_EXIT_CRITICAL_SECTION(); */
}
#endif
#include "types.h"
#include "rom_sym_def.h"
#include <arch/irq.h>
#include "mcu_phy_bumbee.h"
extern int clear_timer_int(AP_TIM_TypeDef* TIMx);
extern void clear_timer(AP_TIM_TypeDef* TIMx);
extern void LL_evt_schedule(void);
#ifndef CONFIG_PHY6222_SDK
void TIM1_IRQHandler1(void)
{
/* HAL_ENTER_CRITICAL_SECTION() */
if (AP_TIM1->status & 0x1)
{
clear_timer_int(AP_TIM1);
clear_timer(AP_TIM1);
LL_evt_schedule();
}
/* HAL_EXIT_CRITICAL_SECTION(); */
}
#endif