Skip to content

Commit efad3ac

Browse files
replace AF2 with AF5 for Tim8Ch1 on PB6, probably a typo, tested on STM32F303CBT6
1 parent b0cead1 commit efad3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pwm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ macro_rules! tim8 {
11421142

11431143
//Pins
11441144
pwm_channel1_pin!(TIM8, Tim8Ch1, output_to_pa15, gpioa::PA15<AF2>);
1145-
pwm_channel1_pin!(TIM8, Tim8Ch1, output_to_pb6, gpiob::PB6<AF2>);
1145+
pwm_channel1_pin!(TIM8, Tim8Ch1, output_to_pb6, gpiob::PB6<AF5>);
11461146
pwm_channel1_pin!(TIM8, Tim8Ch1, output_to_pc6, gpioc::PC6<AF4>);
11471147

11481148
pwm_channel1n_pin!(TIM8, Tim8Ch1, output_to_pa7, gpioa::PA7<AF4>);

0 commit comments

Comments
 (0)