Tweaks PAPB polling #533

Merged
muellerr merged 32 commits from tweaks_papb_polling into develop 2023-03-28 22:18:27 +02:00
Showing only changes of commit 053cfed093 - Show all commits

View File

@ -35,7 +35,7 @@ ReturnValue_t PapbVcInterface::write(const uint8_t* data, size_t size) {
}
for (size_t idx = 0; idx < size; idx++) {
// This delay is super-important, DO NOT REMOVE!
// Polling the GPIO
// Polling the GPIO too often can mess up the scheduler.
nanosleep(&BETWEEN_POLL_DELAY, &remDelay);
if (pollPapbBusySignal(2) == returnvalue::OK) {
*(vcBaseReg + DATA_REG_OFFSET) = static_cast<uint32_t>(data[idx]);