Functions | |
| uint8_t | SelfTest_CONTROL (void) |
| This function tests the CONTROL register bits that are implemented and writable (SPSEL; also FPCA in FPU builds and SFPA in Secure FPU builds, unless SELFTEST_CONTROL_SKIP_FP_BITS is 1), and checks that the SPSEL bit switches the active stack pointer. | |
| uint8_t SelfTest_CONTROL | ( | void | ) |
This function tests the CONTROL register bits that are implemented and writable (SPSEL; also FPCA in FPU builds and SFPA in Secure FPU builds, unless SELFTEST_CONTROL_SKIP_FP_BITS is 1), and checks that the SPSEL bit switches the active stack pointer.
The function masks interrupts for the duration of the test and restores the caller's PRIMASK value before it returns. NMI and HardFault can't be masked; if one of them occurs while PSP is selected, its exception frame is stacked on the library's test stack.