stm32/pwm: allow using the advanced timer instances too.
This commit is contained in:
@ -142,7 +142,7 @@ macro_rules! impl_timer {
|
||||
($inst:ident) => {
|
||||
impl crate::pwm::sealed::Instance for crate::peripherals::$inst {
|
||||
fn regs() -> crate::pac::timer::TimGp16 {
|
||||
crate::pac::$inst
|
||||
crate::pac::timer::TimGp16(crate::pac::$inst.0)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user