Changeset 11372
- Timestamp:
- 07/13/11 14:51:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r11344 r11372 1597 1597 if (fTargetConfig==fConfigs.end()) 1598 1598 { 1599 T::Error("Configur ation'"+name+"' not found.");1599 T::Error("ConfigureFTM - Run-type '"+name+"' not found."); 1600 1600 return T::GetCurrentState(); 1601 1601 } … … 1609 1609 } 1610 1610 1611 int ResetConfig( const EventImp &)1611 int ResetConfig() 1612 1612 { 1613 1613 return fFTM.GetState(); … … 1900 1900 1901 1901 T::AddEvent("RESET_CONFIGURE", FTM::kConfiguring1, FTM::kConfiguring2, FTM::kConfigured, FTM::kConfigError1, FTM::kConfigError2) 1902 (boost::bind(&StateMachineFTM::ResetConfig, this , _1))1902 (boost::bind(&StateMachineFTM::ResetConfig, this)) 1903 1903 (""); 1904 1904 … … 1994 1994 1995 1995 // ---------- Setup clock conditioner frequencies ---------- 1996 const vector<uint16_t> freq = conf. Get<vector<uint16_t>>("clock-conditioner.frequency");1996 const vector<uint16_t> freq = conf.Vec<uint16_t>("clock-conditioner.frequency"); 1997 1997 if (freq.size()==0) 1998 1998 T::Warn("No frequencies for the clock-conditioner defined."); 1999 2000 T::Message("Defining clock conditioner frequencies");1999 else 2000 T::Message("Defining clock conditioner frequencies"); 2001 2001 for (vector<uint16_t>::const_iterator it=freq.begin(); 2002 2002 it!=freq.end(); it++) … … 2040 2040 2041 2041 // ---------- Setup run types --------- 2042 const vector<string> types = conf. Get<vector<string>>("run-type");2042 const vector<string> types = conf.Vec<string>("run-type"); 2043 2043 if (types.size()==0) 2044 2044 T::Warn("No run-types defined."); 2045 2046 T::Message("Defining run-types");2045 else 2046 T::Message("Defining run-types"); 2047 2047 for (vector<string>::const_iterator it=types.begin(); 2048 2048 it!=types.end(); it++) 2049 2049 { 2050 T::Message(" -> "+ *it); 2051 2050 2052 if (fConfigs.count(*it)>0) 2051 2053 { … … 2161 2163 // kMaxDAC = 0xfff, 2162 2164 } 2165 2166 // FIXME: Add a check about unsused configurations 2163 2167 2164 2168 // ---------- FOR TESTING PURPOSE ---------
Note:
See TracChangeset
for help on using the changeset viewer.