File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ rtfm-core = { git = "https://github.com/japaric/rtfm-core" }
20
20
cortex-m-rtfm-macros = { path = " macros" }
21
21
22
22
[target .'cfg(target_arch = "x86_64")' .dev-dependencies ]
23
- # compiletest_rs = "0.3.4"
24
- compiletest_rs = { git = " https://github.com/dwrensha/compiletest-rs" , branch = " rustup" }
23
+ compiletest_rs = " 0.3.5"
25
24
26
25
[dev-dependencies .cortex-m-rt ]
27
26
features = [" abort-on-panic" ]
@@ -32,5 +31,8 @@ features = ["rt"]
32
31
git = " https://github.com/japaric/stm32f103xx"
33
32
# version = "0.8.0"
34
33
34
+ [features ]
35
+ cm7-r0p1 = [" cortex-m/cm7-r0p1" ]
36
+
35
37
[profile .release ]
36
38
lto = true
Original file line number Diff line number Diff line change @@ -7,7 +7,14 @@ main() {
7
7
return
8
8
fi
9
9
10
- xargo build --target $TARGET
10
+ case $TARGET in
11
+ thumbv7em-none-eabi* )
12
+ xargo check --target $TARGET --features cm7-r0p1
13
+ xargo check --target $TARGET --features cm7-r0p1 --examples
14
+ ;;
15
+ esac
16
+
17
+ xargo check --target $TARGET
11
18
xargo check --target $TARGET --examples
12
19
}
13
20
Original file line number Diff line number Diff line change 50
50
//!
51
51
//! [here]: https://docs.rs/cortex-m-rtfm-macros/0.2.0/cortex_m_rtfm_macros/fn.app.html
52
52
//!
53
+ //! # Important: Cortex-M7 devices
54
+ //!
55
+ //! If targeting a Cortex-M7 device with revision r0p1 then you MUST enable the `cm7-r0p1` Cargo
56
+ //! feature of this crate or the `Resource.claim` and `Resource.claim_mut` methods WILL misbehave.
57
+ //!
53
58
//! # Examples
54
59
//!
55
60
//! In increasing grade of complexity. See the [examples](./examples/index.html)
You can’t perform that action at this time.
0 commit comments