aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-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
2021-07-22update expected example outputJorge Aparicio
2021-07-22comment out line that doesn't compileJorge Aparicio
2021-07-21book/resources: remove mentions of the field attribute #[init(<expr>)]Jorge Aparicio
it no longer exists. all resources are now late resources
2021-07-21book/resources: do not use the lock API in the very first exampleJorge Aparicio
instead stick to `#[local]` resources
2021-07-21Merge #496bors[bot]
496: update the 0.5.x -> 0.6.0 migration guide r=AfoHT a=japaric to use the new resources syntax I also reordered the sections to cover all the resource API first before covering the spawn API I've also added a section about the old `static mut` variable transform Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
2021-07-21use tuple struct syntax for Monotonics everywhereJorge Aparicio
2021-07-21update the 0.5.x -> 0.6.0 migration guideJorge Aparicio
to use the new resources syntax I also reordered the sections to cover all the resource API first before covering the spawn API I've also added a section about the old `static mut` variable transform
2021-07-20Merge #497bors[bot]
497: Change misleading documentation left over by PR #464 r=AfoHT a=Cat-Ion Co-authored-by: Valentin Ochs <a@0au.de>
2021-07-20Change misleading documentation left over by PR #464Valentin Ochs
2021-07-20Merge #464bors[bot]
464: const generics r=AfoHT a=burrbull Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com> Co-authored-by: mriise <mark.riise26@gmail.com> Co-authored-by: Zgarbul Andrey <zgarbul.andrey@gmail.com>
2021-07-20rustfmtAndrey Zgarbul
2021-07-20Merge pull request #1 from mriise/constZgarbul Andrey
fix pool example
2021-07-20fix pool examplemriise
2021-07-09const genericsAndrey Zgarbul
2021-07-09Version fixEmil Fresk
2021-07-09Merge #494bors[bot]
494: Resoures take 2 r=korken89 a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-07-09Update changelog and versionEmil Fresk
2021-07-08Final versionsEmil Fresk
2021-07-08Cleanup from review (needs releases to compile)Emil Fresk
2021-07-07Fixing testsEmil Fresk
2021-07-07Use git depsEmil Fresk
2021-07-07Full local resource syntax workingEmil Fresk
2021-07-06Minimal app now compilesEmil Fresk
2021-07-05Started workEmil Fresk
2021-07-02Merge #492bors[bot]
492: Fix syntax error in migration guide r=korken89 a=newAM Minor problem with a minor fix. Co-authored-by: Alex Martens <alexmgit@protonmail.com>
2021-07-01Fix syntax error in migration guideAlex Martens
2021-06-28Merge #491bors[bot]
491: Fix small typo in readme r=korken89 a=vladinator1000 Co-authored-by: Vlady Veselinov <vladkodmc@gmail.com>