aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-16implement run-pass tests as xtasksLotte Steenbrink
`
2021-09-14Merge #525bors[bot]
525: Cleanup export and actually use rtic::export, made fn init inline r=perlindgren a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-09-14Cleanup export and actually use rtic::export, made fn init inlineEmil Fresk
2021-08-31Merge #522bors[bot]
522: validate unused dispatchers r=AfoHT a=japaric closes #521 Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2021-08-31fix UI test, take 2Jorge Aparicio
2021-08-31fix UI testJorge Aparicio
2021-08-31style fixJorge Aparicio
2021-08-31validate unused dispatchersJorge Aparicio
closes #521
2021-08-27Merge #518bors[bot]
518: Fix link for SLEEPONEXIT r=korken89 a=newAM Co-authored-by: Alex Martens <alexmgit@protonmail.com>
2021-08-27Merge #519bors[bot]
519: Update README to highlight `cortex-m` 0.6 vs 0.7 new feature r=korken89 a=jorgeig-space This is just a general README update. I will open another PR for the rust-doc text in branch 0.5.x, in case there is a new release of 0.5.x at some point. Co-authored-by: Jorge Iglesias Garcia <44316552+jorgeig-space@users.noreply.github.com> Co-authored-by: Jorgeig <jorge@jorgeig.com>
2021-08-27Revert CI changesJorge Iglesias Garcia
2021-08-27Update README.mdJorge Iglesias Garcia
2021-08-27Update README.mdJorge Iglesias Garcia
2021-08-27Merge branch 'rtic-rs:master' into masterJorge Iglesias Garcia
2021-08-26Fix link for SLEEPONEXITAlex Martens
2021-08-20Merge #516bors[bot]
516: More rustanalyzer lint fixes r=korken89 a=korken89 Found some more Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-08-20More rustanalyzer lint fixesEmil Fresk
2021-08-20Merge #515bors[bot]
515: `mark_internal_ident` cleanup r=korken89 a=datdenkikniet Refactor so that all `idents` that had to call `mark_ident_internal` before now call `mark_name_internal` in the `util` module by default. The commits can (and probably should) be squashed, they're separated for clarity. Fixes #512 Co-authored-by: datdenkikniet <jcdra1@gmail.com>
2021-08-20Use `mark_internal_name` by default for methods in `util` to make usage of ↵datdenkikniet
these functions more straightforward. fq_ident is always internal rq_ident is always internal monotonic_ident is always internal inputs_ident is always internal local_resources_ident is always internal shared_resources_ident is always internal monotonic_instants_ident is always internal tq_ident is always internal timer_queue_marker_ident is always internal static_shared_resource_ident is always internal static_local_resource_ident is always internal declared_static_local_resource_ident is always internal Only names, not idents, are now marked as internal Use same rtic internal everywhere
2021-08-19Merge #514bors[bot]
514: Silence rust-analyzer warnings on internal types r=korken89 a=AfoHT Continues the work started in #513 Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-08-19Silence rust-analyzer warnings on internal typesHenrik Tjäder
2021-08-19Merge #513bors[bot]
513: Fixed some lints from Rust Analyzer with experimental proc-macros r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-08-19Fixed some lints from Rust Analyzer with experimental proc-macrosEmil Fresk
2021-08-17Merge #511bors[bot]
511: Remove linked list impl - use heapless, linked list init now const fn r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-08-16Remove linked list impl - use heapless, linked list init now const fnEmil Fresk
2021-08-16Merge #508bors[bot]
508: update russian book r=AfoHT a=burrbull Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com>
2021-08-11Add branches to CIJorgeig
2021-08-11Add branches to CIJorgeig
2021-08-11Update build.ymlJorge Iglesias Garcia
Add a "test" branch
2021-08-03update russian bookAndrey Zgarbul
2021-08-03Merge #504bors[bot]
504: Add links to RTIC book dev version and rtic-examples r=japaric a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-08-02Merge #506bors[bot]
506: book: Add note to remember to choose target r=AfoHT a=CuriouslyCurious While following the instructions in the book I ran into a wall. I was getting linker errors and had no idea why. Turns out trying to run `cargo build --example init` on an x86 build target maybe doesn't work too well, so I added a note about it. :sweat_smile: I'll leave this as a draft since my Russian isn't fluent enough to add the note there as well. Also, adding a modified version of `.config/cargo.toml` from the embedded example might be a decent idea but wanted to hear from you guys first. :P Co-authored-by: CuriouslyCurious <thecuriouslycurious@protonmail.com>
2021-08-02Merge #507bors[bot]
507: GHA: Fix 1.54 formatting change r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-08-02GHA: Fix 1.54 formatting changeHenrik Tjäder
2021-07-30book: Properly update the note with a linkCuriouslyCurious
2021-07-30Revert "book: Add link to new.md"CuriouslyCurious
This reverts commit 7a977f3fa99adcdf160761bf96268e6c89dd27fb.
2021-07-29book: Add link to new.mdCuriouslyCurious
2021-07-29book: Clarify target noticeCuriouslyCurious
2021-07-28book: Add note to remember to choose targetCuriouslyCurious
2021-07-27Also link to `rtic-examples` in the tips section of the bookHenrik Tjäder
2021-07-27Add links to RTIC book dev version and rtic-examplesHenrik Tjäder
2021-07-22Merge #501bors[bot]
501: Propogate the task attributes to the spawn handles r=AfoHT a=crawford This allows tasks to be gated by `cfg` attributes when also using monotonics. For example: ```rust #[cfg(feature = "logging")] #[task(shared = [logger])] fn logger_init(mut cx: logger_init::Context) { /* ... */ } ``` Without this change, the reschedule_at() implementation is unconditionally included even though it references the SpawnHandle from its task module, which is _conditionally_ included. This resulted in compiler errors like the following: ``` error[E0433]: failed to resolve: use of undeclared crate or module `logger_init` --> src/main.rs:243:8 | 243 | fn logger_init(mut cx: logger_init::Context) { | ^^^^^^^^^^^ use of undeclared crate or module `logger_init` ``` Co-authored-by: Alex Crawford <rtic@code.acrawford.com>
2021-07-22Merge #502bors[bot]
502: book/resources: highlight that `#[lock_free]` includes a compile-time check r=AfoHT a=japaric for the "same priority requirement"; this prevents data races Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
2021-07-22Merge #500bors[bot]
500: migration/0.5: cover #[lock_free] r=AfoHT a=japaric I think this completes #488 Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
2021-07-22book/resources: highlight that `#[lock_free]` includes a compile-time checkJorge Aparicio
for the "same priority requirement"; this prevents data races
2021-07-22Propogate the task attributes to the spawn handlesAlex Crawford
This allows tasks to be gated by `cfg` attributes when also using monotonics. For example: ```rust #[cfg(feature = "logging")] #[task(shared = [logger])] fn logger_init(mut cx: logger_init::Context) { /* ... */ } ``` Without this change, the reschedule_at() implementation is unconditionally included even though it references the SpawnHandle from its task module, which is _conditionally_ included. This resulted in compiler errors like the following: ``` error[E0433]: failed to resolve: use of undeclared crate or module `logger_init` --> src/main.rs:243:8 | 243 | fn logger_init(mut cx: logger_init::Context) { | ^^^^^^^^^^^ use of undeclared crate or module `logger_init` ```
2021-07-22Merge #498bors[bot]
498: book: update the resources chapter r=AfoHT a=japaric see individual commit messages for details. what's still left to do is adjust the very last section about `#[task_local]` and `#[lock_free]` but I plan to do that as a follow up. I didn't find an in-tree example for those two attributes (are they field attributes? where do they fit in the syntax?); a quick scan of the rtic-syntax crate seems to indicate that `task_local` has been removed (?) and that `lock_free` still exists. Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
2021-07-22migration/0.5: cover #[lock_free]Jorge Aparicio
I think this completes #488
2021-07-22book/resources: rm #[task_local] mention; add #[lock_free] exampleJorge Aparicio
the #[task_local] attribute was removed
2021-07-22update expected example output (take 2)Jorge Aparicio