This is the self-test for CPU registers.
Functions | |
| bool | classb_register_test (void) |
| CPU register self-diagnostic routine for AVR GCC. | |
| bool classb_register_test | ( | void | ) |
CPU register self-diagnostic routine for AVR GCC.
This function tests the CPU registers, preserving those registers specified in the AVR GCC compiler documentation. Note that if there should be a fault in a register that needs preservation, its value would not be restored.
Registers are tested in this order:
| false | No register fault detected. |
| true | Register fault detected. |
Definition at line 80 of file classb_cpu_gcc.c.
References CLASSB_ERROR_CRIT, CLASSB_ERROR_HANDLER_REGISTERS, and CLASSB_ERROR_NON_CRIT.
Referenced by ISR().
Here is the caller graph for this function: