Skip to content
Snippets Groups Projects

Fix array length for GE1/1 VFAT HDLC addresses

Merged Laurent Petre requested to merge bugfix/ge11-hdlc-addresses into main
2 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
1
@@ -122,11 +122,12 @@ void gem::hardware::amc::recover::operator()() const
// Write the correct HDLC addresses to the appropriate registers
// They are all zeros for GE1/1, found in GEB specs for GE2/1
// Stored in hw_constants.h
LOG4CPLUS_INFO(logger, "Set the VFAT HDLC addresses");
for (uint32_t i = 0; i < oh::VFATS_PER_OH; i++) {
const auto register_hdlc_address = std::string { "BEFE.GEM.GEM_SYSTEM.VFAT3.VFAT" } + std::to_string(i) + "_HDLC_ADDRESS";
utils::writeReg(register_hdlc_address, vfat::HDLC_ADDRESSES.at(i));
}
LOG4CPLUS_INFO(logger, "Set HDLC addresses");
// == Align the TTC clock phase ==
LOG4CPLUS_INFO(logger, "Align the TTC clock phase");
Loading