aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-15action-rs tool-cache is deprecated, always failingHenrik Tjäder
2022-02-15Merge #614bors[bot]
614: CHANGELOG merge=union r=perlindgren a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-15Merge #610 #613bors[bot]
610: GHA: Print current crate version too r=perlindgren a=AfoHT 613: Docs: fix link r=perlindgren a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-15CHANGELOG merge=unionHenrik Tjäder
2022-02-15Docs: fix linkHenrik Tjäder
2022-02-11Merge #603bors[bot]
603: Add a remark about `Sync` and `Send` traits requirement for resources r=AfoHT a=Glaeqen Co-authored-by: Gabriel Górski <glaeqen@gmail.com>
2022-02-10GHA: Print current crate version tooHenrik Tjäder
2022-02-10Merge #607bors[bot]
607: Docs: Fix dated migration docs for spawn r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-10Docs: Fix dated migration docs for spawnHenrik Tjäder
2022-02-10Merge #606bors[bot]
606: GHA: Automatic merge to release/vX r=perlindgren a=AfoHT - Require clippy for deploy - GHA: Automatic merge to release/vX - Link dev-book to stable if they are describe the same release - Update CHANGELOG Development work is done in the master branch Older versions previously were found in v0.5.x, v0.4.x branches. Now with v1 released, and any breaking change forcing a v2, a need to streamline documentation building arose. The different docs: - rtic.rs - latest stable (v1) - API documentation - RTIC book - old stable (v0.5) - API documentation - RTIC book - oldold stable (v0.4) - API documentation - RTIC book - docs.rs - all previous crates.io releases - API documentation With this PR, when a pull request gets merged to master with CI passing the current master branch gets merged to `release/v$VERSION` where `$VERSION` is parsed from cargo metadata of cortex-m-rtic. The deployment of docs GHA job is dependent on this merge job, and therefore the docs published to rtic.rs will contain the latest content from the merged PR. Assuming the current situation where `v1` is the latest stable, a PR should trigger a merge to `release/v1` and then docs gets pushed to `gh-pages` branch (rtic.rs). For the future, when the latest stable is still `v1`, but the current dev version in `master` branch is `v2` the GHA job will push to `release/v2` (dev branch). For the future we might decide if this push of the dev branch is desirable. If the current stable version and dev version share the same major version, the dev book redirection on rtic.rs will point to the stable book instead. Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-10Update CHANGELOGHenrik Tjäder
2022-02-10Link dev-book to stable if they are describe the same releaseHenrik Tjäder
2022-02-10GHA: Automatic merge to release/vXHenrik Tjäder
2022-02-10Require clippy for deployHenrik Tjäder
2022-02-10Merge #605bors[bot]
605: GHA: Tune CI r=AfoHT a=AfoHT - GHA: Use rust-cache - GHA: Cleanup single target jobs - GHA: Add cargo clippy Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-10Add bors/* to branchesHenrik Tjäder
2022-02-10Update CHANGELOGHenrik Tjäder
2022-02-09Fix/mute clippy errorsHenrik Tjäder
2022-02-09GHA: Add cargo clippyHenrik Tjäder
2022-02-09GHA: Cleanup single target jobsHenrik Tjäder
2022-02-09GHA: Use rust-cacheHenrik Tjäder
2022-02-09Merge #604bors[bot]
604: docs: make mdBook emit error codes r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-09Demote Russian translation to WIPHenrik Tjäder
2022-02-09docs: make mdBook emit error codesHenrik Tjäder
2022-02-08Add a remark about `Sync` and `Send` traits requirement for resourcesGabriel Górski
2022-02-08Merge #602bors[bot]
602: book: Restore accidentally removed files r=korken89 a=AfoHT - book: Restore accidentally removed files - Update changelog Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-08book: Restore accidentally removed filesHenrik Tjäder
2022-02-07Merge #601bors[bot]
601: Make bors run r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2022-02-07Make bors runEmil Fresk
2022-02-07Merge #599bors[bot]
599: Docs: SW and HW tasks r=korken89 a=AfoHT Reword and (hopefully) clarify SW and HW tasks Closes #576 Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-07Merge #598bors[bot]
598: CONTRIBUTION.md now includes CI prep. r=korken89 a=AfoHT Split out from Per’s previous work in `lockall` branch with some minor updates Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
2022-02-05Docs: SW and HW tasksHenrik Tjäder
2022-02-05CONTRIBUTION.md now includes CI prep.Per Lindgren
2022-02-05Merge #593bors[bot]
593: RTIC macro expansion: Try to find target-dir r=korken89 a=AfoHT Seems over-engineered, but for projects where ``` [build] target-dir = "target" ``` is set to anything other than default `target` RTIC did simply not produce any `rtic-expansion.rs`. This changes the approach to not giving up if not finding `target/` by looking at `OUT_DIR` and traversing back until `TARGET` is found. As the `TARGET` target-triple variable is not available, approximate the `TARGET` folder (found in `target-dir`) with `s.starts_with("thumbv")`. `target-dir` as set in `.cargo/config` will now be the parent directory of the `Path` ending with `TARGET` ## Example running with default target: ``` cortex-m-rtic on  expansionoutdir [$!?] is 📦 v1.0.0 via R v1.58.0 took 4s ❯ cargo build --example spawn --target thumbv7em-none-eabihf OUT_DIR "/home/henrik/rust/rtic/cortex-m-rtic/target/thumbv7em-none-eabihf/debug/build/cortex-m-rtic-5bd81e8412a790d5/out" target/ exists Write file: target/rtic-expansion.rs Finished dev [unoptimized + debuginfo] target(s) in 7.20s ``` ## Contrived example With `.cargo/config` containing: ``` [build] target-dir = "/tmp/cargothingy/../rust/./target/cargo"` ``` ``` cortex-m-rtic on  expansionoutdir [$!?] is 📦 v1.0.0 via R v1.58.0 took 3s ❯ cargo build --example spawn --target thumbv7em-none-eabihf OUT_DIR "/tmp/cargothingy/../rust/./target/cargo/thumbv7em-none-eabihf/debug/build/cortex-m-rtic-5bd81e8412a790d5/out" "/tmp/cargothingy/../rust/./target/cargo" Write file: /tmp/cargothingy/../rust/./target/cargo/rtic-expansion.rs Finished dev [unoptimized + debuginfo] target(s) in 6.42s ``` ## Less extreme with relative paths ``` [build] target-dir = "../../cargothingy/target/buildfiles/and-stuff" ``` ``` OUT_DIR "/home/henrik/rust/rtic/cortex-m-rtic/../../cargothingy/target/buildfiles/and-stuff/thumbv7em-none-eabihf/debug/build/cortex-m-rtic-5bd81e8412a790d5/out" "/home/henrik/rust/rtic/cortex-m-rtic/../../cargothingy/target/buildfiles/and-stuff" Write file: /home/henrik/rust/rtic/cortex-m-rtic/../../cargothingy/target/buildfiles/and-stuff/rtic-expansion.rs Finished dev [unoptimized + debuginfo] target(s) in 6.78s ``` Note: If the user creates a folder named target in the same directory where `Cargo.toml`/crate root is, that will be used for storing the expansion. ``` <...> OUT_DIR "/home/henrik/rust/rtic/cortex-m-rtic/../../cargothingy/target/buildfiles/and-stuff/thumbv7em-none-eabihf/debug/build/cortex-m-rtic-5bd81e8412a790d5/out" target/ exists Write file: target/rtic-expansion.rs Finished dev [unoptimized + debuginfo] target(s) in 6.62s ``` Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-02-04Merge #595bors[bot]
595: Update tips_monotonic_impl.md r=AfoHT a=jordens * There is no RTIC 0.6, only several RCs. * Timers without interrupts (like the DWT cycle counter alone) will not be useful for `Monotonic` impls. * Clarified some of the descriptions of the various implementations. Close #597 Close #594 Co-authored-by: Robert Jördens <rj@quartiq.de>
2022-02-04add changelog entryRobert Jördens
2022-02-04use permalinks for (currently broken) mono linksRobert Jördens
2022-02-03Update tips_monotonic_impl.mdRobert Jördens
* There is no RTIC 0.6, only several RCs. * Timers without interrupts (like the DWT cycle counter alone) will not be useful for `Monotonic` impls. * Clarified some of the descriptions of the various implementations.
2022-01-28RTIC macro expansion: Try to find target-dirHenrik Tjäder
2022-01-24Merge #591bors[bot]
591: Fix running command examples in chapter 1.5.5 Monotonic r=AfoHT a=GreenPenguino Run the right examples in chapter 1.5.5 in the book Co-authored-by: Erik <erik_97@live.nl>
2022-01-24Fix running command examples in chapter 1.5.5 MonotonicErik
2022-01-22Merge #588bors[bot]
588: Highlight how to run examples locally r=perlindgren a=AfoHT How examples are run never gets properly introduced before used in `by-example/resources.md` Fixes #587 Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-01-21Highlight how to run examples locallyHenrik Tjäder
2022-01-08Merge #584bors[bot]
584: mq/minor corrections r=korken89 a=mareq Co-authored-by: Mareq Balint <mareq@balint.eu>
2022-01-08Merge #585bors[bot]
585: Fix the locals.rs comment r=korken89 a=keadwen I believe that is a typo s/shared/local_to_bar Co-authored-by: Jakub Młynarczyk <jkbmlynarczyk@gmail.com>
2022-01-08Fix the locals.rs commentJakub Młynarczyk
I believe that is a typo s/shared/local_to_bar
2022-01-07Correct grammar in 1.5.2 Software tasks & spawnMareq Balint
2022-01-07Correct wording in 1.2 Resource usageMareq Balint
2022-01-06Merge #580bors[bot]
580: Spawn at periodic r=korken89 a=perlindgren Examples on drift free usage under RTIC 1.0. Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
2022-01-04Drift free timing examplesPer Lindgren