Functions | |
| uint8_t | SelfTest_PRIMASK (void) |
| This function tests the PM bit of the PRIMASK register with the values 0 and 1, and attempts to restore the original PRIMASK value. | |
| uint8_t SelfTest_PRIMASK | ( | void | ) |
This function tests the PM bit of the PRIMASK register with the values 0 and 1, and attempts to restore the original PRIMASK value.
The function writes the original PRIMASK value back also when a check fails, and checks it. It returns ERROR_STATUS if any check fails, including when a stuck PM prevents the original value from being restored.