stm32: Use a GLOBAL interrupt for lptim

This commit is contained in:
Romain Goyet 2024-09-06 20:15:45 -04:00 committed by Dario Nieuwenhuis
parent 69208daf6d
commit d69f68b8c0

View File

@ -29,7 +29,7 @@ pub trait BasicInstance: SealedBasicInstance + 'static {}
pub trait Instance: BasicInstance + SealedInstance + 'static {}
foreach_interrupt! {
($inst:ident, lptim, LPTIM, UP, $irq:ident) => {
($inst:ident, lptim, LPTIM, GLOBAL, $irq:ident) => {
impl SealedInstance for crate::peripherals::$inst {
fn regs() -> crate::pac::lptim::Lptim {
crate::pac::$inst
@ -40,7 +40,7 @@ foreach_interrupt! {
impl BasicInstance for crate::peripherals::$inst {}
impl Instance for crate::peripherals::$inst {}
};
($inst:ident, lptim, LPTIM_BASIC, UP, $irq:ident) => {
($inst:ident, lptim, LPTIM_BASIC, GLOBAL, $irq:ident) => {
impl SealedBasicInstance for crate::peripherals::$inst {
}
impl BasicInstance for crate::peripherals::$inst {}