update VS Code files
This commit is contained in:
26
va416xx-hal/.vscode/launch.json
vendored
26
va416xx-hal/.vscode/launch.json
vendored
@ -1,26 +0,0 @@
|
||||
{
|
||||
// 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",
|
||||
// The user should start the J-Link server themselves for now. This is because the
|
||||
// Cortex-Debug will issue a reset command, which is problematic even with
|
||||
// a valid JLinkScript file
|
||||
"servertype": "external",
|
||||
"gdbTarget": "localhost:2331",
|
||||
"gdbPath": "/usr/bin/gdb-multiarch",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"device": "Cortex-M4",
|
||||
"svdFile": "../va416xx/svd/va416xx-base.svd",
|
||||
"preLaunchTask": "rust: cargo build led blinky",
|
||||
"executable": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/examples/blinky",
|
||||
"interface": "swd",
|
||||
"runToMain": true,
|
||||
},
|
||||
]
|
||||
}
|
19
va416xx-hal/.vscode/tasks.json
vendored
19
va416xx-hal/.vscode/tasks.json
vendored
@ -1,19 +0,0 @@
|
||||
{
|
||||
// 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", "--example", "blinky"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
#![no_std]
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
use embedded_hal::digital::StatefulOutputPin;
|
||||
use embedded_hal::digital::{OutputPin, StatefulOutputPin};
|
||||
use panic_halt as _;
|
||||
use va416xx_hal::{gpio::PinsG, pac};
|
||||
|
||||
@ -19,7 +19,9 @@ fn main() -> ! {
|
||||
let mut led = portg.pg5.into_readable_push_pull_output();
|
||||
//let mut delay = CountDownTimer::new(&mut dp.SYSCONFIG, 50.mhz(), dp.TIM0);
|
||||
loop {
|
||||
led.toggle().ok();
|
||||
led.set_high().ok();
|
||||
cortex_m::asm::delay(2_000_000);
|
||||
led.set_low().ok();
|
||||
cortex_m::asm::delay(2_000_000);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user