Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches

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.
 
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 ,
  TRAPS_CAN2_ERR = 14
}
 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.
 

Detailed Description

Enumeration Type Documentation

◆ TRAPS_ERROR_CODE

Definition at line 51 of file traps.h.

Function Documentation

◆ TRAPS_halt_on_error()

void TRAPS_halt_on_error ( uint16_t code)
Parameters
[in]code- trap error code
Returns
none

Definition at line 52 of file traps.c.

+ Here is the caller graph for this function: