Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow DMA on both halves of a split Serial<USART> separately. #193

Merged
merged 2 commits into from
Aug 3, 2020

Conversation

bobmcwhirter
Copy link
Contributor

Based upon and dependent upon #186

@therealprof
Copy link
Member

@bobmcwhirter Mind rebasing this so we can have a look at the gist of this change?

@bobmcwhirter
Copy link
Contributor Author

bobmcwhirter commented Jul 31, 2020 via email

@bobmcwhirter
Copy link
Contributor Author

rebased/repushed.

@thalesfragoso
Copy link
Member

Hmm, seems like the first commit is undoing one of my last changes.

@bobmcwhirter
Copy link
Contributor Author

bobmcwhirter commented Jul 31, 2020 via email

Provide DmaConfig enum for setting up DMA on the Tx or Rx half of the serial during init.
@bobmcwhirter
Copy link
Contributor Author

Hopefully this looks better.

Copy link
Member

@thalesfragoso thalesfragoso left a comment

Choose a reason for hiding this comment

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

Thank you for this PR, I just left a small nitpick, and another thing, have you tested this on hardware ?

src/serial.rs Outdated
.dmat().enabled()
})
}
_ => {}
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this should be DmaConfig::None instead ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, good point. I'll modify.

wrt hardware, yes, on an stm32f401re against my USART6.

Copy link
Member

@thalesfragoso thalesfragoso left a comment

Choose a reason for hiding this comment

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

Thanks again! @therealprof I think this is good to go.

Copy link
Member

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

Nice. Thanks for the addtion @bobmcwhirter. Thanks for the review @thalesfragoso.

bors r+

@bors bors bot merged commit 40bd00d into stm32-rs:master Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants