Skip to content

Commit 602a5b4

Browse files
committed
Rename RTFM to RTIC
1 parent 4a0393f commit 602a5b4

File tree

129 files changed

+454
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+454
-454
lines changed

CHANGELOG.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3434
- [breaking-change][] [RFC 155] "explicit `Context` parameter" has been
3535
implemented.
3636

37-
[RFC 155]: https://github.com/rtfm-rs/cortex-m-rtfm/issues/155
37+
[RFC 155]: https://github.com/rtic-rs/cortex-m-rtic/issues/155
3838

3939
- [breaking-change][] [RFC 147] "all functions must be safe" has been
4040
implemented.
4141

42-
[RFC 147]: https://github.com/rtfm-rs/cortex-m-rtfm/issues/147
42+
[RFC 147]: https://github.com/rtic-rs/cortex-m-rtic/issues/147
4343

4444
- All the queues internally used by the framework now use `AtomicU8` indices
4545
instead of `AtomicUsize`; this reduces the static memory used by the
@@ -57,7 +57,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5757

5858
- [breaking-change][] when the `schedule` API is used the type of
5959
`init::Context.core` changes from `cortex_m::Peripherals` to
60-
`rtfm::Peripherals`. The fields of `rtfm::Peripherals` do not change when
60+
`rtic::Peripherals`. The fields of `rtic::Peripherals` do not change when
6161
Cargo features are enabled.
6262

6363
- [breaking-change][] the monotonic timer used to implement the `schedule` API
@@ -85,7 +85,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
8585
syntax. `init::LateResources` is the only method to initialize late resources.
8686
See [PR #140] for more details.
8787

88-
[PR #140]: https://github.com/rtfm-rs/cortex-m-rtfm/pull/140
88+
[PR #140]: https://github.com/rtic-rs/cortex-m-rtic/pull/140
8989

9090
## [v0.4.3] - 2019-04-21
9191

@@ -114,7 +114,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
114114
`binds` argument that lets you give the handler an arbitrary name. For
115115
example:
116116

117-
[RFC 128]: https://github.com/rtfm-rs/cortex-m-rtfm/issues/128
117+
[RFC 128]: https://github.com/rtic-rs/cortex-m-rtic/issues/128
118118

119119
``` rust
120120
// on v0.4.1 you had to write
@@ -146,8 +146,8 @@ fn on_new_frame() { .. }
146146

147147
### Added
148148

149-
- The RTFM book has been translated to Russian. You can find the translation
150-
online at https://japaric.github.io/cortex-m-rtfm/book/ru/
149+
- The RTIC book has been translated to Russian. You can find the translation
150+
online at https://japaric.github.io/cortex-m-rtic/book/ru/
151151

152152
- `Duration` now implements the `Default` trait.
153153

@@ -187,11 +187,11 @@ Yanked due to a soundness issue in `init`; the issue has been mostly fixed in v0
187187
`Resource.claim_mut` has been renamed to `Mutex.lock` and its signature has
188188
changed (no `Threshold` token is required).
189189

190-
- [breaking-change] The name of the library has changed to `rtfm`. The package
191-
name is still `cortex-m-rtfm`.
190+
- [breaking-change] The name of the library has changed to `rtic`. The package
191+
name is still `cortex-m-rtic`.
192192

193-
- [breaking-change] `cortex_m_rtfm::set_pending` has been renamed to
194-
`rtfm::pend`.
193+
- [breaking-change] `cortex_m_rtic::set_pending` has been renamed to
194+
`rtic::pend`.
195195

196196
### Added
197197

@@ -210,7 +210,7 @@ Yanked due to a soundness issue in `init`; the issue has been mostly fixed in v0
210210

211211
- [breaking-change] The `bkpt` and `wfi` re-exports have been removed.
212212

213-
- [breaking-change] `rtfm::atomic` has been removed.
213+
- [breaking-change] `rtic::atomic` has been removed.
214214

215215
## [v0.3.4] - 2018-08-27
216216

@@ -313,20 +313,20 @@ Yanked due to a soundness issue in `init`; the issue has been mostly fixed in v0
313313

314314
- Initial release
315315

316-
[Unreleased]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.5.2...HEAD
317-
[v0.5.2]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.5.1...v0.5.2
318-
[v0.5.1]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.5.0...v0.5.1
319-
[v0.5.0]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.4.3...v0.5.0
320-
[v0.4.3]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.4.2...v0.4.3
321-
[v0.4.2]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.4.1...v0.4.2
322-
[v0.4.1]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.4.0...v0.4.1
323-
[v0.4.0]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.3.4...v0.4.0
324-
[v0.3.4]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.3.3...v0.3.4
325-
[v0.3.3]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.3.2...v0.3.3
326-
[v0.3.2]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.3.1...v0.3.2
327-
[v0.3.1]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.3.0...v0.3.1
328-
[v0.3.0]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.2.2...v0.3.0
329-
[v0.2.2]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.2.1...v0.2.2
330-
[v0.2.1]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.2.0...v0.2.1
331-
[v0.2.0]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.1.1...v0.2.0
332-
[v0.1.1]: https://github.com/rtfm-rs/cortex-m-rtfm/compare/v0.1.0...v0.1.1
316+
[Unreleased]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.5.2...HEAD
317+
[v0.5.2]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.5.1...v0.5.2
318+
[v0.5.1]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.5.0...v0.5.1
319+
[v0.5.0]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.4.3...v0.5.0
320+
[v0.4.3]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.4.2...v0.4.3
321+
[v0.4.2]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.4.1...v0.4.2
322+
[v0.4.1]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.4.0...v0.4.1
323+
[v0.4.0]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.3.4...v0.4.0
324+
[v0.3.4]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.3.3...v0.3.4
325+
[v0.3.3]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.3.2...v0.3.3
326+
[v0.3.2]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.3.1...v0.3.2
327+
[v0.3.1]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.3.0...v0.3.1
328+
[v0.3.0]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.2.2...v0.3.0
329+
[v0.2.2]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.2.1...v0.2.2
330+
[v0.2.1]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.2.0...v0.2.1
331+
[v0.2.0]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.1.1...v0.2.0
332+
[v0.1.1]: https://github.com/rtic-rs/cortex-m-rtic/compare/v0.1.0...v0.1.1

CNAME

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rtfm.rs
1+
rtic.rs

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## New features
33
New features should go through the [RFC process][rfcs] before a Pull Request is made to this repository.
44

5-
[rfcs](https://github.com/rtfm-rs/rfcs)
5+
[rfcs](https://github.com/rtic-rs/rfcs)
66

77
## Bugs
88
Report bugs by creating an issue in this repository.

Cargo.toml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[package]
22
authors = [
3-
"The Real Time For the Masses developers",
3+
"The Real-Time Interrupt-driven Concurrency developers",
44
"Jorge Aparicio <[email protected]>",
55
"Per Lindgren <[email protected]>",
66
]
77
categories = ["concurrency", "embedded", "no-std"]
8-
description = "Real Time For the Masses (RTFM): a concurrency framework for building real time systems"
9-
documentation = "https://rtfm.rs/"
8+
description = "Real-Time Interrupt-driven Concurrency (RTIC): a concurrency framework for building real time systems"
9+
documentation = "https://rtic.rs/"
1010
edition = "2018"
1111
keywords = ["arm", "cortex-m"]
1212
license = "MIT OR Apache-2.0"
13-
name = "cortex-m-rtfm"
13+
name = "cortex-m-rtic"
1414
readme = "README.md"
15-
repository = "https://github.com/rtfm-rs/cortex-m-rtfm"
15+
repository = "https://github.com/rtic-rs/cortex-m-rtic"
1616
version = "0.5.2"
1717

1818
[lib]
19-
name = "rtfm"
19+
name = "rtic"
2020

2121
[[example]]
2222
name = "baseline"
@@ -52,8 +52,8 @@ required-features = ["__v7"]
5252

5353
[dependencies]
5454
cortex-m = "0.6.2"
55-
cortex-m-rtfm-macros = { path = "macros", version = "0.5.0" }
56-
rtfm-core = "0.3.0"
55+
cortex-m-rtic-macros = { path = "macros", version = "0.5.0" }
56+
rtic-core = "0.3.0"
5757
cortex-m-rt = "0.6.9"
5858
heapless = "0.5.0"
5959

@@ -77,8 +77,8 @@ version = "0.5.2"
7777
trybuild = "1"
7878

7979
[features]
80-
heterogeneous = ["cortex-m-rtfm-macros/heterogeneous", "microamp"]
81-
homogeneous = ["cortex-m-rtfm-macros/homogeneous"]
80+
heterogeneous = ["cortex-m-rtic-macros/heterogeneous", "microamp"]
81+
homogeneous = ["cortex-m-rtic-macros/homogeneous"]
8282
# used for testing this crate; do not use in applications
8383
__v7 =[]
8484
__min_r1_43 =[]

LICENSE-MIT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017-2019 The Real Time For the Masses developers
1+
Copyright (c) 2017-2019 The Real-Time Interrupt-driven Concurrency developers
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Real Time For the Masses
1+
# Real-Time Interrupt-driven Concurrency
22

33
A concurrency framework for building real time systems.
44

@@ -43,27 +43,27 @@ A concurrency framework for building real time systems.
4343

4444
- Applications must be written using the 2018 edition.
4545

46-
## [User documentation](https://rtfm.rs)
46+
## [User documentation](https://rtic.rs)
4747

48-
## [API reference](https://rtfm.rs/0.5/api)
48+
## [API reference](https://rtic.rs/0.5/api)
4949

5050
## Chat
51-
Join us and talk about RTFM in the [Matrix room][matrix-room].
51+
Join us and talk about RTIC in the [Matrix room][matrix-room].
5252

53-
[matrix-room]: https://matrix.to/#/#rtfm-rs:matrix.org
53+
[matrix-room]: https://matrix.to/#/#rtic-rs:matrix.org
5454

5555
## Contributing
5656
New features and big changes should go through the RFC process in the [dedicated RFC repository][rfcs].
5757

58-
[rfcs]: https://github.com/rtfm-rs/rfcs
58+
[rfcs]: https://github.com/rtic-rs/rfcs
5959

6060
## Acknowledgments
6161

62-
This crate is based on [the RTFM language][rtfm-lang] created by the Embedded
62+
This crate is based on [the RTIC language][rtic-lang] created by the Embedded
6363
Systems group at [Luleå University of Technology][ltu], led by [Prof. Per
6464
Lindgren][per].
6565

66-
[rtfm-lang]: http://www.rtfm-lang.org/
66+
[rtic-lang]: http://www.rtic-lang.org/
6767
[ltu]: https://www.ltu.se/?l=en
6868
[per]: https://www.ltu.se/staff/p/pln-1.11258?l=en
6969

book/en/book.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
authors = ["Jorge Aparicio"]
33
multilingual = false
44
src = "src"
5-
title = "Real Time For the Masses"
5+
title = "Real-Time Interrupt-driven Concurrency"

book/en/src/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Summary
22

33
[Preface](./preface.md)
4-
- [RTFM by example](./by-example.md)
4+
- [RTIC by example](./by-example.md)
55
- [The `app` attribute](./by-example/app.md)
66
- [Resources](./by-example/resources.md)
77
- [Software tasks](./by-example/tasks.md)

book/en/src/by-example.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# RTFM by example
1+
# RTIC by example
22

3-
This part of the book introduces the Real Time For the Masses (RTFM) framework
3+
This part of the book introduces the Real-Time Interrupt-driven Concurrency (RTIC) framework
44
to new users by walking them through examples of increasing complexity.
55

66
All examples in this part of the book can be found in the GitHub [repository] of
77
the project, and most of the examples can be run on QEMU so no special hardware
88
is required to follow along.
99

10-
[repository]: https://github.com/rtfm-rs/cortex-m-rtfm
10+
[repository]: https://github.com/rtic-rs/cortex-m-rtic
1111

1212
To run the examples on your laptop / PC you'll need the `qemu-system-arm`
1313
program. Check [the embedded Rust book] for instructions on how to set up an

book/en/src/by-example/app.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# The `app` attribute
22

3-
This is the smallest possible RTFM application:
3+
This is the smallest possible RTIC application:
44

55
``` rust
66
{{#include ../../../../examples/smallest.rs}}
77
```
88

9-
All RTFM applications use the [`app`] attribute (`#[app(..)]`). This attribute
9+
All RTIC applications use the [`app`] attribute (`#[app(..)]`). This attribute
1010
must be applied to a `const` item that contains items. The `app` attribute has
1111
a mandatory `device` argument that takes a *path* as a value. This path must
1212
point to a *peripheral access crate* (PAC) generated using [`svd2rust`]
1313
**v0.14.x** or newer. The `app` attribute will expand into a suitable entry
1414
point so it's not required to use the [`cortex_m_rt::entry`] attribute.
1515

16-
[`app`]: ../../../api/cortex_m_rtfm_macros/attr.app.html
16+
[`app`]: ../../../api/cortex_m_rtic_macros/attr.app.html
1717
[`svd2rust`]: https://crates.io/crates/svd2rust
1818
[`cortex_m_rt::entry`]: ../../../api/cortex_m_rt_macros/attr.entry.html
1919

2020
> **ASIDE**: Some of you may be wondering why we are using a `const` item as a
2121
> module and not a proper `mod` item. The reason is that using attributes on
2222
> modules requires a feature gate, which requires a nightly toolchain. To make
23-
> RTFM work on stable we use the `const` item instead. When more parts of macros
23+
> RTIC work on stable we use the `const` item instead. When more parts of macros
2424
> 1.2 are stabilized we'll move from a `const` item to a `mod` item and
2525
> eventually to a crate level attribute (`#![app]`).
2626
@@ -39,7 +39,7 @@ to Cortex-M and, optionally, device specific peripherals through the `core` and
3939
`static mut` variables declared at the beginning of `init` will be transformed
4040
into `&'static mut` references that are safe to access.
4141

42-
[`rtfm::Peripherals`]: ../../api/rtfm/struct.Peripherals.html
42+
[`rtic::Peripherals`]: ../../api/rtic/struct.Peripherals.html
4343

4444
The example below shows the types of the `core` and `device` fields and
4545
showcases safe access to a `static mut` variable. The `device` field is only
@@ -106,9 +106,9 @@ mut` variables are safe to use within a hardware task.
106106
$ cargo run --example hardware
107107
{{#include ../../../../ci/expected/hardware.run}}```
108108

109-
So far all the RTFM applications we have seen look no different than the
109+
So far all the RTIC applications we have seen look no different than the
110110
applications one can write using only the `cortex-m-rt` crate. From this point
111-
we start introducing features unique to RTFM.
111+
we start introducing features unique to RTIC.
112112

113113
## Priorities
114114

book/en/src/by-example/new.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Starting a new project
22

3-
Now that you have learned about the main features of the RTFM framework you can
3+
Now that you have learned about the main features of the RTIC framework you can
44
try it out on your hardware by following these instructions.
55

66
1. Instantiate the [`cortex-m-quickstart`] template.
@@ -36,19 +36,19 @@ $ cargo add lm3s6965 --vers 0.1.3
3636
$ rm memory.x build.rs
3737
```
3838

39-
3. Add the `cortex-m-rtfm` crate as a dependency.
39+
3. Add the `cortex-m-rtic` crate as a dependency.
4040

4141
``` console
42-
$ cargo add cortex-m-rtfm --allow-prerelease
42+
$ cargo add cortex-m-rtic --allow-prerelease
4343
```
4444

45-
4. Write your RTFM application.
45+
4. Write your RTIC application.
4646

47-
Here I'll use the `init` example from the `cortex-m-rtfm` crate.
47+
Here I'll use the `init` example from the `cortex-m-rtic` crate.
4848

4949
``` console
5050
$ curl \
51-
-L https://github.com/rtfm-rs/cortex-m-rtfm/raw/v0.5.0/examples/init.rs \
51+
-L https://github.com/rtic-rs/cortex-m-rtic/raw/v0.5.0/examples/init.rs \
5252
> src/main.rs
5353
```
5454

book/en/src/by-example/resources.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ instead of a reference. This resource proxy is a structure that implements the
4646
[`Mutex`] trait. The only method on this trait, [`lock`], runs its closure
4747
argument in a critical section.
4848

49-
[`Mutex`]: ../../../api/rtfm/trait.Mutex.html
50-
[`lock`]: ../../../api/rtfm/trait.Mutex.html#method.lock
49+
[`Mutex`]: ../../../api/rtic/trait.Mutex.html
50+
[`lock`]: ../../../api/rtic/trait.Mutex.html#method.lock
5151

5252
The critical section created by the `lock` API is based on dynamic priorities:
5353
it temporarily raises the dynamic priority of the context to a *ceiling*
@@ -113,7 +113,7 @@ shared reference (`&-`) to the resource, limiting the operations it can perform
113113
on it, but where a shared reference is enough this approach reduces the number
114114
of required locks.
115115

116-
Note that in this release of RTFM it is not possible to request both exclusive
116+
Note that in this release of RTIC it is not possible to request both exclusive
117117
access (`&mut-`) and shared access (`&-`) to the *same* resource from different
118118
tasks. Attempting to do so will result in a compile error.
119119

book/en/src/by-example/tasks.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Software tasks
22

33
In addition to hardware tasks, which are invoked by the hardware in response to
4-
hardware events, RTFM also supports *software* tasks which can be spawned by the
4+
hardware events, RTIC also supports *software* tasks which can be spawned by the
55
application from any execution context.
66

77
Software tasks can also be assigned priorities and, under the hood, are
8-
dispatched from interrupt handlers. RTFM requires that free interrupts are
8+
dispatched from interrupt handlers. RTIC requires that free interrupts are
99
declared in an `extern` block when using software tasks; some of these free
1010
interrupts will be used to dispatch the software tasks. An advantage of software
1111
tasks over hardware tasks is that many tasks can be mapped to a single interrupt
@@ -45,7 +45,7 @@ $ cargo run --example message
4545

4646
## Capacity
4747

48-
RTFM does *not* perform any form of heap-based memory allocation. The memory
48+
RTIC does *not* perform any form of heap-based memory allocation. The memory
4949
required to store messages is statically reserved. By default the framework
5050
minimizes the memory footprint of the application so each task has a message
5151
"capacity" of 1: meaning that at most one message can be posted to the task
@@ -91,7 +91,7 @@ its message buffer will never be emptied. This situation is depicted in the
9191
following snippet:
9292

9393
``` rust
94-
#[rtfm::app(..)]
94+
#[rtic::app(..)]
9595
const APP: () = {
9696
#[init(spawn = [foo, bar])]
9797
fn init(cx: init::Context) {

0 commit comments

Comments
 (0)