Tweaks PAPB polling #533
@ -35,7 +35,7 @@ ReturnValue_t PapbVcInterface::write(const uint8_t* data, size_t size) {
|
|||||||
}
|
}
|
||||||
for (size_t idx = 0; idx < size; idx++) {
|
for (size_t idx = 0; idx < size; idx++) {
|
||||||
// This delay is super-important, DO NOT REMOVE!
|
// 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);
|
nanosleep(&BETWEEN_POLL_DELAY, &remDelay);
|
||||||
if (pollPapbBusySignal(2) == returnvalue::OK) {
|
if (pollPapbBusySignal(2) == returnvalue::OK) {
|
||||||
*(vcBaseReg + DATA_REG_OFFSET) = static_cast<uint32_t>(data[idx]);
|
*(vcBaseReg + DATA_REG_OFFSET) = static_cast<uint32_t>(data[idx]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user