Skip to content

Commit 0901344

Browse files
committed
update the CHANGELOG
1 parent b1c0595 commit 0901344

File tree

3 files changed

+51
-9
lines changed

3 files changed

+51
-9
lines changed

cortex-m-rt/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [v0.5.0] - 2018-05-12
11+
12+
### Added
13+
14+
- An `entry!` macro to set the entry point of the program.
15+
16+
- A `heap_start` function that returns a pointer into the start of the heap region.
17+
18+
- A `device` feature. When disabled this crate provides the interrupt vectors; when enabled the
19+
interrupt vectors are expected to be provided by another crate. Read the documentation for
20+
details.
21+
22+
### Changed
23+
24+
- This crate now compiles on the beta and stable channels.
25+
26+
- [breaking-change] this crate now requires `arm-none-eabi-gcc` to be installed and available in
27+
`$PATH` to compile.
28+
29+
- [breaking-change] the `start` lang item has been removed. The standard `main` interface won't
30+
work. Instead use `#![no_main]` and the `entry!` macro. See documentation for details.
31+
32+
- [breaking-change] the `default_handler!` macro has been merged into the `exception!` macro. Use
33+
`exception!(*, ..)` to set the default exception handler.
34+
35+
- [breaking-change] there's no weak default handler so a default handler must be defined by the
36+
application, or one of its dependencies.
37+
38+
- [breaking-change] the syntax of the third argument of the `exception!` handler has changed. See
39+
the documentation of the macro for details.
40+
41+
- [breaking-change] the exception names that the `exception!` macro accepts has changed to match the
42+
CMSIS specification. See the documentation of the macro for the list of names it accepts.
43+
44+
- [breaking-change] The number of symbol interfaces has been reduced. Check the advanced section of
45+
the documentation for details.
46+
1047
## [v0.4.0] - 2018-04-09
1148

1249
### Added

cortex-m-rt/link.x.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ cortex-m-rt: The '.text' section can't be placed inside the '.vector_table' sect
183183
'_stext' to an address greater than '__einterrupts' (cf. `nm` output)");
184184

185185
ASSERT(_stext < ORIGIN(FLASH) + LENGTH(FLASH), "
186-
cortex-m-rt The '.text' section must be placed inside the FLASH memory.Set '_stext' to an
186+
cortex-m-rt The '.text' section must be placed inside the FLASH memory. Set '_stext' to an
187187
address smaller than 'ORIGIN(FLASH) + LENGTH(FLASH)");
188188

189189
/* This has been temporarily omitted because it's not supported by LLD */

cortex-m-rt/src/lib.rs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@
1818
//!
1919
//! [`exception!`]: macro.exception.html
2020
//!
21-
//! # `memory.x`
21+
//! # Requirements
22+
//!
23+
//! ## `arm-none-eabi-gcc`
24+
//!
25+
//! This crate requires `arm-none-eabi-gcc` to be installed and available in `$PATH`.
26+
//!
27+
//! ## `memory.x`
2228
//!
2329
//! This crate expects the user, or some other crate, to provide the memory layout of the target
2430
//! device via a linker script named `memory.x`. This section covers the contents of `memory.x`
2531
//!
26-
//! ## `MEMORY`
32+
//! ### `MEMORY`
2733
//!
2834
//! The linker script must specify the memory available in the device as, at least, two `MEMORY`
2935
//! regions: one named `FLASH` and one named `RAM`. The `.text` and `.rodata` sections of the
@@ -39,7 +45,7 @@
3945
//! }
4046
//! ```
4147
//!
42-
//! ## `_stack_start`
48+
//! ### `_stack_start`
4349
//!
4450
//! This optional symbol can be used to indicate where the call stack of the program should be
4551
//! placed. If this symbol is not used then the stack will be placed at the *end* of the `RAM`
@@ -62,7 +68,7 @@
6268
//! _stack_start = ORIGIN(CCRAM) + LENGTH(CCRAM);
6369
//! ```
6470
//!
65-
//! ## `_stext`
71+
//! ### `_stext`
6672
//!
6773
//! This optional symbol can be used to control where the `.text` section is placed. If omitted the
6874
//! `.text` section will be placed right after the vector table, which is placed at the beginning of
@@ -80,7 +86,7 @@
8086
//! _stext = ORIGIN(FLASH) + 0x40C
8187
//! ```
8288
//!
83-
//! # Example
89+
//! # An example
8490
//!
8591
//! This section presents a minimal application built on top of `cortex-m-rt`. Apart from the
8692
//! mandatory `memory.x` linker script describing the memory layout of the device, the hard fault
@@ -436,10 +442,9 @@ impl fmt::Debug for ExceptionFrame {
436442
}
437443
}
438444

439-
/// Returns a pointer into which the heap can be placed
445+
/// Returns a pointer to the start of the heap
440446
///
441-
/// The start of the heap is guaranteed to be 4-byte aligned; that is the pointer returned by this
442-
/// function is a multiple of 4.
447+
/// The returned pointer is guaranteed to be 4-byte aligned.
443448
#[inline]
444449
pub fn heap_start() -> *mut u32 {
445450
extern "C" {

0 commit comments

Comments
 (0)