Skip to content

[MCXA] use metadata#5849

Merged
Wassasin merged 23 commits intoembassy-rs:mainfrom
diondokter:mcxa-use-metadata
Apr 20, 2026
Merged

[MCXA] use metadata#5849
Wassasin merged 23 commits intoembassy-rs:mainfrom
diondokter:mcxa-use-metadata

Conversation

@diondokter
Copy link
Copy Markdown
Contributor

No description provided.

@diondokter diondokter added the e-mcxa Issues for the NXP MCX-A family of chips label Apr 14, 2026
Copy link
Copy Markdown
Contributor

@felipebalbi felipebalbi left a comment

Choose a reason for hiding this comment

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

Aren't you missing updates to the tests directory?

Comment on lines +109 to 131
/// Peripheral chip select pin trait.
#[allow(private_bounds)]
pub trait Pcs0Pin<Instance>: GpioPin + sealed::SealedSpiPin<Instance> + PeripheralType {
fn mux(&self);
}

/// Peripheral chip select or host request pin trait.
#[allow(private_bounds)]
pub trait Pcs1Pin<Instance>: GpioPin + sealed::SealedSpiPin<Instance> + PeripheralType {
fn mux(&self);
}

/// Peripheral chip select or data pin 2 during parallel data transfers pin trait.
#[allow(private_bounds)]
pub trait Pcs2Pin<Instance>: GpioPin + sealed::SealedSpiPin<Instance> + PeripheralType {
fn mux(&self);
}

/// Peripheral chip select or data pin 3 during parallel data transfers pin trait.
#[allow(private_bounds)]
pub trait Pcs3Pin<Instance>: GpioPin + sealed::SealedSpiPin<Instance> + PeripheralType {
fn mux(&self);
}
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.

we're not really using the HW-managed chip select lines

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True, but either we add these trait shims that aren't used yet or we need to filter this kind of stuff in the build.rs. I.E. these pins will show up in some place and this is the most correct/complete way to do it.

Comment thread embassy-mcxa/build.rs Outdated
@diondokter diondokter requested a review from Wassasin April 20, 2026 10:06
@diondokter
Copy link
Copy Markdown
Contributor Author

Tested the mcxa2xx tests and they all run locally.

The work is not done, but this PR is blocking other work. So I propose we merge in a (fully functioning) partial state.

@diondokter diondokter marked this pull request as ready for review April 20, 2026 10:06
@Wassasin Wassasin added this pull request to the merge queue Apr 20, 2026
Merged via the queue into embassy-rs:main with commit 46a517f Apr 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e-mcxa Issues for the NXP MCX-A family of chips

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants