diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-03-04 00:03:07 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-03-04 00:08:14 +0100 |
| commit | ae266f3bf528c334c4712cd37305d2bcb71c0936 (patch) | |
| tree | 66fa6a524c6ce25b0f883639c40dc1a64c24a047 /tests/stm32 | |
| parent | c8c4b0b701ecfbb146c6f651bebd43f053f55ac2 (diff) | |
stm32/rcc: port c0 to new api. Add c0 HSIKER/HSISYS support.
Diffstat (limited to 'tests/stm32')
| -rw-r--r-- | tests/stm32/src/common.rs | 11 |
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; |
