update package
All checks were successful
Rust/va108xx-rs/pipeline/pr-main This commit looks good

- Add embassy example
- improve timer API
- restructure examples
- restructure and improve SPI
- Add REB1 M95M01 NVM module
This commit is contained in:
2024-09-18 15:07:29 +02:00
parent 405cc089c3
commit acb8b67ae7
40 changed files with 2197 additions and 673 deletions

View File

@ -20,7 +20,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -44,7 +44,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -68,7 +68,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -92,7 +92,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -116,7 +116,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -129,7 +129,7 @@
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug UART",
"name": "UART Example",
"servertype": "jlink",
"cwd": "${workspaceRoot}",
"device": "Cortex-M0",
@ -140,7 +140,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -164,7 +164,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -188,7 +188,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -212,7 +212,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -236,7 +236,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -284,7 +284,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -321,7 +321,7 @@
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
@ -340,12 +340,84 @@
"device": "Cortex-M0",
"svdFile": "./va108xx/svd/va108xx.svd.patched",
"preLaunchTask": "rust: cargo build uart irq",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/uart-irq-rtic",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/uart-rtic",
"interface": "jtag",
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "0x10000000",
"address": "auto",
"decoders": [
{
"port": 0,
"timestamp": true,
"type": "console"
}
]
}
},
{
"type": "cortex-debug",
"request": "launch",
"name": "REB1 NVM Example",
"servertype": "jlink",
"cwd": "${workspaceRoot}",
"device": "Cortex-M0",
"svdFile": "./va108xx/svd/va108xx.svd.patched",
"preLaunchTask": "reb1-nvm",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/nvm",
"interface": "jtag",
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "auto",
"decoders": [
{
"port": 0,
"timestamp": true,
"type": "console"
}
]
}
},
{
"type": "cortex-debug",
"request": "launch",
"name": "RTIC Example",
"servertype": "jlink",
"cwd": "${workspaceRoot}",
"device": "Cortex-M0",
"svdFile": "./va108xx/svd/va108xx.svd.patched",
"preLaunchTask": "rtic-example",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/rtic-example",
"interface": "jtag",
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "auto",
"decoders": [
{
"port": 0,
"timestamp": true,
"type": "console"
}
]
}
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Embassy Example",
"servertype": "jlink",
"cwd": "${workspaceRoot}",
"device": "Cortex-M0",
"svdFile": "./va108xx/svd/va108xx.svd.patched",
"preLaunchTask": "embassy-example",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/embassy-example",
"interface": "jtag",
"runToEntryPoint": "main",
"rttConfig": {
"enabled": true,
"address": "auto",
"decoders": [
{
"port": 0,

View File

@ -67,8 +67,6 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"-p",
"va108xx-hal",
"--example",
"uart",
],
@ -129,10 +127,8 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"--example",
"uart-irq-rtic",
"--features",
"rt"
"--bin",
"uart-rtic",
],
"group": {
"kind": "build",
@ -158,8 +154,6 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"-p",
"vorago-reb1",
"--example",
"blinky-leds",
],
@ -174,8 +168,6 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"-p",
"vorago-reb1",
"--example",
"blinky-button-irq",
],
@ -190,8 +182,6 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"-p",
"vorago-reb1",
"--example",
"adt75-temp-sensor",
],
@ -206,8 +196,6 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"-p",
"vorago-reb1",
"--example",
"blinky-button-rtic",
],
@ -222,8 +210,6 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"-p",
"vorago-reb1",
"--example",
"adxl343-accelerometer"
],
@ -238,8 +224,6 @@
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"-p",
"vorago-reb1",
"--example",
"max11619-adc",
],
@ -248,5 +232,39 @@
"isDefault": true
}
},
{
"label": "reb1-nvm",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"--example",
"nvm",
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "rtic-example",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"--bin",
"rtic-example",
],
},
{
"label": "embassy-example",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": [
"build",
"--bin",
"embassy-example",
],
},
]
}
}