mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
stm32: Use a GLOBAL interrupt for lptim
This commit is contained in:
parent
69208daf6d
commit
d69f68b8c0
@ -29,7 +29,7 @@ pub trait BasicInstance: SealedBasicInstance + 'static {}
|
|||||||
pub trait Instance: BasicInstance + SealedInstance + 'static {}
|
pub trait Instance: BasicInstance + SealedInstance + 'static {}
|
||||||
|
|
||||||
foreach_interrupt! {
|
foreach_interrupt! {
|
||||||
($inst:ident, lptim, LPTIM, UP, $irq:ident) => {
|
($inst:ident, lptim, LPTIM, GLOBAL, $irq:ident) => {
|
||||||
impl SealedInstance for crate::peripherals::$inst {
|
impl SealedInstance for crate::peripherals::$inst {
|
||||||
fn regs() -> crate::pac::lptim::Lptim {
|
fn regs() -> crate::pac::lptim::Lptim {
|
||||||
crate::pac::$inst
|
crate::pac::$inst
|
||||||
@ -40,7 +40,7 @@ foreach_interrupt! {
|
|||||||
impl BasicInstance for crate::peripherals::$inst {}
|
impl BasicInstance for crate::peripherals::$inst {}
|
||||||
impl Instance 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 SealedBasicInstance for crate::peripherals::$inst {
|
||||||
}
|
}
|
||||||
impl BasicInstance for crate::peripherals::$inst {}
|
impl BasicInstance for crate::peripherals::$inst {}
|
||||||
|
Loading…
Reference in New Issue
Block a user