-
Notifications
You must be signed in to change notification settings - Fork 2.1k
cpu/stm32f4: optimized UART driver #4115
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
cpu/stm32f4: optimized UART driver #4115
Conversation
Either the commit set or the title of this PR seems to be off. |
nope, all fine
|
why the change to cpu/stm32f4/include/stm32f407xx.h ? Is that not the vendor-supplied hardware header? |
yes, it is - but it's shitty... I got used to actually editing those headers instead of introducing x lines of extra code in the drivers... |
Could you split the stm32f407xx.h change to a separate commit? Makes it easier to get an overview in the future if we want to see what changes we have made to vendor headers. |
btw, there's a new version of the header available with the Keil MDK (tagged |
1dc4be0
to
ae76c1d
Compare
rebased and separated the vendor header changes in its own commit |
ffd1b8f
to
fe41568
Compare
also adapted remaining stm32f4 based boards to the changes |
fe41568
to
e105857
Compare
fixed typo in RCC define for the |
@gebart: are you good with this PR now? |
I'm fine, did not test it though. |
e105857
to
551126f
Compare
fixed a small typing issue with cpp, Travis should be fine now. |
DMA_SxCR_PL_0 | | ||
DMA_SxCR_MINC | | ||
DMA_SxCR_DIR_0 | | ||
// DMA_SxCR_PFCTRL | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove if not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ups :-)
Could you please also adopt the |
551126f
to
8295383
Compare
done |
8295383
to
84fd4d7
Compare
fixed minor comment by @thomaseichinger and squashed. @thomaseichinger: do you ack? There is a ready to use board in our office :-) |
ACK & go |
cpu/stm32f4: optimized UART driver
based on #4114
This driver is now utilizing DMA for transmitting data. This is possible through the changes in the UART driver interface and should save quite some energy as the CPU will now be able to sleep while sending data...