stm32-metapac: add pac feature to allow building only the macrotables.

This commit is contained in:
Dario Nieuwenhuis
2021-11-24 01:04:23 +01:00
parent d06cb0a264
commit 78d109f5d5
2 changed files with 57 additions and 29 deletions

View File

@ -16,6 +16,13 @@ regex = "1.5.4"
# END BUILD DEPENDENCIES
[features]
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.
pac = []
rt = ["cortex-m-rt/device"]
memory-x = []