Tweaks PAPB polling #533

Merged
muellerr merged 32 commits from tweaks_papb_polling into develop 2023-03-28 22:18:27 +02:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 363fc89209 - Show all commits

View File

@ -76,7 +76,8 @@ ReturnValue_t PapbVcInterface::pollPapbBusySignal(uint32_t maxPollRetries) const
return PAPB_BUSY;
}
nanosleep(&nextDelay, const_cast<struct timespec*>(&remDelay));
// Ignore signal handling here for now.
nanosleep(&nextDelay, &remDelay);
if (nextDelay.tv_nsec * 2 <= MAX_DELAY_PAPB_POLLING_NS) {
nextDelay.tv_nsec *= 2;
}

View File

@ -87,7 +87,7 @@ class PapbVcInterface : public VirtualChannelIF {
std::string uioFile;
int mapNum = 0;
struct timespec remDelay;
mutable struct timespec remDelay;
volatile uint32_t* vcBaseReg = nullptr;