diff options
| author | Adam Greig <[email protected]> | 2023-10-15 00:57:25 +0100 |
|---|---|---|
| committer | Adam Greig <[email protected]> | 2023-10-15 01:30:12 +0100 |
| commit | 0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch) | |
| tree | f6caefe939109e55a73e9141c736d2f6c20f51e8 /cyw43/src/runner.rs | |
| parent | 7559f9e5834799b041d899767ef4305dcfdf0181 (diff) | |
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'cyw43/src/runner.rs')
| -rw-r--r-- | cyw43/src/runner.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cyw43/src/runner.rs b/cyw43/src/runner.rs index 1c187faa5..83aee6b40 100644 --- a/cyw43/src/runner.rs +++ b/cyw43/src/runner.rs | |||
| @@ -555,14 +555,14 @@ where | |||
| 555 | 555 | ||
| 556 | self.bus.bp_write8(base + AI_RESETCTRL_OFFSET, 0).await; | 556 | self.bus.bp_write8(base + AI_RESETCTRL_OFFSET, 0).await; |
| 557 | 557 | ||
| 558 | Timer::after(Duration::from_millis(1)).await; | 558 | Timer::after_millis(1).await; |
| 559 | 559 | ||
| 560 | self.bus | 560 | self.bus |
| 561 | .bp_write8(base + AI_IOCTRL_OFFSET, AI_IOCTRL_BIT_CLOCK_EN) | 561 | .bp_write8(base + AI_IOCTRL_OFFSET, AI_IOCTRL_BIT_CLOCK_EN) |
| 562 | .await; | 562 | .await; |
| 563 | let _ = self.bus.bp_read8(base + AI_IOCTRL_OFFSET).await; | 563 | let _ = self.bus.bp_read8(base + AI_IOCTRL_OFFSET).await; |
| 564 | 564 | ||
| 565 | Timer::after(Duration::from_millis(1)).await; | 565 | Timer::after_millis(1).await; |
| 566 | } | 566 | } |
| 567 | 567 | ||
| 568 | async fn core_is_up(&mut self, core: Core) -> bool { | 568 | async fn core_is_up(&mut self, core: Core) -> bool { |
