diff --git a/.gitignore b/.gitignore index 840fce9..f0d260f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,3 @@ **/*.orig **/*.rs.bk Cargo.lock - -# VS Code -/.vscode diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b62f567 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,18 @@ +{ + "rust.all_targets": false, + "rust.target": "thumbv7em-none-eabihf", + "rust.all_features": false, + "rust.features": [ + "rtic", + "stm32f767" + ], + "rust-analyzer.checkOnSave.allTargets": false, + "rust-analyzer.checkOnSave.extraArgs": [ + "--target", + "thumbv7em-none-eabihf" + ], + "rust-analyzer.cargo.features": [ + "rtic", + "stm32f767" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 3c66f6a..6faebbe 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,10 @@ features = ["stm32f767", "rt"] The documentation can be found at [docs.rs/stm32f7xx-hal](https://docs.rs/stm32f7xx-hal/). +## VSCode + +Default settings for `rust-analyzer` are set in [.vscode/settings.json](.vscode/settings.json) for `stm32f767`. If you're working on another chip, you can change the target there for convenience, but don't commit your change to this file. + ## License Licensed under either of