adapt to changes in cortex-m-srp
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
//! Prints "Hello, world!" on the OpenOCD console using semihosting
|
||||
|
||||
#![feature(used)]
|
||||
#![no_std]
|
||||
|
||||
#[macro_use]
|
||||
@@ -7,17 +8,14 @@ extern crate cortex_m;
|
||||
extern crate cortex_m_rt;
|
||||
extern crate {{name}};
|
||||
|
||||
use cortex_m::exception;
|
||||
use {{name}}::interrupt;
|
||||
|
||||
fn main() {
|
||||
hprintln!("Hello, world!");
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub static _INTERRUPTS: interrupt::Handlers =
|
||||
#[allow(dead_code)]
|
||||
#[used]
|
||||
#[link_section = ".rodata.interrupts"]
|
||||
static INTERRUPTS: interrupt::Handlers =
|
||||
interrupt::Handlers { ..interrupt::DEFAULT_HANDLERS };
|
||||
|
||||
#[no_mangle]
|
||||
pub static _EXCEPTIONS: exception::Handlers =
|
||||
exception::Handlers { ..exception::DEFAULT_HANDLERS };
|
||||
|
||||
Reference in New Issue
Block a user