More clarifications

This commit is contained in:
Emil Fresk
2022-07-02 20:09:29 +02:00
parent 750fb8b5d5
commit fb03cda302
4 changed files with 11 additions and 7 deletions
+4 -2
View File
@@ -1,5 +1,5 @@
[package] [package]
# TODO(1) fix `authors` and `name` if you didn't use `cargo-generate` # TODO fix `authors` and `name` if you didn't use `cargo-generate`
authors = ["{{authors}}"] authors = ["{{authors}}"]
name = "{{project-name}}" name = "{{project-name}}"
edition = "2018" edition = "2018"
@@ -14,8 +14,10 @@ defmt-rtt = "0.3.0"
panic-probe = { version = "0.3.0", features = ["print-defmt"] } panic-probe = { version = "0.3.0", features = ["print-defmt"] }
cortex-m-rtic = "1.1" cortex-m-rtic = "1.1"
cortex-m = "0.7" cortex-m = "0.7"
# TODO(4) enter your HAL here # TODO enter your HAL here
# some-hal = "1.2.3" # some-hal = "1.2.3"
# TODO add a monotonic if you use scheduling
# some-monotonic = "1.2.3"
# cargo build/run # cargo build/run
[profile.dev] [profile.dev]
+4 -2
View File
@@ -3,8 +3,10 @@
use {{crate_name}} as _; // global logger + panicking-behavior + memory layout use {{crate_name}} as _; // global logger + panicking-behavior + memory layout
// TODO: Replace `some_hal::pac` with the path to the PAC #[rtic::app(
#[rtic::app(device = some_hal::pac)] device = some_hal::pac, // TODO: Replace `some_hal::pac` with the path to the PAC
dispatchers = [FreeInterrupt1, ...] // TODO: Replace the `FreeInterrupt1, ...` with free interrupt vectors if software tasks are used
)]
mod app { mod app {
// TODO: Add a monotonic if scheduling will be used // TODO: Add a monotonic if scheduling will be used
// #[monotonic(binds = SysTick, default = true)] // #[monotonic(binds = SysTick, default = true)]
+2 -2
View File
@@ -3,9 +3,9 @@
use core::sync::atomic::{AtomicUsize, Ordering}; use core::sync::atomic::{AtomicUsize, Ordering};
use defmt_rtt as _; // global logger use defmt_rtt as _; // global logger
// TODO(5) adjust HAL import
// use some_hal as _; // memory layout
// TODO adjust HAL import
// use some_hal as _; // memory layout
use panic_probe as _; use panic_probe as _;
// same panicking *behavior* as `panic-probe` but doesn't print a panic message // same panicking *behavior* as `panic-probe` but doesn't print a panic message
+1 -1
View File
@@ -1,5 +1,5 @@
[package] [package]
# TODO(1) fix `authors` if you didn't use `cargo-generate` # TODO fix `authors` if you didn't use `cargo-generate`
authors = ["{{authors}}"] authors = ["{{authors}}"]
name = "testsuite" name = "testsuite"
publish = false publish = false