Reset mailbox response wait timeout on each iteration
This commit is contained in:
parent
97ccf3ceb5
commit
239d137b1c
|
@ -216,9 +216,8 @@ fn write(regs: &RegisterBlock, buf_ptr: u32, channel: u32) -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read(regs: &RegisterBlock, expected: u32, channel: u32) -> Result<()> {
|
fn read(regs: &RegisterBlock, expected: u32, channel: u32) -> Result<()> {
|
||||||
let mut count: u32 = 0;
|
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
let mut count: u32 = 0;
|
||||||
while regs.STATUS.is_set(STATUS::EMPTY) {
|
while regs.STATUS.is_set(STATUS::EMPTY) {
|
||||||
count += 1;
|
count += 1;
|
||||||
if count > (1 << 25) {
|
if count > (1 << 25) {
|
||||||
|
|
Loading…
Reference in New Issue