aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-mcxa/Cargo.toml2
-rw-r--r--embassy-mcxa/src/adc.rs14
2 files changed, 8 insertions, 8 deletions
diff --git a/embassy-mcxa/Cargo.toml b/embassy-mcxa/Cargo.toml
index d1e40ab0a..cb985a2e9 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 = "ecb2af952d94a3bd3db7f9108e2258767eea4f97" } 42mcxa-pac = { git = "https://github.com/OpenDevicePartnership/mcxa-pac", features = ["rt", "critical-section"], version = "0.1.0", rev = "02bd04a21ef8f8f67f88239ff5df765bb7e60fd8" }
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 f4ac133d7..abcdf86f8 100644
--- a/embassy-mcxa/src/adc.rs
+++ b/embassy-mcxa/src/adc.rs
@@ -449,23 +449,23 @@ impl<'a, I: Instance, M: ModeAdc> Adc<'a, I, M> {
449 macro_rules! write_cmd { 449 macro_rules! write_cmd {
450 ($idx:expr) => {{ 450 ($idx:expr) => {{
451 paste! { 451 paste! {
452 adc.[<cmdl $idx>]().write(|w| unsafe { 452 adc.[<cmdl $idx>]().write(|w| {
453 w.adch() 453 w.adch()
454 .bits(config.channel_number.into()) 454 .variant(config.channel_number)
455 .mode() 455 .mode()
456 .bit(config.conversion_resolution_mode.into()) 456 .variant(config.conversion_resolution_mode)
457 }); 457 });
458 adc.[<cmdh $idx>]().write(|w| unsafe { 458 adc.[<cmdh $idx>]().write(|w| unsafe {
459 w.next() 459 w.next()
460 .bits(config.chained_next_command_number.into()) 460 .variant(config.chained_next_command_number)
461 .loop_() 461 .loop_()
462 .bits(config.loop_count) 462 .bits(config.loop_count)
463 .avgs() 463 .avgs()
464 .bits(config.hardware_average_mode.into()) 464 .variant(config.hardware_average_mode)
465 .sts() 465 .sts()
466 .bits(config.sample_time_mode.into()) 466 .variant(config.sample_time_mode)
467 .cmpen() 467 .cmpen()
468 .bits(config.hardware_compare_mode.into()) 468 .variant(config.hardware_compare_mode)
469 .wait_trig() 469 .wait_trig()
470 .bit(config.enable_wait_trigger) 470 .bit(config.enable_wait_trigger)
471 .lwi() 471 .lwi()