aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/common.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stm32/src/common.rs b/tests/stm32/src/common.rs
index 1587a6fb4..3297ea7e2 100644
--- a/tests/stm32/src/common.rs
+++ b/tests/stm32/src/common.rs
@@ -260,6 +260,17 @@ pub fn config() -> Config {
260 #[allow(unused_mut)] 260 #[allow(unused_mut)]
261 let mut config = Config::default(); 261 let mut config = Config::default();
262 262
263 #[cfg(feature = "stm32c031c6")]
264 {
265 config.rcc.hsi = Some(Hsi {
266 sys_div: HsiSysDiv::DIV1, // 48Mhz
267 ker_div: HsiKerDiv::DIV3, // 16Mhz
268 });
269 config.rcc.sys = Sysclk::HSISYS;
270 config.rcc.ahb_pre = AHBPrescaler::DIV1;
271 config.rcc.apb1_pre = APBPrescaler::DIV1;
272 }
273
263 #[cfg(feature = "stm32g071rb")] 274 #[cfg(feature = "stm32g071rb")]
264 { 275 {
265 config.rcc.hsi = true; 276 config.rcc.hsi = true;