Commit graph

1711 commits

Author SHA1 Message Date
Emil Fresk
3de5f793f3
Fix rp2040 example (#855) 2023-12-04 12:49:24 +01:00
Finomnis
612a47ef4d
Fix mono delay (#843)
* 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-12-01 07:59:22 +00:00
Andres Vahter
9f5820da1d rtic-sync Arbiter: impl more I2C trait fns
For example embassy-stm32 I2C does not impl transaction yet but other fns are available. So it would be better to impl all of them here.
2023-11-28 09:59:29 +00:00
Andres Vahter
e8667d7872 rtic-sync: add I2C Arbiter to changelog 2023-11-28 06:42:05 +00:00
Andres Vahter
8bb084ebbb rtic-sync: add Arbiter for I2C 2023-11-28 06:42:05 +00:00
Nils Fitinghoff
ff5cad9cd2 rtic-sync: Add SPI bus sharing with arbiter 2023-11-22 19:42:46 +00:00
Karsten Große
96e7704487 rtic-time does not need nightly 2023-11-22 19:36:06 +00:00
Finomnis
a13cb30e88 Revert changelog since 1.3.0 isn't released yet 2023-11-10 20:49:12 +00:00
Finomnis
028a0046bc Update systick.rs 2023-11-10 20:49:12 +00:00
Finomnis
af550483f5 Add documentation for imxrt; other doc fixes 2023-11-10 20:49:12 +00:00
Henrik Tjäder
413955fb39 CI: Create local repo awareness of branch ref 2023-11-09 20:49:22 +00:00
Henrik Tjäder
ea8b5b6c33 CI: rtic-monotonics: systick not always in scope
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-08 20:43:32 +00:00
Emil Fresk
4425b76c6f Prepare rtic-monotonics v1.3.0 release 2023-11-08 20:09:50 +00:00
Finomnis
994884ffb7 Fix comment 2023-11-08 19:43:09 +00:00
Finomnis
b5f9579b90 Use imxrt-uart-panic crate instead of custom panic handler 2023-11-08 19:43:09 +00:00
Finomnis
2fd3b3c404 Add Monotonic for i.MX RT chip family 2023-11-08 19:43:09 +00:00
Finomnis
a7f81262f6 Update changelog 2023-11-08 19:42:43 +00:00
Finomnis
1f76fb063d Fix STM32 monotonic rollover race condition 2023-11-08 19:42:43 +00:00
Henrik Tjäder
9f0ab21a34 Book: timber-lang from the dead
Link to RTFM and RTIC publication search.
2023-11-01 20:20:30 +00:00
Emil Fresk
3c9a8f290d Fix CI with async_fn_in_trait not being a feature 2023-11-01 19:52:57 +00:00
Fabian Wolter
52aa56e265 [book] Remove non-existent anchor reference
There is no anchor named `timeout_at` in the example source file. By looking at the context, the reference doesn't look like it's supposed to be there at all.
2023-10-15 05:52:39 +00:00
Fabian Wolter
4fc6f4799e Fix typo 2023-10-15 05:51:38 +00:00
Henrik Tjäder
bedaae9395 Book: Restore missing newline 2023-10-04 18:17:15 +00:00
Nils Fitinghoff
8824202c5a rtic-monotonics: Fix stm32-metapac use
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-10-03 20:50:50 +00:00
dependabot[bot]
3143b7e0ca Update stm32-metapac requirement from 13.0.0 to 14.0.0
Updates the requirements on [stm32-metapac](https://github.com/embassy-rs/stm32-data) to permit the latest version.
- [Commits](https://github.com/embassy-rs/stm32-data/commits)

---
updated-dependencies:
- dependency-name: stm32-metapac
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 19:11:45 +00:00
onsdagens
b2b39ab6e6 remove nop from the empty idle loop
remove nop from the empty idle loop
2023-09-28 05:39:53 +00:00
onsdagens
852d63d9e4 export esp32c3 nop
export esp32c3 nop

export esp32c3 nop
2023-09-27 20:10:00 +00:00
onsdagens
2b2208e217 esp32c3 support 2023-09-27 19:50:13 +00:00
Emil Fresk
3b8d787a91 Release rtic-monotonics v1.2.0 2023-09-19 13:34:29 +00:00
Nils Fitinghoff
a2ec8f983c rtic-monotonics: Implement blocking DelayUs from embedded-hal 1 2023-09-19 13:31:09 +00:00
Andres Vahter
54aec9b398 add embedded-hal-async impl to stm32 2023-09-06 18:48:36 +00:00
Andres Vahter
7dcc59d4ed expose all stm32-metapac chips as features
add more supported timers
2023-09-06 18:48:36 +00:00
Andres Vahter
7d223ffe57 PoC Monotonic impl based on stm32-metapac 2023-09-06 18:48:36 +00:00
dependabot[bot]
0c46b7ea0e Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 20:11:02 +00:00
Nils Fitinghoff
1e20d28217 book: Fix rtic-sync references 2023-08-29 11:31:11 +00:00
Nils Fitinghoff
cc1e7154fc book: Update default priority to 0 2023-08-29 11:31:11 +00:00
Nils Fitinghoff
57be9b0dc9 book: Fix broken link 2023-08-29 11:31:11 +00:00
Emil Fresk
adfe33f597 Release rtic-monotonics 1.1.0, release rtic-sync 1.0.2 2023-08-29 07:17:31 +00:00
Nils Fitinghoff
4ea73021d6 rtic-monotonics: Add 64-bit SysTick monotonic
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-25 15:16:18 +00:00
Nils Fitinghoff
609f14b1e4 ritc-sync: Fix make_channel forcing dependency into user crate
Before, `make_channel` assumed that `critical_section` would be
available in the namespace of the code that invoked the macro. Access
`critical_section` through `rtic-sync` instead.
2023-08-25 05:07:13 +00:00
Xo Wang
bca8f0815b Fix graph in preface.md example
Match up the graph's name for the task whose priority is 4 to its name in the preceding paragraph
2023-08-25 05:03:37 +00:00
Emil Fresk
df66163ace Bump embedded-hal-async in rtic-monotonics 2023-08-20 11:03:35 +00:00
cz
2aa71ff6f5 Fix RTIC HackMD link
Fix RTIC HackMD link
2023-08-17 09:44:56 +00:00
Emil Fresk
5b2d722446 Support RP2040 PAC v0.5 in rtic-monotonics 2023-08-08 10:00:20 +00:00
Emil Fresk
0228350ef4 Fixed new TAIT requirement and release v2.0.1 of RTIC 2023-07-25 08:16:13 +00:00
Henrik Tjäder
1967058784 Examples: Update deps
Bumps proc-macro2 fixing https://github.com/rust-lang/rust/issues/113152
2023-07-01 04:00:30 +00:00
Henrik Tjäder
e8863a45e6 Changelog: Monotonics: Add date 2023-07-01 04:00:30 +00:00
Henrik Tjäder
716b1c7e75 Changelog: Common: Add date 2023-07-01 04:00:30 +00:00
Henrik Tjäder
e63adaeb50 Changelog: Time: Add date 2023-07-01 04:00:30 +00:00
Henrik Tjäder
fe1e633b11 Changelog: Sync: Add dates and yanked status 2023-07-01 04:00:30 +00:00