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/hrtim | |
| parent | d7d79f3068a4a2d883b078b8900ad194f7c98203 (diff) | |
enable clock first
Diffstat (limited to 'embassy-stm32/src/hrtim')
| -rw-r--r-- | embassy-stm32/src/hrtim/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/hrtim/mod.rs b/embassy-stm32/src/hrtim/mod.rs index 0c730ef7e..17096d48c 100644 --- a/embassy-stm32/src/hrtim/mod.rs +++ b/embassy-stm32/src/hrtim/mod.rs | |||
| @@ -157,7 +157,7 @@ impl<'d, T: Instance> AdvancedPwm<'d, T> { | |||
| 157 | fn new_inner(tim: impl Peripheral<P = T> + 'd) -> Self { | 157 | fn new_inner(tim: impl Peripheral<P = T> + 'd) -> Self { |
| 158 | into_ref!(tim); | 158 | into_ref!(tim); |
| 159 | 159 | ||
| 160 | T::reset_and_enable(); | 160 | T::enable_and_reset(); |
| 161 | 161 | ||
| 162 | #[cfg(stm32f334)] | 162 | #[cfg(stm32f334)] |
| 163 | if unsafe { get_freqs() }.hrtim.is_some() { | 163 | if unsafe { get_freqs() }.hrtim.is_some() { |
