|
SRTOS
|
Fault handling interface for SRTOS. More...
Go to the source code of this file.
Functions | |
| __attribute ((naked)) uint32_t *systemGet_Fault_SP(__attribute__((unused)) uint32_t faultLR) | |
| 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)) void HardFault_Handler() | |
| This function will get the fault Stack Pointer and call the fault handler. | |
Fault handling interface for SRTOS.
Declares fault handling routines for capturing and processing system exceptions.
Definition in file fault.h.
| __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.