Skip to content

embassy-nxp/adc: Move AdcPin trait implementations into build.rs - #6727

Draft
sanyaswee wants to merge 3 commits into
embassy-rs:mainfrom
sanyaswee:lpc55s-move-adc-to-pac
Draft

embassy-nxp/adc: Move AdcPin trait implementations into build.rs#6727
sanyaswee wants to merge 3 commits into
embassy-rs:mainfrom
sanyaswee:lpc55s-move-adc-to-pac

Conversation

@sanyaswee

Copy link
Copy Markdown
Contributor

This PR moves the impl_adc_pin macro calls into build.rs, where it is done by parsing the peripheral from the nxp-pac crate. This also depends on this nxp-pac PR, so this one is draft unless the mentioned one gets merged

@sanyaswee
sanyaswee marked this pull request as draft August 6, 2026 12:31
@leftger leftger added the e-nxp Issues for the NXP chips label Aug 6, 2026

@eva-cosma eva-cosma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yhea, looks good. Only need to have the nxp-pac commit merged (left a comment there), double-check it still functions after the merge to nxp-pac, and we'll merge this one as well!

Comment thread embassy-nxp/Cargo.toml
embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
## Chip dependencies
nxp-pac = { version = "0.1.0", optional = true, git = "https://github.com/embassy-rs/nxp-pac", rev = "e93605d8e8686f1853726921d5349ef3ecdea693" }
nxp-pac = { version = "0.1.0", optional = true, git = "https://github.com/embassy-rs/nxp-pac", rev = "277270550eb614113e05aa61fed170974976d977" }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may need to change this hash after your nxp-pac commit is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e-nxp Issues for the NXP chips

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants