From 44dce8206124359459facbb373887ca51c33c60b Mon Sep 17 00:00:00 2001 From: i509VCB Date: Tue, 20 May 2025 12:27:28 -0500 Subject: [PATCH 1/2] mspm0: add gpio handlers to l122x --- embassy-mspm0/src/int_group/l12xx.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-mspm0/src/int_group/l12xx.rs b/embassy-mspm0/src/int_group/l12xx.rs index 833771eea..eeb2ce70d 100644 --- a/embassy-mspm0/src/int_group/l12xx.rs +++ b/embassy-mspm0/src/int_group/l12xx.rs @@ -41,9 +41,9 @@ fn GROUP1() { match group { Group1::GPIOA => crate::gpio::gpioa_interrupt(), - Group1::GPIOB => todo!("implement GPIOB"), + Group1::GPIOB => crate::gpio::gpiob_interrupt(), Group1::COMP0 => todo!("implement COMP0"), Group1::TRNG => todo!("implement TRNG"), - Group1::GPIOC => todo!("implement GPIOC"), + Group1::GPIOC => crate::gpio::gpioc_interrupt(), } } From 156bf00009495bbdffefd67f920919b4cd35c418 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Tue, 20 May 2025 12:35:17 -0500 Subject: [PATCH 2/2] mspm0: L110x has no group1 --- embassy-mspm0/src/gpio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-mspm0/src/gpio.rs b/embassy-mspm0/src/gpio.rs index 3c824b0e6..19a6230b6 100644 --- a/embassy-mspm0/src/gpio.rs +++ b/embassy-mspm0/src/gpio.rs @@ -10,7 +10,7 @@ use embassy_sync::waitqueue::AtomicWaker; use crate::pac::gpio::vals::*; use crate::pac::gpio::{self}; -#[cfg(all(feature = "rt", mspm0c110x))] +#[cfg(all(feature = "rt", any(mspm0c110x, mspm0l110x)))] use crate::pac::interrupt; use crate::pac::{self}; @@ -1120,7 +1120,7 @@ impl Iterator for BitIter { } // C110x has a dedicated interrupt just for GPIOA, as it does not have a GROUP1 interrupt. -#[cfg(all(feature = "rt", mspm0c110x))] +#[cfg(all(feature = "rt", any(mspm0c110x, mspm0l110x)))] #[interrupt] fn GPIOA() { gpioa_interrupt();