Skip to content

Commit

Permalink
nrf_mbed: add some tactical delays
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Jun 23, 2022
1 parent 89f3556 commit bb7352a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Samba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ Samba::writeByte(uint32_t addr, uint8_t value)
// port object's flush method before writing the data.
if (_isUsb)
_port->flush();

usleep(10000);
}

uint8_t
Expand Down Expand Up @@ -246,6 +248,8 @@ Samba::writeWord(uint32_t addr, uint32_t value)
// port object's flush method before writing the data.
if (_isUsb)
_port->flush();

usleep(10000);
}


Expand Down Expand Up @@ -459,6 +463,7 @@ Samba::writeBinary(const uint8_t* buffer, int size)
buffer += written;
size -= written;
}
usleep(10000);
}

void
Expand Down

0 comments on commit bb7352a

Please sign in to comment.