Merge pull request #53 from ctron/feature/minor_tweaks_1

Minor improvements
This commit is contained in:
Dario Nieuwenhuis 2021-06-29 17:24:06 +02:00 committed by GitHub
commit 37cac566d5
3 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/files
/sources
/tmp
.idea/

View File

@ -23,6 +23,15 @@ These are the data sources currently used.
- STM32Cube database: describes all MCUs, with useful stuff like GPIO AF mappings, DMA stream mappings, pinouts...
- stm32-rs SVDs: register blocks. YAMLs are extracted and manually cleaned up.
## Install pre-requisites
In order to run the generator, you will need to install the following tools:
* `wget`
* `git`
* `jq`
* `svd` `pip3 install svdtools`
## Generating the YAMLs
- Run `./d download_all`

6
d
View File

@ -3,6 +3,12 @@
set -e
cd $(dirname $0)
die() { echo "$*" 1>&2; exit 1; }
for i in jq wget svd git; do
command -v "$i" &>/dev/null || die "Missing the command line tool '$i'"
done
case "$1" in
download_all)
./d download_mcufinder