From b784e60c50b418f797acb7ba08c2060560aa5036 Mon Sep 17 00:00:00 2001 From: Brandon Ros Date: Tue, 22 Aug 2023 18:53:33 -0400 Subject: [PATCH] do not set_window back to CHIPCOMMON_BASE_ADDRESS --- cyw43/src/bus.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cyw43/src/bus.rs b/cyw43/src/bus.rs index dd9ecb4a..b08063a0 100644 --- a/cyw43/src/bus.rs +++ b/cyw43/src/bus.rs @@ -257,8 +257,6 @@ where debug!("backplane_readn addr = {:08x} len = {} val = {:08x}", addr, len, val); - self.backplane_set_window(CHIP.pmu_base_address).await; - return val; } @@ -272,13 +270,11 @@ where bus_addr |= BACKPLANE_ADDRESS_32BIT_FLAG; } self.writen(FUNC_BACKPLANE, bus_addr, val, len).await; - - self.backplane_set_window(CHIP.pmu_base_address).await; } async fn backplane_set_window(&mut self, addr: u32) { let new_window = addr & !BACKPLANE_ADDRESS_MASK; - + if new_window == self.backplane_window { return; }