diff options
| author | Cameron <[email protected]> | 2023-07-05 19:01:28 +0200 |
|---|---|---|
| committer | Cameron <[email protected]> | 2023-07-05 19:01:28 +0200 |
| commit | 8ee2f50b8c10dd86ec97e2d51110c9042d563075 (patch) | |
| tree | add74dfb0d6edb1e663e264219dfb14a254e418e /embassy-nrf/src/timer.rs | |
| parent | 7d3eb6463a03f16674237ed7aa0a085dc6070207 (diff) | |
Removed unnecessary lifetime naming
Diffstat (limited to 'embassy-nrf/src/timer.rs')
| -rw-r--r-- | embassy-nrf/src/timer.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embassy-nrf/src/timer.rs b/embassy-nrf/src/timer.rs index fed576c35..04748238d 100644 --- a/embassy-nrf/src/timer.rs +++ b/embassy-nrf/src/timer.rs | |||
| @@ -168,21 +168,21 @@ impl<'d, T: Instance> Timer<'d, T> { | |||
| 168 | /// Returns the START task, for use with PPI. | 168 | /// Returns the START task, for use with PPI. |
| 169 | /// | 169 | /// |
| 170 | /// When triggered, this task starts the timer. | 170 | /// When triggered, this task starts the timer. |
| 171 | pub fn task_start<'s: 'd>(&self) -> Task<'s> { | 171 | pub fn task_start(&self) -> Task<'d> { |
| 172 | Task::from_reg(&T::regs().tasks_start) | 172 | Task::from_reg(&T::regs().tasks_start) |
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | /// Returns the STOP task, for use with PPI. | 175 | /// Returns the STOP task, for use with PPI. |
| 176 | /// | 176 | /// |
| 177 | /// When triggered, this task stops the timer. | 177 | /// When triggered, this task stops the timer. |
| 178 | pub fn task_stop<'s: 'd>(&self) -> Task<'s> { | 178 | pub fn task_stop(&self) -> Task<'d> { |
| 179 | Task::from_reg(&T::regs().tasks_stop) | 179 | Task::from_reg(&T::regs().tasks_stop) |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | /// Returns the CLEAR task, for use with PPI. | 182 | /// Returns the CLEAR task, for use with PPI. |
| 183 | /// | 183 | /// |
| 184 | /// When triggered, this task resets the timer's counter to 0. | 184 | /// When triggered, this task resets the timer's counter to 0. |
| 185 | pub fn task_clear<'s: 'd>(&self) -> Task<'s> { | 185 | pub fn task_clear(&self) -> Task<'d> { |
| 186 | Task::from_reg(&T::regs().tasks_clear) | 186 | Task::from_reg(&T::regs().tasks_clear) |
| 187 | } | 187 | } |
| 188 | 188 | ||
| @@ -190,7 +190,7 @@ impl<'d, T: Instance> Timer<'d, T> { | |||
| 190 | /// | 190 | /// |
| 191 | /// When triggered, this task increments the timer's counter by 1. | 191 | /// When triggered, this task increments the timer's counter by 1. |
| 192 | /// Only works in counter mode. | 192 | /// Only works in counter mode. |
| 193 | pub fn task_count<'s: 'd>(&self) -> Task<'s> { | 193 | pub fn task_count(&self) -> Task<'d> { |
| 194 | Task::from_reg(&T::regs().tasks_count) | 194 | Task::from_reg(&T::regs().tasks_count) |
| 195 | } | 195 | } |
| 196 | 196 | ||
| @@ -258,14 +258,14 @@ impl<'d, T: Instance> Cc<'d, T> { | |||
| 258 | /// Returns this CC register's CAPTURE task, for use with PPI. | 258 | /// Returns this CC register's CAPTURE task, for use with PPI. |
| 259 | /// | 259 | /// |
| 260 | /// When triggered, this task will capture the current value of the timer's counter in this register. | 260 | /// When triggered, this task will capture the current value of the timer's counter in this register. |
| 261 | pub fn task_capture<'s: 'd>(&self) -> Task<'s> { | 261 | pub fn task_capture(&self) -> Task<'d> { |
| 262 | Task::from_reg(&T::regs().tasks_capture) | 262 | Task::from_reg(&T::regs().tasks_capture) |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | /// Returns this CC register's COMPARE event, for use with PPI. | 265 | /// Returns this CC register's COMPARE event, for use with PPI. |
| 266 | /// | 266 | /// |
| 267 | /// This event will fire when the timer's counter reaches the value in this CC register. | 267 | /// This event will fire when the timer's counter reaches the value in this CC register. |
| 268 | pub fn event_compare<'s: 'd>(&self) -> Event<'s> { | 268 | pub fn event_compare(&self) -> Event<'d> { |
| 269 | Event::from_reg(&T::regs().events_compare[self.n]) | 269 | Event::from_reg(&T::regs().events_compare[self.n]) |
| 270 | } | 270 | } |
| 271 | 271 | ||
