aboutsummaryrefslogtreecommitdiff
path: root/examples (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-10-15Merge branch 'master' into spawn_experimentGravatar Emil Fresk 3-0/+174
2020-10-15Fix comments in examplesGravatar Emil Fresk 2-2/+2
2020-10-15Merge #371Gravatar bors[bot] 3-0/+174
371: task_local and lock_free r=korken89 a=AfoHT Getting this going to test with GHA For further discussion see https://github.com/rtic-rs/rfcs/issues/30 Co-authored-by: Per <Per Lindgren> Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-10-15Updated examples and rtic-nameGravatar Henrik Tjäder 6-291/+28
2020-10-15Add example with features on all resources combined with lock_free and ↵Gravatar Henrik Tjäder 2-0/+192
task_local
2020-10-15task_local and lock_free analysis (take 1)Gravatar Per 4-0/+245
2020-10-15Merge branch 'master' into spawn_experimentGravatar Emil Fresk 1-0/+28
2020-10-11Fixing examples and tests, modules now import user imports correctlyGravatar Emil Fresk 16-193/+116
Fmt Correct syntax crate UI test fix Fix build script Cleanup More cleanup
2020-10-11Now with spawn/schedule from anywhereGravatar Emil Fresk 3-8/+12
2020-10-08Merge branch 'master' into spawn_experimentGravatar Emil Fresk 33-34/+100
2020-10-07Now core contains the same `Peripherals` type based on monotonicGravatar Emil Fresk 1-0/+28
2020-10-05spawn examples updatedGravatar Per Lindgren 2-1/+40
2020-10-05spawn POC works, likely unsoundGravatar Per Lindgren 1-0/+33
2020-10-05Merge branch 'master' into always_late_resourcesGravatar Emil Fresk 39-88/+188
2020-10-05Merge #368Gravatar bors[bot] 39-86/+180
368: Mod over const r=korken89 a=AfoHT Related [RFC](https://github.com/rtic-rs/rfcs/pull/34) Dependent on [rtic-syntax-PR30](https://github.com/rtic-rs/rtic-syntax/pull/30) ~~Currently using my own dev-branch~~ Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2020-10-03Updated documentation to include the critical section token in initGravatar Emil Fresk 1-0/+4
2020-10-01Now late resources are always usedGravatar Emil Fresk 32-33/+97
2020-09-29Annotate the resource structGravatar Henrik Tjäder 1-0/+1
2020-09-29Pool example need to import things into the modGravatar Henrik Tjäder 1-1/+3
2020-09-29Workaround lint for nowGravatar Henrik Tjäder 1-0/+1
2020-09-29Keep user code as-is within the module, add exampleGravatar Henrik Tjäder 1-0/+60
2020-09-29All examples use #[resources] attributeGravatar Henrik Tjäder 15-1/+15
2020-09-25Name collision with RTIC-mainGravatar Henrik Tjäder 5-7/+7
With modules the scoping is different and task names collide with main generated by RTIC
2020-09-25Update new example to use mod {}Gravatar Henrik Tjäder 2-3/+4
2020-09-25Examples need to import the resourcesGravatar Henrik Tjäder 5-0/+13
2020-09-25Modules using lower-case in examplesGravatar Henrik Tjäder 37-38/+41
2020-09-25Examples using mod instead of constGravatar Henrik Tjäder 37-76/+75
2020-09-25Fixed example and v7 flagGravatar Emil Fresk 1-1/+1
2020-09-24Regression in master on double scheduleGravatar Emil Fresk 1-0/+37
2020-09-14Fixed so examples do not crash in release modeGravatar Emil Fresk 13-13/+39
2020-06-30Merge #337Gravatar bors[bot] 15-22/+65
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 PeripheralGravatar Emil Fresk 1-0/+16
Added qemu test Added comment Typo Add cfg for homogeneous More cfg Now multicore working Add .run file
2020-06-26Examples: Clarify extern sectionGravatar Danilo Bargen 15-22/+65
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 RTICGravatar Henrik Tjäder 36-67/+67
2020-06-11FmtGravatar Emil Fresk 1-2/+1
2020-06-11Merge pull request #313 from russell/patch-1Gravatar Emil Fresk 1-1/+1
Update example to use better initial value
2020-06-11Merge #315Gravatar bors[bot] 4-0/+79
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 hacksGravatar Henrik Tjäder 1-28/+24
2020-06-03Run cargo fmtGravatar Henrik Tjäder 1-1/+1
2020-05-29allow handlers to be named 'main'Gravatar Jorge Aparicio 4-0/+79
`#[init]`, `#[idle]` and `#[task]` handlers can now be named `main` fixes #311
2020-05-26Update example to use better initial valueGravatar Russell Sim 1-1/+1
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 resourcesGravatar Henrik Tjäder 1-0/+40
2020-01-24Merge #294Gravatar bors[bot] 1-2/+4
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]Gravatar Jorge Aparicio 1-0/+1
2020-01-21use the safe DWT::unlock APIGravatar Jorge Aparicio 1-2/+4
instead of a unsafe write_volatile call
2019-11-07Added struct de-structure-ing example in tips & tricksGravatar Emil Fresk 1-0/+47
2019-10-15more monotonic timer docsGravatar Jorge Aparicio 3-3/+13
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 exampleGravatar Jorge Aparicio 1-14/+14
2019-08-21doc upGravatar Jorge Aparicio 15-79/+132
2019-07-10implement RFC #212Gravatar Jorge Aparicio 13-111/+148