aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-09GHA: Use rust-cacheHenrik Tjäder
2022-02-09Demote Russian translation to WIPHenrik Tjäder
2022-02-09docs: make mdBook emit error codesHenrik Tjäder
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
2022-01-04Merge #579bors[bot]
579: CI: Add link to HackMD to rtic.rs/meeting/ r=perlindgren a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2022-01-04CI: Add link to HackMD to rtic.rs/meeting/Henrik Tjäder
2022-01-03Merge #577bors[bot]
577: Added changelog enforcer r=perlindgren a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2022-01-03Added changelog enforcerEmil Fresk
2021-12-26Merge #573bors[bot]
573: Improved docs on where the 12 MHz comes from in SysTick r=perlindgren a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-12-26Improved docs on where the 12 MHz comes from in SysTickEmil Fresk
2021-12-26Merge #572bors[bot]
572: cargo xtask is now ~40x faster r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-12-26cargo xtask is now ~40x fasterEmil Fresk
2021-12-26Merge #571bors[bot]
571: Added nRF52 RTC based monotonic to the book r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-12-26Added nRF52 RTC based monotonic to the bookEmil Fresk
2021-12-26Merge #569bors[bot]
569: README: Remove rustc badge and Requirements r=korken89 a=perlindgren Remove rustc badge and requirements to edition 2018. Co-authored-by: Per Lindgren <per.lindgren@ltu.se> Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-12-26Update README.mdEmil Fresk
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2021-12-25README: User documentationPer Lindgren
2021-12-25Merge #568bors[bot]
568: Docfix: remove pre-release note r=AfoHT a=perlindgren Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
2021-12-25README: Remove rustc badge and RequirementsPer Lindgren
2021-12-25Docfix: MSRV and Semantic VersioningPer Lindgren
2021-12-25Docfix: remove pre-release notePer Lindgren
2021-12-25Merge #567bors[bot]
567: Promote v1.0 in docs r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-12-25Promote v1.0 in docsHenrik Tjäder
2021-12-25Merge #565 #566bors[bot]
565: Edition: Bump to 2021 r=korken89 a=AfoHT 566: v1.0.0 r=korken89 a=AfoHT This should fail building until all deps are released and accessible on crates.io (There are some required PRs for edition2021 for each repo, alternatively just bringing in the v1.0 PR should have commits included, we can drop the extra PRs later on) https://github.com/rtic-rs/rtic-monotonic/pull/6 https://github.com/rtic-rs/rtic-core/pull/22 https://github.com/rtic-rs/rtic-syntax/pull/68 Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-12-25Merge #564bors[bot]
564: Clippy lints r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-12-25Bump version to 1.0.0Henrik Tjäder