aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-02-12 21:54:53 +0100
committerDario Nieuwenhuis <[email protected]>2024-02-13 01:21:51 +0100
commitb7c147445a98ced9557ca6c0950f6083d0cf09af (patch)
tree3a19f86014e5f80f5b16c7c8d1f5541f500aecf3 /tests
parent739c69bd637baf471585648db4d253089301d6c8 (diff)
stm32/rcc: port F1 to new API.
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/.cargo/config.toml4
-rw-r--r--tests/stm32/src/common.rs18
2 files changed, 20 insertions, 2 deletions
diff --git a/tests/stm32/.cargo/config.toml b/tests/stm32/.cargo/config.toml
index 8e32b4cee..528bd3451 100644
--- a/tests/stm32/.cargo/config.toml
+++ b/tests/stm32/.cargo/config.toml
@@ -14,9 +14,9 @@ rustflags = [
14] 14]
15 15
16[build] 16[build]
17target = "thumbv6m-none-eabi" 17#target = "thumbv6m-none-eabi"
18#target = "thumbv7m-none-eabi" 18#target = "thumbv7m-none-eabi"
19#target = "thumbv7em-none-eabi" 19target = "thumbv7em-none-eabi"
20#target = "thumbv8m.main-none-eabihf" 20#target = "thumbv8m.main-none-eabihf"
21 21
22[env] 22[env]
diff --git a/tests/stm32/src/common.rs b/tests/stm32/src/common.rs
index 36fe8a235..182ad6298 100644
--- a/tests/stm32/src/common.rs
+++ b/tests/stm32/src/common.rs
@@ -247,6 +247,24 @@ pub fn config() -> Config {
247 config.rcc = embassy_stm32::rcc::WPAN_DEFAULT; 247 config.rcc = embassy_stm32::rcc::WPAN_DEFAULT;
248 } 248 }
249 249
250 #[cfg(feature = "stm32f103c8")]
251 {
252 use embassy_stm32::rcc::*;
253 config.rcc.hse = Some(Hse {
254 freq: Hertz(8_000_000),
255 mode: HseMode::Oscillator,
256 });
257 config.rcc.pll = Some(Pll {
258 src: PllSource::HSE,
259 prediv: PllPreDiv::DIV1,
260 mul: PllMul::MUL9,
261 });
262 config.rcc.sys = Sysclk::PLL1_P;
263 config.rcc.ahb_pre = AHBPrescaler::DIV1;
264 config.rcc.apb1_pre = APBPrescaler::DIV2;
265 config.rcc.apb2_pre = APBPrescaler::DIV1;
266 }
267
250 #[cfg(feature = "stm32f207zg")] 268 #[cfg(feature = "stm32f207zg")]
251 { 269 {
252 use embassy_stm32::rcc::*; 270 use embassy_stm32::rcc::*;