Skip to content

Commit 030f97b

Browse files
author
Johannes Cornelis Draaijer
committed
setup: Only use Medium speed for reduced EMI
1 parent 1730143 commit 030f97b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/setup.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ use stm32f4xx_hal::{
1212
gpiob::{PB11, PB12, PB13},
1313
gpioc::{PC4, PC5},
1414
gpiog::{PG11, PG13, PG14},
15-
Input,
16-
Speed::VeryHigh,
15+
Input, Speed,
1716
},
1817
pac::{RCC, SYSCFG},
1918
};
@@ -27,8 +26,7 @@ use stm32f7xx_hal::{
2726
gpiob::{PB11, PB12, PB13},
2827
gpioc::{PC4, PC5},
2928
gpiog::{PG11, PG13, PG14},
30-
Input,
31-
Speed::VeryHigh,
29+
Input, Speed,
3230
},
3331
pac::{RCC, SYSCFG},
3432
};
@@ -227,7 +225,7 @@ macro_rules! impl_pins {
227225

228226
impl AlternateVeryHighSpeed for $pin {
229227
fn into_af11_very_high_speed(self) {
230-
self.into_alternate::<11>().set_speed(VeryHigh);
228+
self.into_alternate::<11>().set_speed(Speed::Medium);
231229
}
232230
}
233231
)+

0 commit comments

Comments
 (0)