Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed obsolete code in CRU BAR interface #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/Cru/CruBar.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
Expand Down Expand Up @@ -184,16 +183,13 @@ uint32_t CruBar::getSuperpageFifoEmptyCounter(uint32_t link)
/// Signals the CRU DMA engine to start
void CruBar::startDmaEngine()
{
writeRegister(Cru::Registers::DMA_CONTROL.index, 0x11); // send DMA start (bit #0)
// dyn offset enabled (bit #4)
modifyRegister(Cru::Registers::DATA_GENERATOR_CONTROL.index, 0, 1, 0x1); // enable data generator
writeRegister(Cru::Registers::DMA_CONTROL.index, 0x1); // send DMA start (bit #0)
}

/// Signals the CRU DMA engine to stop
void CruBar::stopDmaEngine()
{
modifyRegister(Cru::Registers::DMA_CONTROL.index, 8, 1, 0x1); // send DMA flush to the CRU
modifyRegister(Cru::Registers::DATA_GENERATOR_CONTROL.index, 0, 1, 0x0); // disable data generator
}

/// Resets the data generator counter
Expand Down