Skip to content
Snippets Groups Projects
Commit c94bd2d9 authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

add a Cargo feature, cm7-r0p1, to fix a Cortex-M7 BASEPRI erratum

parent 8a396c51
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ repository = "https://github.com/japaric/cortex-m-rtfm" ...@@ -13,7 +13,7 @@ repository = "https://github.com/japaric/cortex-m-rtfm"
version = "0.3.0" version = "0.3.0"
[dependencies] [dependencies]
cortex-m = { git = "https://github.com/japaric/cortex-m" } cortex-m = { git = "https://github.com/japaric/cortex-m", branch = "cm7-r0p1" }
untagged-option = "0.1.1" untagged-option = "0.1.1"
# rtfm-core = "0.2.0" # rtfm-core = "0.2.0"
rtfm-core = { git = "https://github.com/japaric/rtfm-core" } rtfm-core = { git = "https://github.com/japaric/rtfm-core" }
...@@ -32,5 +32,8 @@ features = ["rt"] ...@@ -32,5 +32,8 @@ features = ["rt"]
git = "https://github.com/japaric/stm32f103xx" git = "https://github.com/japaric/stm32f103xx"
# version = "0.8.0" # version = "0.8.0"
[features]
cm7-r0p1 = ["cortex-m/cm7-r0p1"]
[profile.release] [profile.release]
lto = true lto = true
...@@ -7,7 +7,14 @@ main() { ...@@ -7,7 +7,14 @@ main() {
return return
fi fi
xargo build --target $TARGET case $TARGET in
thumbv7em-none-eabi*)
xargo check --target $TARGET --features cm7-r0p1
xargo check --target $TARGET --features cm7-r0p1 --examples
;;
esac
xargo check --target $TARGET
xargo check --target $TARGET --examples xargo check --target $TARGET --examples
} }
......
...@@ -50,6 +50,11 @@ ...@@ -50,6 +50,11 @@
//! //!
//! [here]: https://docs.rs/cortex-m-rtfm-macros/0.2.0/cortex_m_rtfm_macros/fn.app.html //! [here]: https://docs.rs/cortex-m-rtfm-macros/0.2.0/cortex_m_rtfm_macros/fn.app.html
//! //!
//! # Important: Cortex-M7 devices
//!
//! If targeting a Cortex-M7 device with revision r0p1 then you MUST enable the `cm7-r0p1` Cargo
//! feature of this crate or the `Resource.claim` and `Resource.claim_mut` methods WILL misbehave.
//!
//! # Examples //! # Examples
//! //!
//! In increasing grade of complexity. See the [examples](./examples/index.html) //! In increasing grade of complexity. See the [examples](./examples/index.html)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment