Skip to content

Commit a6f514f

Browse files
committed
Update CHANGELOG.md and README.md. Tag v0.3.0.
1 parent fcae111 commit a6f514f

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.3.0] - 2022-01-25
11+
1012
### Changed
11-
- Bumped `bare-metal` to version `1.0.0`.
13+
- Bumped `bare-metal` to version `1.0.0`. Using bare_metal v1.x causes
14+
incompatible type errors with device crates (PACs) using bare-metal v0.2.x.
15+
This, _among other removed features_, requires a major version bump to fix.
16+
- All uses of the `llvm_asm!` macro have been replaced with `asm!`, in
17+
accordance with [Issue 92816](https://github.com/rust-lang/rust/pull/92816).
1218

1319
### Removed
1420
- `enable_cs` removed due to soundness hole when interacting with `Clone` and
1521
`interrupt::free`.
1622
- Remove `peripherals` module since the peripheral API is no longer provided by
1723
`bare-metal`.
24+
- `register::{sp, pc}::write` have been removed; inline assembly [mandates](https://doc.rust-lang.org/nightly/reference/inline-assembly.html#rules-for-inline-assembly)
25+
that the stack pointer is restored before leaving an asm block. Writing
26+
PC is also being removed as a precaution.
1827

1928
## [v0.2.2] - 2020-04-23
2029

@@ -50,7 +59,8 @@ Initial release.
5059

5160
[bare-metal]: https://github.com/japaric/bare-metal
5261

53-
[Unreleased]: https://github.com/rust-embedded/msp430/compare/v0.2.2...HEAD
62+
[Unreleased]: https://github.com/rust-embedded/msp430/compare/v0.3.0...HEAD
63+
[v0.3.0]: https://github.com/rust-embedded/msp430/compare/v0.2.2...v0.3.0
5464
[v0.2.2]: https://github.com/rust-embedded/msp430/compare/v0.2.1...v0.2.2
5565
[v0.2.1]: https://github.com/rust-embedded/msp430/compare/v0.2.0...v0.2.1
5666
[v0.2.0]: https://github.com/rust-embedded/msp430/compare/v0.1.0...v0.2.0

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@
77
88
This crate is based on [cortex-m](https://docs.rs/cortex-m) crate by Jorge Aparicio (@japaric).
99

10-
**This crate requires a nightly rust due to the use of the `llvm_asm!`
11-
(`0.2.2` and above) or `asm!` (`0.2.1` and below) macro.** For `0.2.2`,
12-
`nightly-2020-04-22` is known to work. For `0.2.1`, `nightly-2020-01-04` is
13-
known to work.
10+
**This crate requires a nightly rust due to the use of the new `asm!` (`0.3.0`
11+
and above), `llvm_asm!` (`0.2.2`) or old `asm!` (`0.2.1` and below) macros.**
12+
The below table contains compilers which are known to work:
13+
14+
|`msp430` version|`rustc` compiler |
15+
|----------------|--------------------|
16+
|`0.3.0` |`nightly-2022-01-24`|
17+
|`0.2.2` |`nightly-2020-04-22`|
18+
|`0.2.1` |`nightly-2020-01-04`|
1419

1520
## [Documentation](https://docs.rs/crate/msp430)
1621

0 commit comments

Comments
 (0)