mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 23:35:47 +00:00
fix warning
This commit is contained in:
parent
702e2f3680
commit
631ae0032e
1 changed files with 24 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue