Skip to content

Commit c631049

Browse files
committed
v0.4.0
closes #32 closes #33
1 parent 653338e commit c631049

File tree

154 files changed

+7529
-3267
lines changed

Some content is hidden

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

154 files changed

+7529
-3267
lines changed

.cargo/config

+5-23
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,13 @@
11
[target.thumbv6m-none-eabi]
2-
runner = 'arm-none-eabi-gdb'
3-
rustflags = [
4-
"-C", "link-arg=-Tlink.x",
5-
"-C", "linker=true",
6-
"-Z", "linker-flavor=ld",
7-
]
2+
runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel"
83

94
[target.thumbv7m-none-eabi]
10-
runner = 'arm-none-eabi-gdb'
11-
rustflags = [
12-
"-C", "link-arg=-Tlink.x",
13-
"-C", "linker=arm-none-eabi-ld",
14-
"-Z", "linker-flavor=ld",
15-
]
5+
runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel"
166

17-
[target.thumbv7em-none-eabi]
18-
runner = 'arm-none-eabi-gdb'
7+
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
198
rustflags = [
209
"-C", "link-arg=-Tlink.x",
21-
"-C", "linker=arm-none-eabi-ld",
22-
"-Z", "linker-flavor=ld",
2310
]
2411

25-
[target.thumbv7em-none-eabihf]
26-
runner = 'arm-none-eabi-gdb'
27-
rustflags = [
28-
"-C", "link-arg=-Tlink.x",
29-
"-C", "linker=arm-none-eabi-ld",
30-
"-Z", "linker-flavor=ld",
31-
]
12+
[build]
13+
target = "thumbv7m-none-eabi"

.gdbinit

-6
This file was deleted.

.github/bors.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
delete_merged_branches = true
12
status = [
23
"continuous-integration/travis-ci/push",
34
]

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**/*.rs.bk
2-
*.org
32
.#*
43
.gdb_history
4+
/book/book
5+
/target
56
Cargo.lock
6-
target/

.travis.yml

+20-10
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,48 @@ language: rust
22

33
matrix:
44
include:
5+
# NOTE used to build docs on successful merges to master
56
- env: TARGET=x86_64-unknown-linux-gnu
6-
rust: nightly
7+
rust: beta
78

89
- env: TARGET=thumbv6m-none-eabi
9-
rust: nightly
10-
if: branch != master
10+
rust: beta
11+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
1112

1213
- env: TARGET=thumbv7m-none-eabi
14+
rust: beta
15+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
16+
17+
- env: TARGET=x86_64-unknown-linux-gnu
1318
rust: nightly
14-
if: branch != master
19+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
1520

16-
- env: TARGET=thumbv7em-none-eabi
21+
- env: TARGET=thumbv6m-none-eabi
1722
rust: nightly
18-
if: branch != master
23+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
1924

20-
- env: TARGET=thumbv7em-none-eabihf
25+
- env: TARGET=thumbv7m-none-eabi
2126
rust: nightly
22-
if: branch != master
27+
if: (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
2328

2429
before_install: set -e
2530

2631
install:
2732
- bash ci/install.sh
28-
- export PATH="$PATH:$PWD/gcc/bin"
33+
- export PATH="$PATH:$PWD/qemu"
2934

3035
script:
3136
- bash ci/script.sh
3237

38+
after_script: set +e
39+
3340
after_success:
3441
- bash ci/after-success.sh
3542

36-
after_script: set +e
43+
cache: cache
44+
45+
before_cache:
46+
- chmod -R a+r $HOME/.cargo;
3747

3848
branches:
3949
only:

Cargo.toml

+46-17
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,62 @@ authors = [
44
"Per Lindgren <[email protected]>",
55
]
66
categories = ["concurrency", "embedded", "no-std"]
7-
description = "Real Time For the Masses (RTFM) framework for ARM Cortex-M microcontrollers"
8-
documentation = "https://japaric.github.io/cortex-m-rtfm/cortex_m_rtfm/"
7+
description = "Real Time For the Masses (RTFM): a concurrency framework for building real time systems"
8+
documentation = "https://japaric.github.io/cortex-m-rtfm/book/"
9+
edition = "2018"
910
keywords = ["arm", "cortex-m"]
1011
license = "MIT OR Apache-2.0"
1112
name = "cortex-m-rtfm"
13+
readme = "README.md"
1214
repository = "https://github.com/japaric/cortex-m-rtfm"
13-
version = "0.3.4"
15+
version = "0.4.0-beta.1"
1416

15-
[dependencies]
16-
cortex-m = "0.4.0"
17-
cortex-m-rtfm-macros = { path = "macros", version = "0.3.2" }
18-
rtfm-core = "0.2.0"
19-
untagged-option = "0.1.1"
17+
[lib]
18+
name = "rtfm"
19+
20+
[[example]]
21+
name = "baseline"
22+
required-features = ["timer-queue"]
23+
24+
[[example]]
25+
name = "periodic"
26+
required-features = ["timer-queue"]
27+
28+
[[example]]
29+
name = "schedule"
30+
required-features = ["timer-queue"]
2031

21-
[target.'cfg(target_arch = "x86_64")'.dev-dependencies]
22-
compiletest_rs = "0.3.5"
32+
[[example]]
33+
name = "types"
34+
required-features = ["timer-queue"]
2335

24-
[dev-dependencies.cortex-m-rt]
25-
features = ["abort-on-panic"]
26-
version = "0.3.9"
36+
[dependencies]
37+
cortex-m = "0.5.8"
38+
cortex-m-rt = "0.6.5"
39+
cortex-m-rtfm-macros = { path = "macros", version = "0.4.0-beta.1" }
40+
heapless = "0.4.0"
41+
owned-singleton = "0.1.0"
42+
43+
[dev-dependencies]
44+
alloc-singleton = "0.1.0"
45+
cortex-m-semihosting = "0.3.1"
46+
lm3s6965 = "0.1.3"
47+
panic-halt = "0.2.0"
2748

28-
[dev-dependencies.stm32f103xx]
29-
features = ["rt"]
30-
version = "0.8.0"
49+
[dev-dependencies.panic-semihosting]
50+
features = ["exit"]
51+
version = "0.5.1"
3152

3253
[features]
33-
cm7-r0p1 = ["cortex-m/cm7-r0p1"]
54+
timer-queue = ["cortex-m-rtfm-macros/timer-queue"]
55+
56+
[target.x86_64-unknown-linux-gnu.dev-dependencies]
57+
compiletest_rs = "0.3.16"
58+
tempdir = "0.3.7"
3459

3560
[profile.release]
61+
codegen-units = 1
3662
lto = true
63+
64+
[workspace]
65+
members = ["macros"]

0 commit comments

Comments
 (0)