4.11 CLASSB_FPU_RegistersTest
Function
CLASSB_TEST_STATUS CLASSB_FPU_RegistersTest(bool running_context);
Summary
This self-test checks the FPU registers of the CPU, to detect stuck-at faults.
Description
This self-test writes test patterns into the FPU registers, and read them back to detect stuck-at faults. Special function register bits which are reserved or should not be modified during the test, are not written. Testing FPU registers is optional as it may not be used in every application.
Precondition
None.
Parameters
running_context - False for startup test. True for run-time test.
Returns
CLASSB_TEST_STATUS - Status of the test.
Example
CLASSB_TEST_STATUS classb_test_status = CLASSB_TEST_NOT_EXECUTED;
// Perform run-time test of the FPU registers
classb_test_status = CLASSB_FPU_RegistersTest(true);
Remarks
This self-test can be used during startup as well as run-time. If a failure is detected, this self-test remains in an infinite loop to avoid unsafe code execution.
