Skip to content

Commit 8e5671d

Browse files
NandoBongersNando Bongers
andauthored
Added the pwm configuration for TIM20 (#51)
* Added the pwm configuration for TIM20 Co-authored-by: Nando Bongers <[email protected]>
1 parent e55fd5c commit 8e5671d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/pwm.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,17 @@ tim_hal! {
14721472
TIM17: (tim17, u16, 16, BDTR: bdtr, set_bit, af1, set_bit),
14731473
}
14741474

1475+
#[cfg(any(
1476+
feature = "stm32g474",
1477+
feature = "stm32g483",
1478+
feature = "stm32g484",
1479+
feature = "stm32g491",
1480+
feature = "stm32g4a1"
1481+
))]
1482+
tim_hal! {
1483+
TIM20: (tim20, u16, 16, BDTR: bdtr, set_bit, af1, set_bit),
1484+
}
1485+
14751486
pub trait PwmPinEnable {
14761487
fn ccer_enable(&mut self);
14771488
fn ccer_disable(&mut self);

0 commit comments

Comments
 (0)