Functions related to the CPU frequency self-test.
Functions | |
| ISR (CLASSB_TEST_TC_OVF_vect) | |
| TC overflow interrupt. This counts the number of TC overflows and the error handler is called if the configurable maximum is exceeded. The purpose of the latter is to detect RTC failure: the TC is reset in the RTC interrupt. If the RTC interrupt is too slow, the number of TC overflows will exceed the limit. Note that if the TC frequency increased abruptly, the error would probably be detected here. | |
| void | classb_freq_setup_timer () |
| This sets up the TC that is used in the frequency test. This configures the period, prescaler and overflow interrupt. | |
| void | classb_freq_callback () |
| This is called back from the RTC interrupt. | |
| void classb_freq_callback | ( | ) |
This is called back from the RTC interrupt.
This function calculates the difference between the TC count and the predefined reference. The error handler would be called if the relative difference should be higher than the tolerance.
Definition at line 86 of file classb_freq.c.
References CLASSB_ERROR_HANDLER_FREQ.
Referenced by ISR().
Here is the caller graph for this function: