Skip to content

Commit

Permalink
Support cortex-m-rt 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mattico committed Oct 7, 2021
1 parent ab2854f commit 19846ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ targets = ["thumbv7em-none-eabihf"]
embedded-hal = "0.2.4"
embedded-dma = "0.1.2"
cortex-m = "^0.7.1"
cortex-m-rt = "^0.6.15"
stm32h7 = "^0.14.0"
void = { version = "1.0.2", default-features = false }
cast = { version = "0.2.3", default-features = false }
Expand All @@ -52,6 +51,7 @@ default-features = false
optional = true

[dev-dependencies]
cortex-m-rt = ">=0.6.15,<0.8"
cortex-m-rtic = { version = "0.5.8", default-features = false, features = ["cortex-m-7"] }
log = "0.4.11"
panic-halt = "0.2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/ethernet-nucleo-h743zi2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ fn SysTick() {
}

#[exception]
fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
unsafe fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
panic!("HardFault at {:#?}", ef);
}

#[exception]
fn DefaultHandler(irqn: i16) {
unsafe fn DefaultHandler(irqn: i16) {
panic!("Unhandled exception (IRQn = {})", irqn);
}
4 changes: 2 additions & 2 deletions examples/ethernet-stm32h747i-disco.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ fn ETH() {
}

#[exception]
fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
unsafe fn HardFault(ef: &cortex_m_rt::ExceptionFrame) -> ! {
panic!("HardFault at {:#?}", ef);
}

#[exception]
fn DefaultHandler(irqn: i16) {
unsafe fn DefaultHandler(irqn: i16) {
panic!("Unhandled exception (IRQn = {})", irqn);
}

0 comments on commit 19846ba

Please sign in to comment.