rename into subdir

This commit is contained in:
Jörn-Michael Miehe 2024-03-03 15:30:45 +00:00
parent d13332c1b6
commit 4a7f688de9
9 changed files with 18 additions and 8 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
/target /**/target

6
.vscode/launch.json vendored
View file

@ -6,13 +6,13 @@
"configurations": [ "configurations": [
{ {
"name": "Cortex Debug", "name": "Cortex Debug",
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}/bluepill-rs",
"executable": "${workspaceFolder}/target/thumbv7m-none-eabi/debug/bluepill-rust-blinky", "executable": "${workspaceFolder}/bluepill-rs/target/thumbv7m-none-eabi/debug/bluepill-rs",
"request": "launch", "request": "launch",
"type": "cortex-debug", "type": "cortex-debug",
"preLaunchTask": "cargo build", "preLaunchTask": "cargo build",
"servertype": "openocd", "servertype": "openocd",
"svdFile": "${workspaceFolder}/STM32F103.svd", "svdFile": "${workspaceFolder}/bluepill-rs/STM32F103.svd",
"configFiles": [ "configFiles": [
"interface/stlink.cfg", "interface/stlink.cfg",
"target/stm32f1x.cfg" "target/stm32f1x.cfg"

3
.vscode/tasks.json vendored
View file

@ -4,6 +4,9 @@
{ {
"type": "cargo", "type": "cargo",
"command": "build", "command": "build",
"options": {
"cwd": "${workspaceFolder}/bluepill-rs"
},
"problemMatcher": [ "problemMatcher": [
"$rustc" "$rustc"
], ],

View file

@ -30,7 +30,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]] [[package]]
name = "bluepill-rust-blinky" name = "bluepill-rs"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"cortex-m", "cortex-m",
@ -61,6 +61,7 @@ checksum = "8ec610d8f49840a5b376c69663b6369e71f4b34484b9b2eb29fb918d92516cb9"
dependencies = [ dependencies = [
"bare-metal 0.2.5", "bare-metal 0.2.5",
"bitfield", "bitfield",
"critical-section",
"embedded-hal 0.2.7", "embedded-hal 0.2.7",
"volatile-register", "volatile-register",
] ]
@ -85,6 +86,12 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "critical-section"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7059fff8937831a9ae6f0fe4d658ffabf58f2ca96aa9dec1c889f936f705f216"
[[package]] [[package]]
name = "embedded-dma" name = "embedded-dma"
version = "0.2.0" version = "0.2.0"

View file

@ -1,5 +1,5 @@
[package] [package]
name = "bluepill-rust-blinky" name = "bluepill-rs"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
@ -8,8 +8,8 @@ edition = "2021"
[dependencies] [dependencies]
embedded-hal = "1.0.0" embedded-hal = "1.0.0"
nb = "1" nb = "1"
cortex-m = "0.7.6" cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.1" cortex-m-rt = { version = "0.7.1", features = ["device"] }
# Panic behaviour, see https://crates.io/keywords/panic-impl for alternatives # Panic behaviour, see https://crates.io/keywords/panic-impl for alternatives
panic-halt = "0.2.0" panic-halt = "0.2.0"