diff options
| author | pbert <[email protected]> | 2023-10-11 18:06:43 +0200 |
|---|---|---|
| committer | pbert <[email protected]> | 2023-10-12 11:04:19 +0200 |
| commit | f65a96c54146179f76a7a2a784c5bb89590e5de1 (patch) | |
| tree | 21b20805229d639f16f035a64f94cb896a636cd0 /embassy-stm32/src/ipcc.rs | |
| parent | eb368f77a46682f76dcc4d75f9ba4ce80dfb4193 (diff) | |
STM32: combine RccPeripherals reset() and enable() to reset_and_enable()
Diffstat (limited to 'embassy-stm32/src/ipcc.rs')
| -rw-r--r-- | embassy-stm32/src/ipcc.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-stm32/src/ipcc.rs b/embassy-stm32/src/ipcc.rs index e100ca5cc..2e58fe622 100644 --- a/embassy-stm32/src/ipcc.rs +++ b/embassy-stm32/src/ipcc.rs | |||
| @@ -93,8 +93,7 @@ pub struct Ipcc; | |||
| 93 | 93 | ||
| 94 | impl Ipcc { | 94 | impl Ipcc { |
| 95 | pub fn enable(_config: Config) { | 95 | pub fn enable(_config: Config) { |
| 96 | IPCC::enable(); | 96 | IPCC::reset_and_enable(); |
| 97 | IPCC::reset(); | ||
| 98 | IPCC::set_cpu2(true); | 97 | IPCC::set_cpu2(true); |
| 99 | 98 | ||
| 100 | _configure_pwr(); | 99 | _configure_pwr(); |
