Skip to content

Commit

Permalink
fixup! Move panic_handler to uart::log
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbollen committed Oct 18, 2024
1 parent b5e86b3 commit 797ba86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions firmware-binaries/processing-element-test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
//
// SPDX-License-Identifier: Apache-2.0

use core::panic::PanicInfo;

#[cfg(not(test))]
use riscv_rt::entry;

Expand Down Expand Up @@ -45,3 +47,11 @@ fn main() -> ! {
continue;
}
}

#[panic_handler]
fn panic_handler(_info: &PanicInfo) -> ! {
test_failure();
loop {
continue;
}
}

0 comments on commit 797ba86

Please sign in to comment.