4 #include <rtsSystems.h>
46 inline unsigned int trgQTCrateMask(
int my_trg_instance,
unsigned int stp_system_word)
48 unsigned int mask = 0 ;
50 switch(my_trg_instance) {
51 case TRG_QT1_INSTANCE :
52 case TRG_QT2_INSTANCE :
53 case TRG_QT3_INSTANCE :
54 case TRG_QT4_INSTANCE :
55 if(stp_system_word & (1<<TRG_SYS_FMS)) mask |= 0x3FF ;
57 case TRG_BBQ_INSTANCE :
58 if(stp_system_word & (1<<TRG_SYS_BBC)) mask |= 0x001 ;
59 if(stp_system_word & (1<<TRG_SYS_VPD)) mask |= 0x040 ;
60 if(stp_system_word & (1<<TRG_SYS_ZDC)) mask |= 0x100 ;
62 case TRG_MXQ_INSTANCE :
63 if(stp_system_word & (1<<TRG_SYS_MTD)) mask |= 0x371 ;
64 if(stp_system_word & (1<<TRG_SYS_PP2)) mask |= 0x002 ;
65 if(stp_system_word & (1<<TRG_SYS_ZDC)) mask |= 0x004 ;
66 if(stp_system_word & (1<<TRG_SYS_VPD)) mask |= 0x018 ;
68 case TRG_FEQ_INSTANCE :
69 if(stp_system_word & (1<<TRG_SYS_EPD)) mask |= 0x003 ;