?? int_handlers.c
字號:
/*
* File: main.c
* Purpose: Basic process and interrupt handlers
*
*/
#include "type.h"
#include "mcf5249.h"
#include "base.h"
//#include "sysinit.h"
#include "int_handlers.h"
/********************************************************************/
//An exception has occurred
__declspec(interrupt)
void test_handler(void)
{
asm(nop);
}
/********************************************************************/
//An exception has occurred
__declspec(interrupt)
void exception_handler(void)
{
asm(nop);
}
/********************************************************************/
//An IRQ has been processed
__declspec(interrupt)
void irq_handler(void)
{
asm(nop);
}
/********************************************************************/
//An IRQ has been processed
__declspec(interrupt)
void irq5_handler(void)
{
DISABLEIRQ5;
imm2->gpio.GIS |= MCF5249_GPIO5_HL;
ENABLEIRQ5;
}
/********************************************************************/
//An timer0 reference has been processed
__declspec(interrupt)
void timer0_handler(void)
{
imm->timer.TER0 |= MCF5249_TIMER_TER_REF;
/*if(Testflags)
{
imm2->gpio.G1OR &= ~MCF5249_GPIO38;
Testflags = 0;
}
else
{
imm2->gpio.G1OR |= MCF5249_GPIO38;
Testflags = 1;
}//*/
}
/********************************************************************/
//An IIS2 transmit fifo empty has been processed
__declspec(interrupt)
void IIS2_fifoempty_handler(void)
{
imm2->iis.AUDIOINTERRUPTSTA = 0;
imm2->iis.PDOR3 = (Isrflags<<16)|((0-Isrflags)&0x0000FFFF);
Isrflags = Isrflags + 0x10;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -