rust-raspberrypi-OS-tutorials/01_wait_forever/src/panic_wait.rs

17 lines
486 B
Rust
Raw Normal View History

2019-11-25 18:54:05 +00:00
// SPDX-License-Identifier: MIT OR Apache-2.0
2019-09-21 22:32:54 +00:00
//
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
2019-09-21 22:32:54 +00:00
//! A panic handler that infinitely waits.
use core::panic::PanicInfo;
//--------------------------------------------------------------------------------------------------
// Private Code
//--------------------------------------------------------------------------------------------------
2019-09-21 22:32:54 +00:00
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
unimplemented!()
2019-09-21 22:32:54 +00:00
}