aboutsummaryrefslogtreecommitdiff
path: root/examples/async-task.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2022-06-13 10:24:20 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2022-08-03 11:30:32 +0200
commitdd563e3cee36e8ebee7cb7c809125cdd9bfd7de6 (patch)
treee199485a1d495588c72aaf2ba2661dd69252c242 /examples/async-task.rs
parent2e9dba7c81aa960cc7b369170287a965712c2cd0 (diff)
downloadrtic-dd563e3cee36e8ebee7cb7c809125cdd9bfd7de6.tar.gz
rtic-dd563e3cee36e8ebee7cb7c809125cdd9bfd7de6.tar.zst
rtic-dd563e3cee36e8ebee7cb7c809125cdd9bfd7de6.zip
Cleanup example
Diffstat (limited to 'examples/async-task.rs')
-rw-r--r--examples/async-task.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/async-task.rs b/examples/async-task.rs
index 00fe581c..4d25ec44 100644
--- a/examples/async-task.rs
+++ b/examples/async-task.rs
@@ -2,23 +2,18 @@
#![no_std]
#![feature(type_alias_impl_trait)]
-use cortex_m_semihosting::{debug, hprintln};
use panic_semihosting as _;
-use systick_monotonic::*;
// NOTES:
//
// - Async tasks cannot have `#[lock_free]` resources, as they can interleve and each async
// task can have a mutable reference stored.
-// - Spawning an async task equates to it being polled at least once.
-// - ...
+// - Spawning an async task equates to it being polled once.
#[rtic::app(device = lm3s6965, dispatchers = [SSI0, UART0], peripherals = true)]
mod app {
- use crate::*;
-
- pub type AppInstant = <Systick<100> as rtic::Monotonic>::Instant;
- pub type AppDuration = <Systick<100> as rtic::Monotonic>::Duration;
+ use cortex_m_semihosting::{debug, hprintln};
+ use systick_monotonic::*;
#[shared]
struct Shared {}