Commit graph

1147 commits

Author SHA1 Message Date
Henrik Tjäder
833e22da51 Docs: By-example Monotonics 2021-12-19 01:33:15 +01:00
Henrik Tjäder
c55016f4b2 Docs: By-example App priorities and message passing 2021-12-19 01:33:15 +01:00
Henrik Tjäder
2ac0e1b29d Docs: By-example Software tasks 2021-12-19 01:33:14 +01:00
Henrik Tjäder
4357d8be15 Docs: By-example 2021-12-19 01:33:14 +01:00
bors[bot]
37facfb5bf
Merge #562
562: Replace default WFI with simpler NOP r=korken89 a=AfoHT

As noted by #561 there are multiple issues with various hardware implementations and debugging together with sleep modes.

As RTIC strives to be a generic framework (even though this is an implementation targeting cortex-m) the decision having `WFI` as the default `idle` task causes issues in some hardware, raising the barrier to entry.

This changes the default behaviour to do a simple `NOP` instead, adding documentation how to provide a custom `idle` task achieving the old default behaviour. Also removes the automatic setting of SLEEPONEXIT bit when no `idle` was provided, delegating this to the user.

This was discussed on the weekly meeting 2021-12-14 and this was the favoured solution.

Fixes #561 

Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-12-15 05:46:18 +00:00
Henrik Tjäder
d81a4da6fb Update changelog 2021-12-14 22:26:16 +01:00
Henrik Tjäder
628c668988 Remove note about SLEEPONEXIT in Russian book 2021-12-14 22:19:16 +01:00
Henrik Tjäder
8c8f7f12c3 Idle: Switch to NOP instead of WFI
Add example how to get old WFI behaviour
2021-12-14 22:18:17 +01:00
bors[bot]
235484565d
Merge #558
558: Remove #[deny(warnings)], but deny warnings for CI r=korken89 a=AfoHT



Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-11-25 09:48:39 +00:00
Henrik Tjäder
3741d431be Remove #[deny(warnings)], but deny warnings for CI 2021-11-25 10:46:29 +01:00
bors[bot]
4de9eb673a
Merge #557
557: Docs: add RTIC logo r=korken89 a=AfoHT



Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-11-25 09:14:28 +00:00
Henrik Tjäder
2e5c6f8e36 Docs: add RTIC logo 2021-11-25 10:06:58 +01:00
bors[bot]
4f2dd875ff
Merge #554
554: Better errors on when missing to lock shared resources r=perlindgren a=korken89

Old error:

```
error[E0614]: type `value<'_>` cannot be dereferenced
  --> examples/lock_minimal.rs:33:9
   |
33 |         *c.shared.value += 1;
   |         ^^^^^^^^^^^^^^^

```

New error:

```
error[E0614]: type `value_that_needs_to_be_locked<'_>` cannot be dereferenced
  --> examples/lock_minimal.rs:33:9
   |
33 |         *c.shared.value += 1;
   |         ^^^^^^^^^^^^^^^

```

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-11-11 13:32:35 +00:00
Emil Fresk
6f2aa08910 Better errors on when missing to lock shared resources 2021-11-11 14:22:47 +01:00
bors[bot]
6466aec406
Merge #553
553: Example monotonic for nRF52 r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-11-10 12:53:49 +00:00
Emil Fresk
c060b5a15c Example monotonic for nRF52 2021-11-10 13:46:34 +01:00
bors[bot]
dc7b6146c3
Merge #552
552: Remove example impl and have a list of example impls instead r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-11-10 09:35:29 +00:00
Emil Fresk
1a949b5fd4 Remove example impl and have a list of example impls instead 2021-11-10 10:25:09 +01:00
bors[bot]
1859f44482
Merge #551
551: Updated the monotonic impl chapter r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-11-10 08:53:07 +00:00
Emil Fresk
3b00a2bdb8 Updated the monotonic impl chapter 2021-11-10 09:51:45 +01:00
bors[bot]
b4929032d5
Merge #547
547: New monotonic trait r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-11-09 10:15:11 +00:00
Emil Fresk
5ab5112271 Update versions and changelog 2021-11-09 11:12:04 +01:00
bors[bot]
4f3c5baf49
Merge #549
549: fix #543 r=korken89 a=andrewgazelka

The remaining PR to fix #543 alongside https://github.com/rtic-rs/rtic-syntax/pull/58

Co-authored-by: Andrew Gazelka <andrew.gazelka@gmail.com>
2021-11-09 09:52:28 +00:00
Emil Fresk
0dcb0c4e49 New monotonic trait working 2021-11-09 10:20:43 +01:00
bors[bot]
ae034aec14
Merge #550
550: Release 0.6.0-rc.3 due to breaking change in rtic-syntax naming of shared and local r=korken89 a=AfoHT

`rtic-syntax` got the old multicore concept of `Locations` removed, see https://github.com/rtic-rs/rtic-syntax/pull/61

This updates `cortex-m-rtic` to match this

Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2021-11-09 08:59:36 +00:00
Henrik Tjäder
0492d98916 Bump version to 0.6.0-rc.3 2021-11-08 20:42:04 +01:00
Henrik Tjäder
f7d4b5dc70 CHANGELOG: Add links to v0.6.x 2021-11-08 20:40:59 +01:00
Henrik Tjäder
1438a5b0ea Update changelog from v0.5.x branch 2021-11-08 20:28:57 +01:00
Henrik Tjäder
eb345b7dbb Update CHANGELOG 2021-11-08 18:39:09 +01:00
Henrik Tjäder
03af9b1994 Match new rtic-syntax naming of shared and local 2021-11-07 00:42:57 +01:00
Andrew Gazelka
fb092aa65a
fix #543 2021-11-03 13:01:53 -07:00
bors[bot]
7155b55ac8
Merge #548
548: Fixed aliasing issue due to RacyCell implementation r=perlindgren a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
2021-11-03 08:45:53 +00:00
Emil Fresk
9e24fcbbd9 Fix CI 2021-11-03 08:54:18 +01:00
Emil Fresk
50017b96f0 Fixed aliasing in lock impl 2021-11-03 08:27:05 +01:00
Emil Fresk
d3d66c97ae Cleanup of resource initialization, no need to dereference 2021-11-03 08:26:45 +01:00
Per Lindgren
1e2ab78a3f added doc for RacyCell 2021-11-02 19:47:14 +01:00
Emil Fresk
8065d741ac Fixed aliasing issue due to RacyCell implementation 2021-11-02 13:41:12 +01:00
bors[bot]
b25d775771
Merge #544
544: remove outdated comment r=AfoHT a=perlindgren



Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
2021-10-13 08:41:52 +00:00
Per Lindgren
56a423cdbe remove outdated comment 2021-10-13 10:37:52 +02:00
bors[bot]
ca9088a78b
Merge #539
539: Prepare rc.2 release r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-09-28 09:20:00 +00:00
Emil Fresk
552be420cb Prepare rc.2 release 2021-09-28 10:56:36 +02:00
bors[bot]
0dd97d722e
Merge #538
538: Fix export of SYST r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-09-28 08:40:21 +00:00
Emil Fresk
7c6588e6bd Fix export of SYST 2021-09-28 10:38:22 +02:00
bors[bot]
5e5a4c117c
Merge #535
535: Preparing 0.6.0-rc.1 r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-09-27 13:57:53 +00:00
bors[bot]
e6c5244e7e
Merge #536
536: Fix a bug in the timer queue due to comparison bug in embedded-time r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-09-27 13:43:32 +00:00
Emil Fresk
ea8efa4831 Preparing 0.6.0-rc.1 2021-09-27 15:40:21 +02:00
Emil Fresk
cdab00a0c6 Fix a bug in the timer queue due to comparison bug in embedded-time 2021-09-27 15:39:05 +02:00
bors[bot]
8940c50fa7
Merge #529
529: Updated codegen for the updated syntax (default monotonic priority) r=AfoHT a=korken89

Needs new syntax release before merge.

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-09-27 13:31:19 +00:00
bors[bot]
58a4920576
Merge #534
534: Fixing bad english r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2021-09-27 11:43:24 +00:00
Emil Fresk
f37a928c36 Fixing bad english 2021-09-27 13:42:44 +02:00