aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/timer.rs
diff options
context:
space:
mode:
authorLiam Murphy <[email protected]>2021-06-29 11:39:50 +1000
committerLiam Murphy <[email protected]>2021-06-29 11:39:50 +1000
commit94e13ef053d788238899bffb8f4fc450101b78ee (patch)
treed9e0ec0941e2f71efd0f2d15331e8f8f4e95bbc4 /embassy-nrf/src/timer.rs
parente5a5031f204c2c63912beba1c340c27d01d54672 (diff)
Fix `Cc::event_compare`
Diffstat (limited to 'embassy-nrf/src/timer.rs')
-rw-r--r--embassy-nrf/src/timer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/timer.rs b/embassy-nrf/src/timer.rs
index 02f02bc17..a96c6a823 100644
--- a/embassy-nrf/src/timer.rs
+++ b/embassy-nrf/src/timer.rs
@@ -277,7 +277,7 @@ impl<'a, T: Instance> Cc<'a, T> {
277 /// 277 ///
278 /// This event will fire when the timer's counter reaches the value in this CC register. 278 /// This event will fire when the timer's counter reaches the value in this CC register.
279 pub fn event_compare(&self) -> Event { 279 pub fn event_compare(&self) -> Event {
280 Event::from_reg(&T::regs().events_compare) 280 Event::from_reg(&T::regs().events_compare[self.n])
281 } 281 }
282 282
283 /// Enable the shortcut between this CC register's COMPARE event and the timer's CLEAR task. 283 /// Enable the shortcut between this CC register's COMPARE event and the timer's CLEAR task.