aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/tips_monotonic_impl.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-05-23 06:26:28 +0000
committerGitHub <noreply@github.com>2023-05-23 06:26:28 +0000
commit62162241d4c7d82dfbb310113f7525d134cfde9b (patch)
tree4346cbe248835eba381003d8592248102028dac5 /book/en/src/by-example/tips_monotonic_impl.md
parent21b0d97e17922c023a3b5d8148a414d4277f7b87 (diff)
parent9fa073f7936782bddf5d02b7b1949032e84de1bd (diff)
Merge #741
741: Docs 2 r=korken89 a=datdenkikniet Working on the migration guide and other docs TODO: - [x] Migration guide - [x] Hardcoded examples should link to example code that is tested (this was already done, AFAICT) - [x] Address #699 - [x] Discuss: should we remove references to non-v2, apart from the migration guide and link to the book for v1? (Off-github conclusion: yes) - [x] RTIC {vs,and} Embassy (important: distinction between embassy runtime & HALs) - [x] More descriptive docs on how to implement & PR implementations of `Monotonic` to `rtic-monotonics` Co-authored-by: datdenkikniet <jcdra1@gmail.com>
Diffstat (limited to 'book/en/src/by-example/tips_monotonic_impl.md')
-rw-r--r--book/en/src/by-example/tips_monotonic_impl.md29
1 files changed, 0 insertions, 29 deletions
diff --git a/book/en/src/by-example/tips_monotonic_impl.md b/book/en/src/by-example/tips_monotonic_impl.md
deleted file mode 100644
index 57b0a01..0000000
--- a/book/en/src/by-example/tips_monotonic_impl.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# Implementing a `Monotonic` timer for scheduling
-
-The framework is flexible because it can use any timer which has compare-match and optionally supporting overflow interrupts for scheduling. The single requirement to make a timer usable with RTIC is implementing the [`rtic-time::Monotonic`] trait.
-
-For RTIC 1.0 and 2.0 we instead assume the user has a time library, e.g. [`fugit`] or [`embedded_time`], as the basis for all time-based operations when implementing `Monotonic`. These libraries make it much easier to correctly implement the `Monotonic` trait, allowing the use of
-almost any timer in the system for scheduling.
-
-The trait documents the requirements for each method, and for inspiration
-there is a reference implementation based on the `SysTick` timer available on all ARM Cortex M MCUs.
-
-- [`Systick based`], runs at a fixed interrupt (tick) rate - with some overhead but simple and provides support for large time spans
-
-Here is a list of `Monotonic` implementations for RTIC 1.0:
-
-- [`STM32F411 series`], implemented for the 32-bit timers
-- [`Nordic nRF52 series Timer`], implemented for the 32-bit timers
-- [`Nordic nRF52 series RTC`], implemented for the RTCs
-- [`DWT and Systick based`], a more efficient (tickless) implementation - requires both `SysTick` and `DWT`, supports both high resolution and large time spans
-
-If you know of more implementations feel free to add them to this list.
-
-[`rtic_time::Monotonic`]: https://docs.rs/rtic_time/
-[`fugit`]: https://docs.rs/fugit/
-[`embedded_time`]: https://docs.rs/embedded_time/
-[`STM32F411 series`]: https://github.com/kalkyl/f411-rtic/blob/a696fce7d6d19fda2356c37642c4d53547982cca/src/mono.rs
-[`Nordic nRF52 series Timer`]: https://github.com/kalkyl/nrf-play/blob/47f4410d4e39374c18ff58dc17c25159085fb526/src/mono.rs
-[`Nordic nRF52 series RTC`]: https://gist.github.com/korken89/fe94a475726414dd1bce031c76adc3dd
-[`Systick based`]: https://github.com/rtic-monotonics
-[`DWT and Systick based`]: https://github.com/rtic-rs/dwt-systick-monotonic