Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Settings related to error handling

Symbols to define behavior upon detected register faults.

In principle, any error in critical registers would mean that the system cannot verify whether the registers are working correctly. Since registers are vital to most applications, the microcontroller should probably hang.

However, this behavior can be modified so that failure in critical registers is handled by CLASSB_ERROR_HANDLER_REGISTERS(). The behavior for failure in non-critical registers can also be configured: the microcontroller can call the error handler or hang.

Macros

#define CLASSB_ERROR_CRIT   CLASSB_LABEL1
 Error handling in critical registers. More...
 
#define CLASSB_ERROR_NON_CRIT   CLASSB_LABEL2
 Error handling in non-critical registers. More...
 

#define CLASSB_ERROR_CRIT   CLASSB_LABEL1

Error handling in critical registers.

If this constant is defined as CLASSB_LABEL1, critical register faults will hang the device. However, if this was defined as CLASSB_LABEL2, errors in critical registers would be processed by the error handler.

Referenced by classb_register_test().

#define CLASSB_ERROR_NON_CRIT   CLASSB_LABEL2

Error handling in non-critical registers.

If this constant is defined as CLASSB_LABEL2, errors in non-critical registers will be processed by the error handler. However, it was defined as CLASSB_LABEL1, non-critical register faults would hang the device.

Referenced by classb_register_test().