PowerBlocks SDK
 
Loading...
Searching...
No Matches
crash_handler.h
Go to the documentation of this file.
1
10
11#pragma once
12
14
25typedef void (*crash_handler_t)(const char* cause, exception_context_t* ctx);
26
40extern void crash_handler_bug_check(const char* cause, exception_context_t* ctx);
41
54extern void crash_handler_set(crash_handler_t handler);
void crash_handler_set(crash_handler_t handler)
Sets the system crash handler.
Definition crash_handler.c:92
void crash_handler_bug_check(const char *cause, exception_context_t *ctx)
Freezes the system and displays a crash screen.
Definition crash_handler.c:20
void(* crash_handler_t)(const char *cause, exception_context_t *ctx)
Function pointer to the system crash handlers.
Definition crash_handler.h:25
Handles System Exceptions.
Pointer to the stack frame of the saved context during interrupts.
Definition exceptions.h:43