aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-11-05 23:35:01 +0100
committerDario Nieuwenhuis <[email protected]>2023-11-05 23:52:54 +0100
commit0272deb158c4cc821e8f587283817a0fe5f82cf8 (patch)
tree9774d81020c3da632e676017d471b1d2d06aae2e /tests
parentc4a8b79dbc927e46fcc71879673ad3410aa3174b (diff)
stm32/rcc: add shared code for hsi48 with crs support.
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/common.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/stm32/src/common.rs b/tests/stm32/src/common.rs
index 54e23e436..3668e18ce 100644
--- a/tests/stm32/src/common.rs
+++ b/tests/stm32/src/common.rs
@@ -306,7 +306,7 @@ pub fn config() -> Config {
306 { 306 {
307 use embassy_stm32::rcc::*; 307 use embassy_stm32::rcc::*;
308 config.rcc.hsi = None; 308 config.rcc.hsi = None;
309 config.rcc.hsi48 = true; // needed for rng 309 config.rcc.hsi48 = Some(Default::default()); // needed for RNG
310 config.rcc.hse = Some(Hse { 310 config.rcc.hse = Some(Hse {
311 freq: Hertz(8_000_000), 311 freq: Hertz(8_000_000),
312 mode: HseMode::BypassDigital, 312 mode: HseMode::BypassDigital,
@@ -332,7 +332,7 @@ pub fn config() -> Config {
332 use embassy_stm32::rcc::*; 332 use embassy_stm32::rcc::*;
333 config.rcc.hsi = Some(HSIPrescaler::DIV1); 333 config.rcc.hsi = Some(HSIPrescaler::DIV1);
334 config.rcc.csi = true; 334 config.rcc.csi = true;
335 config.rcc.hsi48 = true; // needed for RNG 335 config.rcc.hsi48 = Some(Default::default()); // needed for RNG
336 config.rcc.pll1 = Some(Pll { 336 config.rcc.pll1 = Some(Pll {
337 source: PllSource::HSI, 337 source: PllSource::HSI,
338 prediv: PllPreDiv::DIV4, 338 prediv: PllPreDiv::DIV4,
@@ -364,7 +364,7 @@ pub fn config() -> Config {
364 use embassy_stm32::rcc::*; 364 use embassy_stm32::rcc::*;
365 config.rcc.hsi = Some(HSIPrescaler::DIV1); 365 config.rcc.hsi = Some(HSIPrescaler::DIV1);
366 config.rcc.csi = true; 366 config.rcc.csi = true;
367 config.rcc.hsi48 = true; // needed for RNG 367 config.rcc.hsi48 = Some(Default::default()); // needed for RNG
368 config.rcc.pll1 = Some(Pll { 368 config.rcc.pll1 = Some(Pll {
369 source: PllSource::HSI, 369 source: PllSource::HSI,
370 prediv: PllPreDiv::DIV4, 370 prediv: PllPreDiv::DIV4,