Traps driver with handler for all types of traps using dsPIC MCUs. More...
Collaboration diagram for Traps Driver:Files | |
| file | traps.c |
| This is the generated driver source file for TRAPS driver. | |
Enumerations | |
| enum | TRAPS_ERROR_CODE { TRAPS_OSC_FAIL = 0 , TRAPS_STACK_ERR = 1 , TRAPS_ADDRESS_ERR = 2 , TRAPS_MATH_ERR = 3 , TRAPS_HARD_ERR = 7 , TRAPS_DAE_ERR = 9 , TRAPS_DOOVR_ERR = 10 , TRAPS_APLL_ERR = 11 , TRAPS_NVM_ERR = 12 , TRAPS_CAN_ERR = 13 } |
| Defines the TRAPS error codes. More... | |
Functions | |
| void | TRAPS_halt_on_error (uint16_t code) |
| Stores the trap error code and waits forever. This is a weak attribute function. The user can override and implement the same function without weak attribute. | |
| enum TRAPS_ERROR_CODE |
| void TRAPS_halt_on_error | ( | uint16_t | code | ) |
| [in] | code | - trap error code |
Here is the caller graph for this function: