diff options
| author | Zoey Riordan <[email protected]> | 2022-09-21 11:19:47 +0200 |
|---|---|---|
| committer | Zoey Riordan <[email protected]> | 2022-09-21 11:19:47 +0200 |
| commit | 15b4f9db9000cfb402357c5ac2c84876a3ad27c3 (patch) | |
| tree | 47b9bc137c273f42a719cc61e2e1c268b9852570 | |
| parent | 0f55f5a73d356dc991dbc3c4bc102e7d652c5fc5 (diff) | |
Remove unused function
| -rw-r--r-- | embassy-nrf/src/buffered_uarte.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/embassy-nrf/src/buffered_uarte.rs b/embassy-nrf/src/buffered_uarte.rs index 3ee3e9477..e212e9897 100644 --- a/embassy-nrf/src/buffered_uarte.rs +++ b/embassy-nrf/src/buffered_uarte.rs | |||
| @@ -550,13 +550,3 @@ impl<'a, U: UarteInstance, T: TimerInstance> PeripheralState for StateInner<'a, | |||
| 550 | trace!("irq: end"); | 550 | trace!("irq: end"); |
| 551 | } | 551 | } |
| 552 | } | 552 | } |
| 553 | |||
| 554 | /// Low power blocking wait loop using WFE/SEV. | ||
| 555 | fn low_power_wait_until(mut condition: impl FnMut() -> bool) { | ||
| 556 | while !condition() { | ||
| 557 | // WFE might "eat" an event that would have otherwise woken the executor. | ||
| 558 | cortex_m::asm::wfe(); | ||
| 559 | } | ||
| 560 | // Retrigger an event to be transparent to the executor. | ||
| 561 | cortex_m::asm::sev(); | ||
| 562 | } | ||
