diff options
| author | Mathis Deroo <[email protected]> | 2025-12-09 09:39:27 -0800 |
|---|---|---|
| committer | Mathis Deroo <[email protected]> | 2025-12-09 10:52:12 -0800 |
| commit | bea34ace6b4d8af29d2deb169ddb3d7c258498ee (patch) | |
| tree | e18e19d6cf1edae7ef5a9869f134e6c3da811d46 /embassy-mcxa | |
| parent | f81eeee3c1bfa1cab534181ff6349a0998fc26ea (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.toml | 2 | ||||
| -rw-r--r-- | 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" } | |||
| 39 | embedded-io = "0.6" | 39 | embedded-io = "0.6" |
| 40 | embedded-io-async = { version = "0.6.1" } | 40 | embedded-io-async = { version = "0.6.1" } |
| 41 | heapless = "0.8" | 41 | heapless = "0.8" |
| 42 | mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0", rev = "e7dfed8740b449b6ac646bab8ac6776a3c099267" } | 42 | mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0", rev = "ecb2af952d94a3bd3db7f9108e2258767eea4f97" } |
| 43 | nb = "1.1.0" | 43 | nb = "1.1.0" |
| 44 | paste = "1.0.15" | 44 | paste = "1.0.15" |
| 45 | maitake-sync = { version = "0.2.2", default-features = false, features = ["critical-section", "no-cache-pad"] } | 45 | 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 { | |||
| 630 | }; | 630 | }; |
| 631 | } | 631 | } |
| 632 | 632 | ||
| 633 | impl_instance!(0, 1); //ADC2 and ADC3 missing in the PAC ?? | 633 | impl_instance!(0, 1, 2, 3); |
| 634 | 634 | ||
| 635 | pub trait AdcPin<Instance>: GpioPin + sealed::Sealed + PeripheralType { | 635 | pub 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 |
