/**************************************************************************** /* F i l e D a t a /* /* Module : BasicSW /* C.I. No. : /* $Revision: 1.20 $ /* $Date: 2005/03/20 18:16:27 $ /* Belonging to : /* : /* $RCSfile: IM_InterruptManager_op.c,v $ /* Program Type : /* Sub-modules : /* /**************************************************************************** /* S W D e v e l o p m e n t E n v i r o n m e n t /* /* Host system : /* SW Compiler : /* $Author: sebastiani $ /* : /**************************************************************************** /* U p d a t i n g /* /* $Log: IM_InterruptManager_op.c,v $ /* Revision 1.20 2005/03/20 18:16:27 sebastiani /* watch dog reenabled; TIM_MMSU_DMA_DELAY cancelled in WriteEOT /* /* Revision 1.19 2005/03/06 14:51:51 sebastiani /* fix /* /* Revision 1.18 2005/02/21 08:58:28 sebastiani /* all log comments completed /* /* Revision 1.17 2005/02/19 10:05:23 sebastiani /* LU_HA introduces in a log line /* /* Revision 1.16 2005/01/26 18:46:19 sebastiani /* *** empty log message *** /* /* Revision 1.15 2004/10/06 16:38:21 sebastiani /* fix watchdog procedure /* /* Revision 1.14 2004/09/28 15:36:05 sebastiani /* interrupt manager fix /* /* Revision 1.13 2004/09/22 09:53:53 sebastiani /* added watchdog /* /* Revision 1.12 2004/09/17 15:01:00 faber /* LU_INFN_LOG flags fixing /* /* Revision 1.11 2004/09/09 14:49:25 sebastiani /* add get called /* /* Revision 1.10 2004/09/08 10:39:12 faber /* *** empty log message *** /* /* Revision 1.9 2004/08/26 16:53:48 sebastiani /* fix some bug /* /* Revision 1.8 2004/07/20 14:31:41 sebastiani /* *** empty log message *** /* /* Revision 1.7 2004/07/20 08:58:00 faber /* simulator mode for EEPROM procedures /* /* Revision 1.6 2004/07/08 16:23:29 sebastiani /* *** empty log message *** /* /* Revision 1.5 2003/11/18 09:01:14 alfarano /* laben patch fixes some problems /* /* Revision 1.4 2003/10/30 16:10:48 faber /* GPT disabled. the callback function is a null function /* /* Revision 1.3 2003/10/21 16:09:12 alfarano /* LU_LOG_INFN replacement for all remaining original log functions /* /* Revision 1.2 2003/08/07 08:49:07 wizard /* interrupt counter array introduced under DEBUF definition /* /* Revision 1.1.1.1 2003/08/04 09:40:21 sebastiani /* Imported sources laben rel. 19.06.2003 integrated with pam2 /* /* Revision 1.12 2003/05/20 12:22:24 aurora /* masked HW errors for EM /* /* Revision 1.11 2003/02/26 16:30:32 aurora /* improved response time for CRIMEA interrupts /* /* Revision 1.10 2003/01/30 09:43:26 aurora /* introduced ifdef for EM and FM /* /* Revision 1.9 2003/01/22 13:50:20 aurora /* Added the sw management for three new interrupt on Crimea /* /* Revision 1.8 2002/10/25 08:59:07 zulia /* removed clear of interrupt 5 after prepare_page /* /* Revision 1.7 2002/05/09 08:16:34 zulia /* * acceptance release /* /* /*****************************************************************************/ /*============================= Include File ================================*/ #include #define __FILEID__ _IM_InterruptManager_op__c #include #include #include #include #include #include #include #include LU_DECL_MASK(); /*****************************************************************************/ /*============================= Object variables ============================*/ #ifdef DEBUG typedef enum { IM_NULL, IM_INT1, IM_MOD1, IM_MOD2, IM_1553B, IM_PIF_ETO, IM_AUX1, IM_AUX2, IM_AUX3, IM_INT2, IM_INT3, IM_INT4, IM_INT5, IM_INT_MAX } IM_INTS; static unsigned int IM_Called[IM_INT_MAX]; #endif /*****************************************************************************/ /*=== I M _ I n t e r r u p t M a n a g e r O P E R . F U N C T I O N S ===*/ #ifdef DEBUG unsigned int IM_GetCalled(int i) { return IM_Called[i]; } unsigned int IM_opResetCalled() { int i; for(i=0;i