Skip to content

Commit 0a893cc

Browse files
committed
HRTIM - Fix some warnings
1 parent 2ff3d07 commit 0a893cc

File tree

8 files changed

+961
-39
lines changed

8 files changed

+961
-39
lines changed

src/hrtim/capture.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ pub enum CountingDirection {
2525
/// Implemented for
2626
/// * TIM's update event
2727
/// * EEVT1-10
28-
/// TODO: This sould be implemeted
28+
///
29+
/// TODO:
2930
/// * All neighbor timers CMP1, CPM2, OUT1_RST and OUT1_SET events
3031
pub trait CaptureEvent<TIM, PSCL> {
3132
const BITS: u32;

src/hrtim/control.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ impl HrTimCalibrated {
211211
}
212212
}
213213

214-
impl<'a> Into<&'a mut HrPwmCtrl> for &'a mut HrPwmControl {
215-
fn into(self) -> &'a mut HrPwmCtrl {
216-
&mut self.control
214+
impl<'a> From<&'a mut HrPwmControl> for &'a mut HrPwmCtrl {
215+
fn from(val: &'a mut HrPwmControl) -> Self {
216+
&mut val.control
217217
}
218218
}
219219

src/hrtim/event.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ pub trait EventSource<DST, PSCL> {
33
const BITS: u32;
44
}
55

6+
/// Event that can be used reset the timer counter
7+
///
68
/// Done:
79
/// * [x] Eev1-10
810
/// * [x] Master period
911
/// * [x] Master CMP1-4
1012
/// * [x] Cmp2, Cmp4
1113
/// * [x] Timer Update
1214
/// * [ ] Neighbor timers compare events
13-
/// Event that can be used reset the timer counter
1415
pub trait TimerResetEventSource<DST, PSCL> {
1516
const BITS: u32;
1617
}

0 commit comments

Comments
 (0)