Skip to content

Commit 17fe7ec

Browse files
bors[bot]adamgreig
andauthored
Merge #322
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 rust-embedded/discovery#287. Co-authored-by: Adam Greig <[email protected]>
2 parents 2dae1e4 + 80ce8ce commit 17fe7ec

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.6.7] - 2021-01-26
11+
12+
### Fixed
13+
14+
- Fixed missing `peripheral::itm` reexport.
15+
1016
## [v0.6.6] - 2021-01-26
1117

1218
### Fixed
@@ -613,7 +619,8 @@ fn main() {
613619
- Functions to get the vector table
614620
- Wrappers over miscellaneous instructions like `bkpt`
615621

616-
[Unreleased]: https://github.com/rust-embedded/cortex-m/compare/v0.6.6...HEAD
622+
[Unreleased]: https://github.com/rust-embedded/cortex-m/compare/v0.6.7...HEAD
623+
[v0.6.6]: https://github.com/rust-embedded/cortex-m/compare/v0.6.6...v0.6.7
617624
[v0.6.6]: https://github.com/rust-embedded/cortex-m/compare/v0.6.5...v0.6.6
618625
[v0.6.5]: https://github.com/rust-embedded/cortex-m/compare/v0.6.4...v0.6.5
619626
[v0.6.4]: https://github.com/rust-embedded/cortex-m/compare/v0.6.3...v0.6.4

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
1111
name = "cortex-m"
1212
readme = "README.md"
1313
repository = "https://github.com/rust-embedded/cortex-m"
14-
version = "0.6.6"
14+
version = "0.6.7"
1515
edition = "2018"
1616

1717
[dependencies]

src/peripheral/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ pub mod mpu;
8484
pub mod nvic;
8585
pub mod scb;
8686

87+
#[cfg(all(not(armv6m), not(armv8m_base)))]
88+
pub use cortex_m_0_7::peripheral::itm;
89+
8790
pub use cortex_m_0_7::peripheral::{cpuid, dcb, dwt, syst};
8891
#[cfg(not(armv6m))]
8992
pub use cortex_m_0_7::peripheral::{fpb, tpiu};

0 commit comments

Comments
 (0)