boards/stm32-based: use shared configuration snippets#8549
boards/stm32-based: use shared configuration snippets#8549aabadie merged 4 commits intoRIOT-OS:masterfrom
Conversation
vincent-d
left a comment
There was a problem hiding this comment.
I like the idea! And it looks quite good except the missing include. I unfortunately don't have any of theses board to test it.
| #define PERIPH_CONF_H | ||
|
|
||
| #include "periph_cpu.h" | ||
| #include "f4/cfg_clock_168_8_1.h" |
There was a problem hiding this comment.
missing #include "cfg_spi_divtable.h"
There was a problem hiding this comment.
ups, will fix
|
fixed missing include |
|
also fixed header guards |
vincent-d
left a comment
There was a problem hiding this comment.
Untested ACK (I don't have any of these boards). Please squash
c54c43e to
b7fbecf
Compare
|
rebased |
|
and squashed... |
| * @author Hauke Petersen <[email protected]> | ||
| */ | ||
|
|
||
| #ifndef PERIPH_CFG_SPI_DIVTABLE_H |
There was a problem hiding this comment.
This header guard is still wrong according to Murdock
b7fbecf to
079f3c0
Compare
|
fixed the header guard issue (squashed right in) and rebased. |
|
@vincent-d would you mind to give this one last look and press the big green button?! Thanks! |
|
It may introduces some conflicts with the I2C refactoring. @aabadie will be able to confirm it better than me. |
I don't know, it needs to be confirmed locally first I would say. |
Let's go then :) |
Contribution description
This is another change cut from #8044 to reduce the vast code duplication in the (STM32) board configurations.
Presented in this PR in my idea for using shared configuration snippets in the board's
periph_conf.hfiles. This is demonstrated so far only for some selectedstm32f4-based boards, and focused on their clock configuration only. Once we agree for this approach, we can optimize the configuration for more STM32-based boards, in small, easily revieweable steps...Issues/PRs references
continuation of merging #8044 in small steps...