Skip to content

stm32: impl usart ckpin - #6730

Open
xoviat wants to merge 1 commit into
embassy-rs:mainfrom
xoviat:impl-usart
Open

stm32: impl usart ckpin#6730
xoviat wants to merge 1 commit into
embassy-rs:mainfrom
xoviat:impl-usart

Conversation

@xoviat

@xoviat xoviat commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

we don't need to discriminate between usart and uart because the ckpin does that for us.

@leftger leftger added the e-stm32 Issues for the STM32 family of chips label Aug 6, 2026
Comment on lines +266 to +270
pub cpol: bool,

/// Clock phase for synchronous mode.
/// `false` = data captured on first edge (CPHA=0), `true` = captured on second edge (CPHA=1).
pub cpha: bool,

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.

Maybe reexport and use Cpol and Cpha enums here instead of bools.

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

Labels

e-stm32 Issues for the STM32 family of chips

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants