stm32-metapac: add option to generate chip metadata as a rust const.

This commit is contained in:
Dario Nieuwenhuis
2022-02-09 00:28:05 +01:00
parent 2cf79f6569
commit 4d73d87b40
3 changed files with 170 additions and 9 deletions

View File

@ -19,10 +19,14 @@ regex = "1.5.4"
default = ["pac"]
# Build the actual PAC. Set by default.
# If not set, only the macrotables will be generated. You may want to not set it
# if you're using stm32-metapac from a build.rs script to use the macros.
# If you just want the metadata, unset it with `default-features = false`.
pac = []
# Build the chip metadata.
# If set, a const `stm32_metapac::METADATA` will be exported, containing all the
# metadata for the currently selected chip.
metadata = []
rt = ["cortex-m-rt/device"]
memory-x = []