📄 int_handler.c
字号:
/**************************************************************/
/* File: int_handler.c */
/* Purpose: IRQ interrupt handler code */
/**************************************************************/
/*
** Copyright (C) ARM Limited, 2000. All rights reserved.
*/
/* #include "rpsarmul.h" */ /* EITHER: to use with the ARMulator */
/* OR: to use with the Integrator board */
/******************************************************************************
* IRQHandler *
* *
* This function handles IRQ interrupts. In this example, these may come from *
* Timer 1 or Timer 2. *
* *
* This handler simply clears the interrupt and sets corresponding flags. *
* These flags are then checked by the main application. *
* *
*******************************************************************************/
#include "s3c4510b.h"
void __irq IRQ_Handler(void)
{
unsigned long irqstatus;
irqstatus=*ARM_INTPEND;
*ARM_INTPEND=0X03;
if(irqstatus & 0x01) *ARM_IOPDATA=0X0F;
else if(irqstatus & 0x02) *ARM_IOPDATA=0XF0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -