diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51c87c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + +/.vscode/.cortex-debug.* diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..dca515c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "cortex-debug", + "request": "launch", + "name": "Debug LED Blinky", + "servertype": "jlink", + "gdbPath": "/usr/bin/gdb-multiarch", + "cwd": "${workspaceRoot}", + "device": "VA41620", + "svdFile": "./va108xx-rs/svd/va416xx-base.svd", + "preLaunchTask": "rust: cargo build led blinky", + "executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/blinky-leds", + "interface": "swd", + "runToMain": true, + }, + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..b7a3015 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,19 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "rust: cargo build led blinky", + "type": "shell", + "command": "~/.cargo/bin/cargo", // note: full path to the cargo + "args": [ + "build", "-p", "va416xx-hal", "--example", "blinky" + ], + "group": { + "kind": "build", + "isDefault": true + } + }, + ] +} \ No newline at end of file diff --git a/va416xx b/va416xx index 2d02813..a545b40 160000 --- a/va416xx +++ b/va416xx @@ -1 +1 @@ -Subproject commit 2d02813c7fe381fa1fd749c6430d1029995965f5 +Subproject commit a545b4028ef25923f3477441194c556dea8ae57e diff --git a/va416xx-hal b/va416xx-hal index f94aa2b..7aa367e 160000 --- a/va416xx-hal +++ b/va416xx-hal @@ -1 +1 @@ -Subproject commit f94aa2b48fa995f1baec0aca861421bf18df20c6 +Subproject commit 7aa367e9eaaa774f86ef55539b245484e6c7c4fc