This commit is contained in:
Jorge Aparicio
2018-02-26 22:31:17 +01:00
parent 23ae289bf4
commit 578dfc7f86
4 changed files with 14 additions and 5 deletions

View File

@@ -5,6 +5,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
## [v0.2.5] - 2018-02-26
### Added
- Comments to Cargo.toml and Xargo.toml to make it easier to try the examples.
### Fixed
- The `allocator` example to use the `#[global_allocator]` feature.
## [v0.2.4] - 2018-01-26
### Changed

View File

@@ -6,7 +6,7 @@ keywords = ["arm", "cortex-m", "template"]
license = "MIT OR Apache-2.0"
name = "cortex-m-quickstart"
repository = "https://github.com/japaric/cortex-m-quickstart"
version = "0.2.4"
version = "0.2.5"
[dependencies]
cortex-m = "0.4.0"

View File

@@ -31,7 +31,7 @@
//!
//! #[lang = "panic_fmt"]
//! #[no_mangle]
//! unsafe extern "C" fn rust_begin_unwind(
//! pub unsafe extern "C" fn rust_begin_unwind(
//! args: core::fmt::Arguments,
//! file: &'static str,
//! line: u32,
@@ -42,7 +42,7 @@
//! .and_then(|_| {
//! stdout
//! .write_fmt(args)
//! .and_then(|_| writeln!(stdout, "', {}:{}", file, line))
//! .and_then(|_| writeln!(stdout, "', {}:{}:{}", file, line, col))
//! })
//! .ok();
//! }

View File

@@ -31,7 +31,6 @@
//! #![feature(used)]
//! #![feature(global_allocator)]
//! #![no_std]
//! #[allow(deprecated)]
//!
//! // This is the allocator crate; you can use a different one
//! extern crate alloc_cortex_m;
@@ -58,7 +57,7 @@
//! fn main() {
//! // Initialize the allocator
//! let start = unsafe { &mut _sheap as *mut u32 as usize };
//! let end = unsafe { &mut _sheap as *mut u32 as usize };
//! let end = unsafe { &mut _eheap as *mut u32 as usize };
//! unsafe { ALLOCATOR.init(start, end - start) }
//!
//! // Growable array allocated on the heap