aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics/src
AgeCommit message (Collapse)Author
2024-05-27add support for nrf52805 (#941)Foo
2024-04-21Bump rp2040-pac to 0.6 in rtic-monotonics (#905)Martins Polakovs
* Support rp2040-pac v0.6 in rtic-monotonics * Add changelog entry * Fix rp2040_local_i2c_init example
2024-04-10Monotonic rewrite (#874)Finomnis
* Rework timer_queue and monotonic architecture Goals: * make Monotonic purely internal * make Monotonic purely tick passed, no fugit involved * create a wrapper struct in the user's code via a macro that then converts the "now" from the tick based monotonic to a fugit based timestamp We need to proxy the delay functions of the timer queue anyway, so we could simply perform the conversion in those proxy functions. * Update cargo.lock * Update readme of rtic-time * CI: ESP32: Redact esp_image: Too volatile * Fixup: Changelog double entry rebase mistake --------- Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2023-12-06Fix race condition in `calculate_now` (#860)Finomnis
* Fix race condition in calculate_now * Add changelog * Update changelog * Refine comment * More comment fixes
2023-12-06Fix `nrf::rtc` errata workaround (#858)Finomnis
* Deprecate `should_dequeue_check` * Fix errata by delaying the wakeup point * Add changelog * Fix changelog typos
2023-12-06Fix nrf monotonics (#852)Finomnis
* Fix nrf::timer * Bootstrap nrf52840-blinky example * More work on nrf blinky example * Fix README * Add asserts for correct timer functionality * Add correctness check to other monotonics as well * Update Changelog * Fix potential timing issues * Fix race condition in nrf::rtc * Add changelog * Add rtc blinky example * Change rtc example to RC lf clock source * Add changelog to rtic-time * Add changelog * Attempt to fix CI * Update teensy4-blinky Cargo.lock
2023-12-04Refactor race condition free timer helper (#850)Finomnis
* Implement half_period_counter in rtic-time * Rename compute_now to calculate_now, use it in stm32 and imxrt * Add more tests * Add some docs * Fix clippy warning, add imxrt timer to monotonics tests * Bump dependency version to make sure monotonics will build properly * Add changelog to rtic-monotonics * Add more docs * Add more docs * Finish documentation * Fix typos * Switch from atomic-polyfill to portable-atomic * Some more doc fixes * More doc fixes * Minor doc fix * Minor doc fix * Fix Atomics not existing * Fix example * Minor example improvement * Revert back to atomic-polyfill * Fix cargo.toml formatting * Remove atomic-polyfill * Attempt to fix unused macro warning * Remove atomics completely from half period counter * Minor doc fix * Doc fixes * Doc fixes * Remove obsolete comment * Fix ordering in monotonic initialization sequence
2023-12-01Fix mono delay (#843)Finomnis
* rtic-time: Compenstate for timer uncertainty * Update changelog and incorrect cargo.lock in an example * Fix Monotonic impls * Fix tests * Fix other monotonics, again * Update changelog * Fix example * Fix DelayUs and DelayMs impls * Minor coding style fix in u64 conversions * Fix all changelogs * Fix changelog * Fix blocking DelayUs * Minor monotonic rework * Add delay precision test * Add more tests * Add rust-version tags to Cargo.toml * Fix imxrt, rp2040 and systick timer * Fix more monotonics * Fix systick monotonic * Some reverts * Fix imxrt * Fix nrf * Fix rp2040 * Fix stm32 * Fix systick * Fix rtic-time tests * Bump to e-h.rc2 * Apply e-h.rc2 fixes to rtic-time * Apply fixes from arbiter * Fix clippy warning * Minor beautification * Revert previous changes * Fix variable name * Add blocking tests, but disable them by default
2023-11-10Update systick.rsFinomnis
2023-11-10Add documentation for imxrt; other doc fixesFinomnis
2023-11-08CI: rtic-monotonics: systick not always in scopeHenrik Tjäder
Links are checked during compilation, and to not make it overly complex remove the link ``` error: unresolved link to `systick` --> rtic-monotonics/src/lib.rs:7:11 | 7 | //! The [`systick`] monotonic works on all cortex-M parts, and requires that the feature `cortex-m-systick` is enabled. | ^^^^^^^ no item named `systick` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` error: could not document `rtic-monotonics` ```
2023-11-08Add Monotonic for i.MX RT chip familyFinomnis
2023-11-08Fix STM32 monotonic rollover race conditionFinomnis
2023-11-01Fix CI with async_fn_in_trait not being a featureEmil Fresk
2023-10-03rtic-monotonics: Fix stm32-metapac useNils Fitinghoff
Previously, the stm32 monotonics only compiled for some chip families. For example, stm32g081kb worked, but not stm32f407*. The stm32-metapac does not directly unify peripheral names between the many stm32 families, but provides tools for build scripts to generate code that uses the right names for the selected chip. Use that mechanism instead of targeting a specific family.
2023-09-19rtic-monotonics: Implement blocking DelayUs from embedded-hal 1Nils Fitinghoff
2023-09-06add embedded-hal-async impl to stm32Andres Vahter
2023-09-06expose all stm32-metapac chips as featuresAndres Vahter
add more supported timers
2023-09-06PoC Monotonic impl based on stm32-metapacAndres Vahter
2023-08-25rtic-monotonics: Add 64-bit SysTick monotonicNils Fitinghoff
Counting at 1 kHz, 32 bits for counting ticks is not enough to ensure monotonicity for more than 50 days. Add a feature to change the backing storage to 64 bits.
2023-08-08Support RP2040 PAC v0.5 in `rtic-monotonics`Emil Fresk
2023-07-25Fixed new TAIT requirement and release v2.0.1 of RTICEmil Fresk
2023-04-23Update embedded-hal-asyncdatdenkikniet
2023-04-16Merge #736bors[bot]
736: More `xtasks` and add examples to `rtic` repo r=korken89 a=datdenkikniet This was in #732 before, but decluttering that PR seemed sensible Co-authored-by: datdenkikniet <jcdra1@gmail.com>
2023-04-16Deny on warnings in xtasksdatdenkikniet
2023-04-15rtic-monotonics: Add some docsdatdenkikniet
2023-04-10rtic-monotonics: export fugit the same for all monotonicsEmil Fresk
2023-04-05Fix monotonics raceEmil Fresk
2023-04-04Add setting of priority to interruptsEmil Fresk
2023-04-02Added nRF monotonicsEmil Fresk
2023-03-29Update monotonic token macro namesEmil Fresk
2023-03-15refactor: re-formatted filesYandrik
2023-03-15refactor(macro): changed not-yet-changed crate names to $crateYandrik
2023-03-15refactor(macro): used $crate for better interopYandrik
2023-03-11Merge #702bors[bot]
702: Monotonics interrupt token r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2023-03-11rtic-monotonics: Add interrupt tokens to make sure users bind interruptsEmil Fresk
2023-03-11rtic-monotonics: Unmask the RP2040 timerEmil Fresk
2023-03-04rtic-monotonics: Fix testsHenrik Tjäder
2023-03-04CFG: Align all crates to use hyphenHenrik Tjäder
2023-03-01Add feature flagsEmil Fresk
2023-03-01Make embedded-hal-async dependency optional for better compatibility with HALsdatdenkikniet
Some hals implement traits for embedded-hal version `=1.0.0.alpha.<not 9>`, which is explicitly incompatible with the version `=1.0.0.alpha.9` which embedded-hal-async depends on. Making the dependency optional allows downstream projects to include rtic-monotonic without requiring that all of their other libraries also implement that specific version of embedded-hal 1.0
2023-03-01Fix spelling on "cortex_m_systick"datdenkikniet
2023-03-01rtic-monotonics: Feature gate monotonics correctly to support multiple MCUsEmil Fresk
2023-03-01RP2040 monotonic, rename systick monotonic to not have double nameEmil Fresk
2023-03-01rtic-monotonics: Simplify features, default is 1kHzHenrik Tjäder
Make 100 Hz or 10 kHz opt in through features, which are meant for testing primarily.
2023-03-01Simplify Systick Monotonic by integrating the TQEmil Fresk
2023-03-01Make xtask pass, clean up rtic Cargo.tomlEmil Fresk
2023-03-01Added examples for async crates + fixed codegen for non-Copy argumentsEmil Fresk
2023-03-01CI: Don't let warnings get awayHenrik Tjäder
2023-03-01Systick runs at 1 kHzEmil Fresk