mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
Cleanup example
This commit is contained in:
parent
2e9dba7c81
commit
dd563e3cee
1 changed files with 3 additions and 8 deletions
|
@ -2,23 +2,18 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![feature(type_alias_impl_trait)]
|
#![feature(type_alias_impl_trait)]
|
||||||
|
|
||||||
use cortex_m_semihosting::{debug, hprintln};
|
|
||||||
use panic_semihosting as _;
|
use panic_semihosting as _;
|
||||||
use systick_monotonic::*;
|
|
||||||
|
|
||||||
// NOTES:
|
// NOTES:
|
||||||
//
|
//
|
||||||
// - Async tasks cannot have `#[lock_free]` resources, as they can interleve and each async
|
// - Async tasks cannot have `#[lock_free]` resources, as they can interleve and each async
|
||||||
// task can have a mutable reference stored.
|
// 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)]
|
#[rtic::app(device = lm3s6965, dispatchers = [SSI0, UART0], peripherals = true)]
|
||||||
mod app {
|
mod app {
|
||||||
use crate::*;
|
use cortex_m_semihosting::{debug, hprintln};
|
||||||
|
use systick_monotonic::*;
|
||||||
pub type AppInstant = <Systick<100> as rtic::Monotonic>::Instant;
|
|
||||||
pub type AppDuration = <Systick<100> as rtic::Monotonic>::Duration;
|
|
||||||
|
|
||||||
#[shared]
|
#[shared]
|
||||||
struct Shared {}
|
struct Shared {}
|
||||||
|
|
Loading…
Reference in a new issue