Skip to content

Commit 43ba176

Browse files
committed
Add channel implementations to TIM2 Pins.
1 parent 3eaeaa6 commit 43ba176

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/timers.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,31 @@ channel_impl!(
332332
TIM17, PinC1, PB9, Alternate<AF2>;
333333
);
334334

335+
#[cfg(any(
336+
feature = "stm32f031",
337+
feature = "stm32f038",
338+
feature = "stm32f042",
339+
feature = "stm32f048",
340+
feature = "stm32f051",
341+
feature = "stm32f058",
342+
feature = "stm32f071",
343+
feature = "stm32f072",
344+
feature = "stm32f078",
345+
feature = "stm32f091",
346+
feature = "stm32f098",
347+
))]
348+
channel_impl!(
349+
TIM2, PinC1, PA0, Alternate<AF2>;
350+
TIM2, PinC2, PA1, Alternate<AF2>;
351+
TIM2, PinC3, PA2, Alternate<AF2>;
352+
TIM2, PinC4, PA3, Alternate<AF2>;
353+
TIM2, PinC1, PA5, Alternate<AF2>;
354+
TIM2, PinC1, PA15, Alternate<AF2>;
355+
TIM2, PinC2, PB3, Alternate<AF2>;
356+
TIM2, PINC3, PB10, Alternate<AF2>;
357+
TIM2, PINC4, PB11, Alternate<AF2>;
358+
);
359+
335360
#[cfg(any(
336361
feature = "stm32f030x8",
337362
feature = "stm32f030xc",

0 commit comments

Comments
 (0)