📄 extint.c
字号:
/****************************************************************
** *
** FILE : ExtINT.C *
** COPYRIGHT : (c) 2001 .Xiamen Yaxon NetWork CO.LTD *
** *
** *
** By : Cyb 2006.12.1 *
****************************************************************/
#include "includes.h"
#include "bsp.h"
#include "hardware.h"
#include "extint.h"
#include "audio.h"
#include "message.h"
#include "almtask.h"
#include "extint.h"
#include "recorder.h"
static void InitIRQPort(void)
{
InitIRQ1Port();
InitIRQ2Port();
}
void InitExtInt(void)
{
InitIRQPort();
AIC_Install(AT91C_ID_IRQ1,IRQ1_PRIO,AIC_EDGE_NEGATIVE,ExtInt1ISR);
AIC_Int_Enable(AT91C_ID_IRQ1);
#if USEIRQ2 <=1
AIC_Install(AT91C_ID_IRQ2,IRQ2_PRIO,AIC_EDGE_NEGATIVE,ExtInt2ISR);
AIC_Int_Enable(AT91C_ID_IRQ2);
#endif
}
void ExtInt1ISR(void)
{
ActivateAudio();
// AudioINT();
}
#if USEIRQ2 <=1
void ExtInt2ISR(void)
{
// RecInt();
// OSQPost(AlmTaskMsgQue, MSG_SENSOR_INTRECINT, 0, 0);
IntToRecorder();
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -