diff options
author | 2018-08-15 19:45:43 +0000 | |
---|---|---|
committer | 2018-08-15 19:45:43 +0000 | |
commit | 5861058169dce0d65db7b20c0edce7b1e2dbb2de (patch) | |
tree | d8ef4d98912893b814084ee1a9348a9b09d31e6f /cortex-m-rt/examples/main.rs | |
parent | 1089ef3423e60c6c9b186f77868ea1b16e153e01 (diff) | |
parent | be0152fd2e979f1a1582d4840c1da840ee9c60ab (diff) | |
download | cortex-m-5861058169dce0d65db7b20c0edce7b1e2dbb2de.tar.gz cortex-m-5861058169dce0d65db7b20c0edce7b1e2dbb2de.tar.zst cortex-m-5861058169dce0d65db7b20c0edce7b1e2dbb2de.zip |
Merge #88
88: v0.5.2 r=therealprof a=japaric
changes required for a new release
this commit also simplifies the examples by removing the exception handler overrides and adds an
example that overrides the exception handlers.
r? @adamgreig (chosen at random)
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Co-authored-by: Adam Greig <adam@adamgreig.com>
Diffstat (limited to 'cortex-m-rt/examples/main.rs')
-rw-r--r-- | cortex-m-rt/examples/main.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/cortex-m-rt/examples/main.rs b/cortex-m-rt/examples/main.rs index d319249..e5ce3d1 100644 --- a/cortex-m-rt/examples/main.rs +++ b/cortex-m-rt/examples/main.rs @@ -4,25 +4,10 @@ #![no_main] #![no_std] -#[macro_use(exception)] extern crate cortex_m_rt as rt; extern crate panic_semihosting; -use rt::ExceptionFrame; - #[no_mangle] pub unsafe extern "C" fn main() -> ! { loop {} } - -// the hard fault handler -exception!(HardFault, hard_fault); - -fn hard_fault(_ef: &ExceptionFrame) -> ! { - loop {} -} - -// the default exception handler -exception!(*, default_handler); - -fn default_handler(_irqn: i16) {} |