diff options
-rw-r--r-- | cortex-m-rt/CHANGELOG.md | 14 | ||||
-rw-r--r-- | cortex-m-rt/Cargo.toml | 5 | ||||
-rw-r--r-- | cortex-m-rt/README.md | 3 | ||||
-rw-r--r-- | cortex-m-rt/src/lang_items.rs | 1 | ||||
-rw-r--r-- | cortex-m-rt/src/lib.rs | 1 |
5 files changed, 23 insertions, 1 deletions
diff --git a/cortex-m-rt/CHANGELOG.md b/cortex-m-rt/CHANGELOG.md new file mode 100644 index 0000000..13e0512 --- /dev/null +++ b/cortex-m-rt/CHANGELOG.md @@ -0,0 +1,14 @@ +# Change Log + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## [Unreleased] + +## v0.1.0 - 2017-04-12 + +Initial release + +[Unreleased]: https://github.com/japaric/cortex-m-rt/compare/v0.1.0...HEAD diff --git a/cortex-m-rt/Cargo.toml b/cortex-m-rt/Cargo.toml index 4165852..9fb967b 100644 --- a/cortex-m-rt/Cargo.toml +++ b/cortex-m-rt/Cargo.toml @@ -21,8 +21,11 @@ version = "0.1.3" [features] default = ["exceptions", "linker-script"] -# handle exceptions using the default handler +# service all exceptions using the default handler exceptions = ["cortex-m"] +# generic linker script linker-script = [] +# prints panic messages to the ITM panic-over-itm = ["cortex-m"] +# prints panic messages to the host stdout panic-over-semihosting = ["cortex-m-semihosting"]
\ No newline at end of file diff --git a/cortex-m-rt/README.md b/cortex-m-rt/README.md index 13fdb81..49bc8a2 100644 --- a/cortex-m-rt/README.md +++ b/cortex-m-rt/README.md @@ -1,3 +1,6 @@ +[](https://crates.io/crates/cortex-m-rt) +[](https://crates.io/crates/cortex-m-rt) + # `cortex-m-rt` > Minimal runtime / startup for Cortex-M microcontrollers diff --git a/cortex-m-rt/src/lang_items.rs b/cortex-m-rt/src/lang_items.rs index bd7c4db..7b3fa9d 100644 --- a/cortex-m-rt/src/lang_items.rs +++ b/cortex-m-rt/src/lang_items.rs @@ -28,6 +28,7 @@ unsafe extern "C" fn panic_fmt( () => {} } + #[cfg(target_arch = "arm")] asm!("bkpt" :::: "volatile"); loop {} diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index 188d6a1..156edb5 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -192,6 +192,7 @@ unsafe extern "C" fn reset_handler() -> ! { // If `main` returns, then we go into "reactive" mode and attend interrupts // as they occur. loop { + #[cfg(target_arch = "arm")] asm!("wfi" :::: "volatile"); } } |