Skip to content

Commit

Permalink
Merge #321
Browse files Browse the repository at this point in the history
321: Fix `Stim` reexport on thumbv8m.base r=adamgreig a=jonas-schievink



Co-authored-by: Jonas Schievink <[email protected]>
  • Loading branch information
bors[bot] and jonas-schievink authored Jan 25, 2021
2 parents 34852c1 + 9ba722d commit 2dae1e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.6.6] - 2021-01-26

### Fixed

- Fixed missing ITM reexport on `thumbv8m.base` targets.

## [v0.6.5] - 2021-01-24

### Changed
Expand Down Expand Up @@ -607,7 +613,9 @@ fn main() {
- Functions to get the vector table
- Wrappers over miscellaneous instructions like `bkpt`

[Unreleased]: https://github.com/rust-embedded/cortex-m/compare/v0.6.4...HEAD
[Unreleased]: https://github.com/rust-embedded/cortex-m/compare/v0.6.6...HEAD
[v0.6.6]: https://github.com/rust-embedded/cortex-m/compare/v0.6.5...v0.6.6
[v0.6.5]: https://github.com/rust-embedded/cortex-m/compare/v0.6.4...v0.6.5
[v0.6.4]: https://github.com/rust-embedded/cortex-m/compare/v0.6.3...v0.6.4
[v0.6.3]: https://github.com/rust-embedded/cortex-m/compare/v0.6.2...v0.6.3
[v0.6.2]: https://github.com/rust-embedded/cortex-m/compare/v0.6.1...v0.6.2
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
name = "cortex-m"
readme = "README.md"
repository = "https://github.com/rust-embedded/cortex-m"
version = "0.6.5"
version = "0.6.6"
edition = "2018"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/itm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use core::{fmt, mem, ptr, slice};

use aligned::{Aligned, A4};

#[cfg(thumbv8m_base)]
#[cfg(armv8m_base)]
use crate::peripheral::itm::Stim;
#[cfg(not(thumbv8m_base))]
#[cfg(not(armv8m_base))]
use cortex_m_0_7::peripheral::itm::Stim;

// NOTE assumes that `bytes` is 32-bit aligned
Expand Down

0 comments on commit 2dae1e4

Please sign in to comment.