PASII/CandeII_1.4/User/isr.c

56 lines
1.4 KiB
C

/*************************************************************************************************
**Filename: isr.c
**Version :
**Author :
**Date :
**Description:
**
*************************************************************************************************/
#include "mcu_bsp.h"
#include "lsm6d.h"
#include "DebugLog.h"
/*********************************************************************
* Global Function declared ('extern')
*/
extern void pack_timer_event();
/*************************************************************************************************
* Function Name:
* Description :
* Arguments :
* Return Value :
*************************************************************************************************/
void Timer_2_callback(void)
{
if(PAS.exist == 1) //³õʼ»¯
{
Lsm6dso_RPM_Cal();
}
pack_timer_event();
}
/*************************************************************************************************
* Function Name:
* Description :
* Arguments :
* Return Value :
*************************************************************************************************/
void GPIO_callback(void)
{
unsigned int SW;
SW = GPIO_IRQ_CTRL->GPIO_INT;
if(SW & U32BIT(LIS2D_INT2))
{
if((GPIO_Pin_Read(U32BIT(LIS2D_INT2)) & U32BIT(LIS2D_INT2))!= 0)
{
}
}
}
/*************************************************************************************************/