aboutsummaryrefslogtreecommitdiff
path: root/book/en/src
diff options
context:
space:
mode:
Diffstat (limited to 'book/en/src')
-rw-r--r--book/en/src/by-example/new.md2
-rw-r--r--book/en/src/migration.md12
-rw-r--r--book/en/src/preface.md3
3 files changed, 11 insertions, 6 deletions
diff --git a/book/en/src/by-example/new.md b/book/en/src/by-example/new.md
index 4f132e7..e4f7fd9 100644
--- a/book/en/src/by-example/new.md
+++ b/book/en/src/by-example/new.md
@@ -48,7 +48,7 @@ Here I'll use the `init` example from the `cortex-m-rtfm` crate.
``` console
$ curl \
- -L https://github.com/rtfm-rs/cortex-m-rtfm/raw/v0.5.0-beta.1/examples/init.rs \
+ -L https://github.com/rtfm-rs/cortex-m-rtfm/raw/v0.5.0/examples/init.rs \
> src/main.rs
```
diff --git a/book/en/src/migration.md b/book/en/src/migration.md
index a71773e..b1e8aef 100644
--- a/book/en/src/migration.md
+++ b/book/en/src/migration.md
@@ -15,7 +15,7 @@ First, the version of the `cortex-m-rtfm` dependency needs to be updated to
version = "0.4.3"
# into this
-version = "0.5.0-beta.1"
+version = "0.5.0"
# and remove this Cargo feature
features = ["timer-queue"]
@@ -192,7 +192,9 @@ the `monotonic = rtfm::cyccnt::CYCCNT` argument to the `#[rtfm::app]` attribute.
Also, the `Duration` and `Instant` types and the `U32Ext` trait have been moved
into the `rtfm::cyccnt` module. This module is only available on ARMv7-M+
-devices.
+devices. The removal of the `timer-queue` also brings back the `DWT` peripheral
+inside the core peripherals struct, this will need to be enabled by the application
+inside `init`.
Change this:
@@ -217,6 +219,12 @@ use rtfm::cyccnt::{Duration, Instant, U32Ext};
#[rtfm::app(/* .. */, monotonic = rtfm::cyccnt::CYCCNT)]
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
const APP: () = {
+ #[init]
+ fn init(cx: init::Context) {
+ cx.core.DWT.enable_cycle_counter();
+ // optional, configure the DWT run without a debugger connected
+ cx.core.DCB.enable_trace();
+ }
#[task(schedule = [b])]
fn a(cx: a::Context) {
// ..
diff --git a/book/en/src/preface.md b/book/en/src/preface.md
index b2f4980..e6e7e1d 100644
--- a/book/en/src/preface.md
+++ b/book/en/src/preface.md
@@ -14,9 +14,6 @@ There is a translation of this book in [Russian].
This is the documentation of v0.5.x of RTFM; for the documentation of version
v0.4.x go [here](/0.4).
-**HEADS UP** This is a **beta** pre-release; there may be breaking changes in
-the API and semantics before a proper release is made.
-
{{#include ../../../README.md:5:44}}
{{#include ../../../README.md:50:}}