diff options
| author | Matthew Tran <[email protected]> | 2025-09-20 11:55:59 -0500 |
|---|---|---|
| committer | Matthew Tran <[email protected]> | 2025-09-20 11:56:27 -0500 |
| commit | 6e1d6be315957e587051df7bf96f4a87fc748117 (patch) | |
| tree | 304dd33febc7bd985f0139e2bed3703a12a29a63 /embassy-nrf/src/timer.rs | |
| parent | 8394e1320844f6a1342f1bff10215cfd4643fe3a (diff) | |
nrf: add persist() method for gpio and ppi
Diffstat (limited to 'embassy-nrf/src/timer.rs')
| -rw-r--r-- | embassy-nrf/src/timer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf/src/timer.rs b/embassy-nrf/src/timer.rs index 5b58b0a50..de2875765 100644 --- a/embassy-nrf/src/timer.rs +++ b/embassy-nrf/src/timer.rs | |||
| @@ -90,7 +90,7 @@ pub struct Timer<'d, T: Instance> { | |||
| 90 | impl<'d, T: Instance> Timer<'d, T> { | 90 | impl<'d, T: Instance> Timer<'d, T> { |
| 91 | /// Create a new `Timer` driver. | 91 | /// Create a new `Timer` driver. |
| 92 | /// | 92 | /// |
| 93 | /// This can be useful for triggering tasks via PPI | 93 | /// This can be useful for triggering tasks via PPI. |
| 94 | /// `Uarte` uses this internally. | 94 | /// `Uarte` uses this internally. |
| 95 | pub fn new(timer: Peri<'d, T>) -> Self { | 95 | pub fn new(timer: Peri<'d, T>) -> Self { |
| 96 | Self::new_inner(timer, false) | 96 | Self::new_inner(timer, false) |
| @@ -98,7 +98,7 @@ impl<'d, T: Instance> Timer<'d, T> { | |||
| 98 | 98 | ||
| 99 | /// Create a new `Timer` driver in counter mode. | 99 | /// Create a new `Timer` driver in counter mode. |
| 100 | /// | 100 | /// |
| 101 | /// This can be useful for triggering tasks via PPI | 101 | /// This can be useful for triggering tasks via PPI. |
| 102 | /// `Uarte` uses this internally. | 102 | /// `Uarte` uses this internally. |
| 103 | pub fn new_counter(timer: Peri<'d, T>) -> Self { | 103 | pub fn new_counter(timer: Peri<'d, T>) -> Self { |
| 104 | Self::new_inner(timer, true) | 104 | Self::new_inner(timer, true) |
