Skip to content

Commit

Permalink
Increase uart test clock speed
Browse files Browse the repository at this point in the history
This is to potentially better catch erros
like described in stm32-rs#260
ealier.
  • Loading branch information
Sh3Rm4n committed Jul 29, 2021
1 parent cca8880 commit 7cb04dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testsuite/tests/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ mod tests {

let mut rcc = dp.RCC.constrain();
let mut flash = dp.FLASH.constrain();
let clocks = rcc.cfgr.freeze(&mut flash.acr);
let clocks = rcc
.cfgr
.use_hse(8.MHz())
.sysclk(64.MHz())
.freeze(&mut flash.acr);
let mut gpioa = dp.GPIOA.split(&mut rcc.ahb);
let mut gpiob = dp.GPIOB.split(&mut rcc.ahb);

Expand Down

0 comments on commit 7cb04dc

Please sign in to comment.