We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef80c63 commit 7da5453Copy full SHA for 7da5453
src/Cru/Gbt.cxx
@@ -291,8 +291,11 @@ uint32_t Gbt::getTxClockFrequency(Link link) //In Hz
291
292
void Gbt::resetFifo()
293
{
294
- mPdaBar->writeRegister(Cru::Registers::BSP_USER_CONTROL.index, 0x80);
295
- mPdaBar->writeRegister(Cru::Registers::BSP_USER_CONTROL.index, 0x0);
+ mPdaBar->modifyRegister(Cru::Registers::BSP_USER_CONTROL.index, 7, 1, 0x1); // reset TX
+ mPdaBar->modifyRegister(Cru::Registers::BSP_USER_CONTROL.index, 8, 1, 0x1); // reset RX
296
+
297
+ mPdaBar->modifyRegister(Cru::Registers::BSP_USER_CONTROL.index, 7, 1, 0x0);
298
+ mPdaBar->modifyRegister(Cru::Registers::BSP_USER_CONTROL.index, 8, 1, 0x0);
299
}
300
301
} // namespace roc
0 commit comments