diff options
| author | pbert <[email protected]> | 2023-10-11 21:38:41 +0200 |
|---|---|---|
| committer | pbert <[email protected]> | 2023-10-12 11:04:44 +0200 |
| commit | ecdd7c0e2f9dcc07e53e136557140d3ccc6a5ee1 (patch) | |
| tree | 6db9bf875d3e83d94f6bf8e8a2e7ff03a83c5bb4 /embassy-stm32/src/lib.rs | |
| parent | d7d79f3068a4a2d883b078b8900ad194f7c98203 (diff) | |
enable clock first
Diffstat (limited to 'embassy-stm32/src/lib.rs')
| -rw-r--r-- | embassy-stm32/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 438494223..b93e5ee87 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -186,11 +186,11 @@ pub fn init(config: Config) -> Peripherals { | |||
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | #[cfg(not(any(stm32f1, stm32wb, stm32wl)))] | 188 | #[cfg(not(any(stm32f1, stm32wb, stm32wl)))] |
| 189 | peripherals::SYSCFG::reset_and_enable(); | 189 | peripherals::SYSCFG::enable_and_reset(); |
| 190 | #[cfg(not(any(stm32h5, stm32h7, stm32wb, stm32wl)))] | 190 | #[cfg(not(any(stm32h5, stm32h7, stm32wb, stm32wl)))] |
| 191 | peripherals::PWR::reset_and_enable(); | 191 | peripherals::PWR::enable_and_reset(); |
| 192 | #[cfg(not(any(stm32f2, stm32f4, stm32f7, stm32l0, stm32h5, stm32h7)))] | 192 | #[cfg(not(any(stm32f2, stm32f4, stm32f7, stm32l0, stm32h5, stm32h7)))] |
| 193 | peripherals::FLASH::reset_and_enable(); | 193 | peripherals::FLASH::enable_and_reset(); |
| 194 | 194 | ||
| 195 | unsafe { | 195 | unsafe { |
| 196 | #[cfg(feature = "_split-pins-enabled")] | 196 | #[cfg(feature = "_split-pins-enabled")] |
