| Xmega IEC60730 Class B Library 1.0 |

All Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
Settings related to error handling
CPU Register test

## Detailed Description

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. 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.
#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.