Function kernel::debug::panic

source · []
pub unsafe fn panic<L: Led, W: Write + IoWrite, C: Chip, PP: ProcessPrinter>(
    leds: &mut [&L],
    writer: &mut W,
    panic_info: &PanicInfo<'_>,
    nop: &dyn Fn(),
    processes: &'static [Option<&'static dyn Process>],
    chip: &'static Option<&'static C>,
    process_printer: &'static Option<&'static PP>
) -> !
Expand description

Tock default panic routine.

NOTE: The supplied writer must be synchronous.