/** * com1553 - MIL-1553 Communication Library for Herschel - Initialization of RT. * * Filename : \file init1553.c * * Purposes : \brief [DONE] com1553 - MIL-1553 Communication Library for Herschel - Initialization of RT. * * Logical Task : in Spire - INIT * : in Pacs - TBW - TODO * : in HIFI - TBW - TODO * : \ingroup group_COM1553 * * Author : Scige * * Last Developer : $Author: lorenzo $ * * Revision : $Revision: 1.11 $ * * Checkout Tag : $Name: $ * * Last Modification : $Date: 2006/10/20 09:22:14 $ * * Location : $RCSfile: init1553.c,v $ * * \version : $Header: /home/local/cvsrep/OBS_FM/1553_Lib/init1553.c,v 1.11 2006/10/20 09:22:14 lorenzo Exp $ */ /* * Commitments History : * As reported in Main cvs Documentation * ( https://www.cvshome.org/docs/manual/cvs-1.11.18/cvs_12.html#SEC102 ) * The Modification Log has been posted at End Of File. */ // ---------------------------------------------------------------------------// // ---------------------------------------------------------------------------// #include #include "conf1553.h" #if OBSCODE == HIFI_CODE #elif OBSCODE == SPIRE_CODE #elif OBSCODE == PACS_CODE #include "1553_def.h" #include "LT_TMdef.h" #endif #include "init1553.h" // -- #include "ivar1553.h" #include "MilConf.h" #include "MilInit.h" // ---------------------------------------------------------------------------// // ---------------------------------------------------------------------------// // -- Functions in this module void main_1553_init ( void ); void main_1553_exit ( void ); static void dpu_rt_init ( void ); // ---------------------------------------------------------------------------// // ---------------------------------------------------------------------------// /** void main_1553_init ( void ); * \brief Initialize Packet Transfer Request Queue.\n * \brief Initialize DDC1553 Hardware Chip.\n * \brief Nest Interrupt Activation Chain in Virtuoso Environment.\n * * \note In Spire mode there is no Interrupt Activation Chain Nesting. * \note In Spire mode there is no registration of event handler. * \note In Spire mode there is no activation of event handler. * \note In Spire mode there is no registration of interrupt service. * * \callgraph * \ingroup group_COM1553 */ void main_1553_init ( void ) { int gi; { TmWriter=&TM_PACK[0]; TmReader=&TM_PACK[0]; for ( gi=0; gi 257 to cover the stack pointer too. MilRTEnhMM(MilRTConf, TRUE); //RT Enhanced memory management capabilities MilRTAltStatusEna(MilRTConf, FALSE); //No alternate Status word - compliant to 1553B MilRTFlagWrap(MilRTConf, TRUE); // it there is an RT faileure this is notified in the status word /* no flags set in status */ MilRTSetBusy(MilRTConf, FALSE); // set BUSY bit to 0 - use of this bit is optional and we do not use here MilRTSetSSflag(MilRTConf, FALSE); // set SubSystem flag to 0 - use of this bit is optional and we do not use here MilRTSetSvcReq(MilRTConf, FALSE); // set service request flag to 0 - use of this bit is optional and we do not use here MilRTFlag(MilRTConf, FALSE); // set RTFLAG to 0 - toggling to 1 only if there is an RT failure (see above) MilRTRun(MilRTConf); // Starts RT // MilWriteReg(MilRTConf, CONFIG_1, 0x8F80); } // ---------------------------------------------------------------------------// // ---------------------------------------------------------------------------// /* * Commitments History : * $Log: init1553.c,v $ * Revision 1.11 2006/10/20 09:22:14 lorenzo * 1553 library updated * * Revision 1.8 2006/10/16 14:19:53 scige * Some More Comments * * Revision 1.7 2006/07/04 10:08:08 lorenzo * restored handling of redundant unit: changed only within if code=HIFI_code, no effects for the other two obss * * Revision 1.9 2006/06/13 15:51:08 lorenzo * obs4 first branch merged * * Revision 1.8.4.1 2006/06/13 09:06:25 lorenzo * libs updated + error corrected * * Revision 1.6 2006/06/07 11:44:56 scige * Some More Comment * by Scige John Liu IFSI * * Revision 1.5 2006/04/27 10:21:44 scige * Some more Comment alignement before STRONG COMMENTING * * Revision 1.4 2006/02/15 13:06:56 scige * Comment Style Restored * * Revision 1.4 2006/02/10 14:48:44 scige * Backup some comment lost and some history log. * Introdusing new naming. * Introducing new file for a portable inclusion: iext1553.h. * * Revision 1.5 2006/02/09 11:23:59 scige * some var had 2 names * * Revision 1.4 2006/02/09 08:18:13 scige * Some Functions Renamed * * Revision 1.3 2006/02/08 15:23:52 scige * Better Tag Documentation * * Revision 1.2 2006/02/08 10:55:53 scige * Partitioning - "init1553.h" TO "init1553.h" AND "iext1553.h" * * Revision 1.1 2006/02/08 10:46:30 scige * Some minor Refinement * * Revision 1.1 2006/02/07 14:04:03 scige * New Directory Restiling * * Revision 1.1 2006/02/03 16:31:36 scige * Mil1553 Communication Library * New Base Commitment * * Revision 1.4 2005/09/16 13:09:40 scige * *** empty log message *** * * Revision 1.2 2005/08/26 12:16:19 scige * storage * * Revision 1.1 2005/08/10 12:53:39 scige * Communication Library: 1553 * com1553 * Base Common Version of Spire/Pacs OBS * * */