aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/timer/mod.rs
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2024-10-23 10:30:13 +0000
committerGitHub <[email protected]>2024-10-23 10:30:13 +0000
commit8803128707b8bd9fc9dcea392a62dfd42aa822d2 (patch)
treef7ce53e194af927e02b015bf8e5dcd837169a70e /embassy-stm32/src/timer/mod.rs
parent8eb80c6816a1f6ea7814acd4f48f07e79891f804 (diff)
parentf2646b29a6b0a741fc424f88c5ca3dc25fce9369 (diff)
Merge pull request #3317 from GrantM11235/simplepwmchannel
embassy-stm32: Add SimplePwmChannel
Diffstat (limited to 'embassy-stm32/src/timer/mod.rs')
-rw-r--r--embassy-stm32/src/timer/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32/src/timer/mod.rs b/embassy-stm32/src/timer/mod.rs
index 25782ee13..aa9dd91d9 100644
--- a/embassy-stm32/src/timer/mod.rs
+++ b/embassy-stm32/src/timer/mod.rs
@@ -2,6 +2,7 @@
2 2
3use core::marker::PhantomData; 3use core::marker::PhantomData;
4 4
5use embassy_hal_internal::Peripheral;
5use embassy_sync::waitqueue::AtomicWaker; 6use embassy_sync::waitqueue::AtomicWaker;
6 7
7#[cfg(not(stm32l0))] 8#[cfg(not(stm32l0))]
@@ -66,7 +67,7 @@ impl State {
66 } 67 }
67} 68}
68 69
69trait SealedInstance: RccPeripheral { 70trait SealedInstance: RccPeripheral + Peripheral<P = Self> {
70 /// Async state for this timer 71 /// Async state for this timer
71 fn state() -> &'static State; 72 fn state() -> &'static State;
72} 73}