From bea34ace6b4d8af29d2deb169ddb3d7c258498ee Mon Sep 17 00:00:00 2001 From: Mathis Deroo Date: Tue, 9 Dec 2025 09:39:27 -0800 Subject: Add support of ADC2 and ADC3 instances Signed-off-by: Mathis Deroo --- embassy-mcxa/Cargo.toml | 2 +- embassy-mcxa/src/adc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-mcxa/Cargo.toml b/embassy-mcxa/Cargo.toml index 8ed842aec..d1e40ab0a 100644 --- a/embassy-mcxa/Cargo.toml +++ b/embassy-mcxa/Cargo.toml @@ -39,7 +39,7 @@ embedded-hal-nb = { version = "1.0" } embedded-io = "0.6" embedded-io-async = { version = "0.6.1" } heapless = "0.8" -mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0", rev = "e7dfed8740b449b6ac646bab8ac6776a3c099267" } +mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0", rev = "ecb2af952d94a3bd3db7f9108e2258767eea4f97" } nb = "1.1.0" paste = "1.0.15" maitake-sync = { version = "0.2.2", default-features = false, features = ["critical-section", "no-cache-pad"] } diff --git a/embassy-mcxa/src/adc.rs b/embassy-mcxa/src/adc.rs index 900a3a40a..f4ac133d7 100644 --- a/embassy-mcxa/src/adc.rs +++ b/embassy-mcxa/src/adc.rs @@ -630,7 +630,7 @@ macro_rules! impl_instance { }; } -impl_instance!(0, 1); //ADC2 and ADC3 missing in the PAC ?? +impl_instance!(0, 1, 2, 3); pub trait AdcPin: GpioPin + sealed::Sealed + PeripheralType { /// Set the given pin to the correct muxing state -- cgit