RKTK API Docs RKTK Home Repo

Module panic_utils

Source
Expand description

Panic message handling utilities.

Because doing something complicated in panic_handler is difficult (eg. async function can’t be called), alternatively you can reboot the device in panic_handler. By saving panic info in uninit section, you can display panic message on display after reboot.

Note that this module depends on .uninit section, which is handled by cortex_m_rt.

Structs§

PanicMessage

Functions§

display_mes
display_message_if_panicked
Display panic message on display is exists. This is intended to be called before rktk::task::start and takes a display builder.
save_panic_info
Save panic info to uninit section.