Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enables Simple Peripheral LIbrary (SPL) framework support for STM32F1.
Uses the most recent SPL F1 package version 3.6.0 from here.
The SPL framework needs the boards to have an identifying macro like
STM32F10X_MD
for "medium density" device. Instead of computing and adding this to ~50 board files, a on-the-fly identification is made based on chip name and flash size, like the reference manual wants it.Rewrites the spl-blink example to use the SysTick for delay and adds the F1 code to it.
The
package.json
was modified to repoint framework-spl to https://github.com/maxgerhardt/pio-framework-spl-stm32.git, which is the latest PlatformIO-provided framework-spl on top of the SPL F1 files. So CI should go through, but this change should be remade by uploading the updated package to the registry and using that in thepackage.json
.Note:
build.core
, which evaluated tostm32
for all previous SPL supported boards, has been replaced withbuild.mcu[0:5]
, which evaluates to the same. However, STM32F1 maple boards likemaple.json
have "maple" as the value here, which breaks the build, hence it was changed.See example project at https://github.com/maxgerhardt/pio-stm32f1-spl-test.