00001 /****************************************************** 00002 * Function: s3c2440 interrupt driver 00003 * 00004 * File: interrupt.c 00005 * Author: Book Chen 00006 * Date: 2008.07.18 00007 ******************************************************* 00008 */ 00009 #include "includes.h" 00010 00011 INTERRUPT_CONTROL InterruptCtrl; 00012 00013 void F_InterruptInitial(void); 00014 void F_InterruptIrqEnable(INT32U Bit); 00015 void F_InterruptIrqDisable(INT32U Bit); 00016 void F_InterruptSubIrqEnable(INT32U Bit); 00017 void F_InterruptSubIrqDisable(INT32U Bit); 00018 00019 void F_InterruptInitial(void){ 00020 rSRCPND=0x00000000; 00021 rINTMOD=0x00000000; 00022 rINTMSK=0xffffffff; 00023 rPRIORITY=0x7f; 00024 rPRIORITY=0x00; 00025 rINTPND=0x00000000; 00026 rINTOFFSET=0x00000000; 00027 rSUBSRCPND=0x00000000; 00028 rINTSUBMSK=0x00007fff; 00029 } 00030 void F_InterruptIrqEnable(INT32U Bit){ 00031 rINTMSK&=~(Bit); 00032 } 00033 void F_InterruptIrqDisable(INT32U Bit){ 00034 rINTMSK|=Bit; 00035 } 00036 void F_InterruptSubIrqEnable(INT32U Bit){ 00037 rINTSUBMSK&=~(Bit); 00038 } 00039 void F_InterruptSubIrqDisable(INT32U Bit){ 00040 rINTSUBMSK|=Bit; 00041 }