diff options
author | 2021-01-26 23:28:43 +0000 | |
---|---|---|
committer | 2021-01-26 23:28:43 +0000 | |
commit | 17fe7ecfe56c31d6fb4258431fe4c9c5aa2ce104 (patch) | |
tree | abeae4e2211b67d30d2db0c119ab5a093b929fcc /src/peripheral | |
parent | 2dae1e411c40c3f545806c77a7164a74a42727a1 (diff) | |
parent | 80ce8ce1dc34db8acb65248b11efe0414f545df1 (diff) | |
download | cortex-m-v0.6.x.tar.gz cortex-m-v0.6.x.tar.zst cortex-m-v0.6.x.zip |
322: Fix missing peripheral::itm export, prepare v0.6.7 r=jonas-schievink a=adamgreig
This fixes the issue where cortex-m 0.5.10 re-exports 0.6's peripheral::itm module; in principle it's possible other crates could have been using this module directly too (it is public) but in practice it doesn't contain anything useful (all the useful things are in the top-level itm module).
Should fix https://github.com/rust-embedded/discovery/issues/287.
Co-authored-by: Adam Greig <adam@adamgreig.com>
Diffstat (limited to 'src/peripheral')
-rw-r--r-- | src/peripheral/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs index 152eb49..297b32f 100644 --- a/src/peripheral/mod.rs +++ b/src/peripheral/mod.rs @@ -84,6 +84,9 @@ pub mod mpu; pub mod nvic; pub mod scb; +#[cfg(all(not(armv6m), not(armv8m_base)))] +pub use cortex_m_0_7::peripheral::itm; + pub use cortex_m_0_7::peripheral::{cpuid, dcb, dwt, syst}; #[cfg(not(armv6m))] pub use cortex_m_0_7::peripheral::{fpb, tpiu}; |