Skip to content

mspm0: new adc driver#6546

Open
i509VCB wants to merge 2 commits into
embassy-rs:mainfrom
i509VCB:mspm0/degrade-adc
Open

mspm0: new adc driver#6546
i509VCB wants to merge 2 commits into
embassy-rs:mainfrom
i509VCB:mspm0/degrade-adc

Conversation

@i509VCB

@i509VCB i509VCB commented Jul 18, 2026

Copy link
Copy Markdown
Member

To be more similar to stm32.

Some new additions too which involved some larger changes to the driver.

@i509VCB i509VCB added the e-mspm0 Issues for the MSPM0 family of chips label Jul 18, 2026
Comment thread embassy-mspm0/src/adc.rs
impl<'d, T: Instance, M: Mode> Adc<'d, T, M> {
const SINGLE_CHANNEL: u8 = 0;
/// Read an ADC pin.
pub fn blocking_read<'a>(&mut self, channel: impl BorrowedChannel<'a, T>, conversion: Conversion) -> u16

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

One thing I should check again is why I need to clarify lifetimes here but stm32 has no such additional bounds.

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

Labels

e-mspm0 Issues for the MSPM0 family of chips

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant