CPU frequency test.
Copyright (C) 2012 Atmel Corporation. All rights reserved.
Definition in file classb_freq.c.
Include dependency graph for classb_freq.c:Go to the source code of this file.
Functions | |
| 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. | |
| 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. | |