aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2020-06-30Merge #337bors[bot]
337: Examples: Clarify extern section r=korken89 a=dbrgn Some beginners are confused about the "extern" section, so I added an explanation comment to all examples. ![image](https://user-images.githubusercontent.com/105168/85903840-9ad2a780-b807-11ea-943d-3f37b814c23f.png) Furthermore, using the UARTx interrupts when UART is actually being used in the same example may be confusing, so I changed them all to SSI0/QEI0. Co-authored-by: Danilo Bargen <mail@dbrgn.ch>
2020-06-30Fixes an issue where one could double take the cortex_m PeripheralEmil Fresk
Added qemu test Added comment Typo Add cfg for homogeneous More cfg Now multicore working Add .run file
2020-06-26Examples: Clarify extern sectionDanilo Bargen
Some beginners are confused about the "extern" section, so I added an explanation comment to all examples. Furthermore, using the UARTx interrupts when UART is actually being used in the same example may be confusing, so I changed them all to SSI0/QEI0.
2020-06-11Rename RTFM to RTICHenrik Tjäder
2020-06-11FmtEmil Fresk
2020-06-11Merge pull request #313 from russell/patch-1Emil Fresk
Update example to use better initial value
2020-06-11Merge #315bors[bot]
315: allow handlers to be named 'main' r=korken89 a=japaric `#[init]`, `#[idle]` and `#[task]` handlers can now be named `main` fixes #311 Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
2020-06-10Use cargo feature instead of conditional compilation hacksHenrik Tjäder
2020-06-03Run cargo fmtHenrik Tjäder
2020-05-29allow handlers to be named 'main'Jorge Aparicio
`#[init]`, `#[idle]` and `#[task]` handlers can now be named `main` fixes #311
2020-05-26Update example to use better initial valueRussell Sim
The example above this in the documentation states ``` // semantically, the monotonic timer is frozen at time "zero" during `init` // NOTE do *not* call `Instant::now` in this context; it will return a nonsense value let now = cx.start; // the start time of the system ``` It results in weird scheduling issues, but still eventually works. `cx.start` is much more reliable. Relates to https://github.com/rtfm-rs/cortex-m-rtfm/issues/196
2020-04-22Retain cfg-attributes on resourcesHenrik Tjäder
2020-01-24Merge #294bors[bot]
294: use the safe DWT::unlock API r=korken89 a=japaric instead of a unsafe write_volatile call Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2020-01-21docs: do not use Instant::now in #[init]Jorge Aparicio
2020-01-21use the safe DWT::unlock APIJorge Aparicio
instead of a unsafe write_volatile call
2019-11-07Added struct de-structure-ing example in tips & tricksEmil Fresk
2019-10-15more monotonic timer docsJorge Aparicio
covers - initialization and configuration of the timer; this is now a responsibility of the application author - correctness of `Monotonic::now()` in `#[init]` - safety of `Monotonic::reset()` closes #251
2019-08-21fix preempt exampleJorge Aparicio
2019-08-21doc upJorge Aparicio
2019-07-10implement RFC #212Jorge Aparicio
2019-06-20RFC #207Jorge Aparicio
2019-06-13rtfm-syntax refactor + heterogeneous multi-core supportJorge Aparicio
2019-05-01book: indirection for faster message passingJorge Aparicio
2019-05-01update examplesJorge Aparicio
2019-04-21book: resources shared with init must also be `Send`Jorge Aparicio
2019-02-26add `binds` example and make it workJorge Aparicio
2019-02-12update examples and testsJorge Aparicio
2018-12-16book: add an example of conditional compilation of resources and tasksJorge Aparicio
2018-11-04use new cortex_m_semihosting::hprintln macroJorge Aparicio
2018-11-04impl Mutex on all shared resourcesJorge Aparicio
document how to write generic code that operates on resources
2018-11-03v0.4.0Jorge Aparicio
closes #32 closes #33
2018-08-24more fixesJorge Aparicio
2018-04-16cargo fmtJorge Aparicio
2018-01-15v0.3.0Jorge Aparicio
2018-01-11adapt to changes in the cortex-m crateJorge Aparicio
2017-12-09safe `&'static mut` references via init.resourcesJorge Aparicio
2017-12-09implement the Resource trait for owned resourcesJorge Aparicio
this unbreaks the "generics" example
2017-12-09drop the Static wrapperJorge Aparicio
2017-12-09deny warnings and unsafe code in tests and examplesJorge Aparicio
2017-12-09fix the "generics" exampleJorge Aparicio
2017-12-09rename LateResourceValues to LateResourcesJorge Aparicio
2017-12-09peripherals as scoped singletonsJorge Aparicio
2017-11-22v0.2.2Jorge Aparicio
2017-10-02fix the exampleJorge Aparicio
2017-10-02fix `idle::Resources::new`Jorge Aparicio
it assumed that all resources were "early" resources
2017-09-22Fix shared resource handling and extend example.Jonas Schievink
The extended example tests that this actually works this time.
2017-09-04Add late resources exampleJonas Schievink
2017-07-29update examplesJorge Aparicio
2017-07-27update examplesJorge Aparicio
2017-07-27make task.$T.enabled optionalJorge Aparicio
and move the logic that differentiates interrupts from exceptions from the crate to the procedural macro logic