Function riot_sys::core_panic

source ·
pub unsafe extern "C" fn core_panic(
    crash_code: core_panic_t,
    message: *const c_char
) -> !
Expand description

@brief Handle an unrecoverable error by halting or rebooting the system

A numeric code indicating the failure reason can be given as the crash_code parameter.

Detailing the failure is possible using the message parameter. This function should serve a similar purpose as the panic() function of Unix/Linux kernels.

If the DEVELHELP macro is defined, the system will be halted; the system will be rebooted otherwise.

@warning this function NEVER returns!

@param[in] crash_code a unique code for identifying the crash reason @param[in] message a human readable reason for the crash

@return this function never returns