|
SRTOS
|
System fault handling functions for SRTOS. More...
#include "fault.h"Go to the source code of this file.
Functions | |
| __attribute ((naked)) | |
| Returns the Stack Pointer after a fault. | |
| void | systemHandle_Fault (uint32_t *faultSP) |
| This function will handle a system fault. The default behavior is to log the fault SP to non-volatile memory. | |
| __attribute__ ((naked)) | |
| This function will get the fault Stack Pointer and call the fault handler. | |
System fault handling functions for SRTOS.
Implements handlers for system faults, capturing the fault stack pointer and calling systemHandle_Fault().
Definition in file fault.c.
| __attribute | ( | (naked) | ) |
Returns the Stack Pointer after a fault.
| faultLR | This is the link register, which will be used to return to the function's caller. It is marked unused to suppress the unused paramter compiler warning. |
Definition at line 11 of file fault.c.
| __attribute__ | ( | (naked) | ) |
This function will get the fault Stack Pointer and call the fault handler.
Definition at line 79 of file fault.c.
| void systemHandle_Fault | ( | uint32_t * | faultSP | ) |
This function will handle a system fault. The default behavior is to log the fault SP to non-volatile memory.
This function can be editted as the user needs. There is not one specific action that needs to be done here, it just depends on how the user wants to handle faults.
| faultSP | The fault Stack Pointer that, by default, will be written to non-volatile memory. This will be the best representation of why the system faulted. |
Definition at line 22 of file fault.c.