aboutsummaryrefslogtreecommitdiff
path: root/embassy-mcxa
diff options
context:
space:
mode:
authorMathis Deroo <[email protected]>2025-12-09 09:39:27 -0800
committerMathis Deroo <[email protected]>2025-12-09 10:52:12 -0800
commitbea34ace6b4d8af29d2deb169ddb3d7c258498ee (patch)
treee18e19d6cf1edae7ef5a9869f134e6c3da811d46 /embassy-mcxa
parentf81eeee3c1bfa1cab534181ff6349a0998fc26ea (diff)
Add support of ADC2 and ADC3 instances
Signed-off-by: Mathis Deroo <[email protected]>
Diffstat (limited to 'embassy-mcxa')
-rw-r--r--embassy-mcxa/Cargo.toml2
-rw-r--r--embassy-mcxa/src/adc.rs2
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" }
39embedded-io = "0.6" 39embedded-io = "0.6"
40embedded-io-async = { version = "0.6.1" } 40embedded-io-async = { version = "0.6.1" }
41heapless = "0.8" 41heapless = "0.8"
42mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0", rev = "e7dfed8740b449b6ac646bab8ac6776a3c099267" } 42mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0", rev = "ecb2af952d94a3bd3db7f9108e2258767eea4f97" }
43nb = "1.1.0" 43nb = "1.1.0"
44paste = "1.0.15" 44paste = "1.0.15"
45maitake-sync = { version = "0.2.2", default-features = false, features = ["critical-section", "no-cache-pad"] } 45maitake-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 {
630 }; 630 };
631} 631}
632 632
633impl_instance!(0, 1); //ADC2 and ADC3 missing in the PAC ?? 633impl_instance!(0, 1, 2, 3);
634 634
635pub trait AdcPin<Instance>: GpioPin + sealed::Sealed + PeripheralType { 635pub trait AdcPin<Instance>: GpioPin + sealed::Sealed + PeripheralType {
636 /// Set the given pin to the correct muxing state 636 /// Set the given pin to the correct muxing state