timer: Avoid infinite cycle timer on TCNT write
[simavr] / tests / test_atmega48_enabled_timer.c
1 #include "tests.h"
2
3 int main(int argc, char **argv) {
4         tests_init(argc, argv);
5         switch(tests_init_and_run_test("atmega48_enabled_timer.axf", 100000000)) {
6         case LJR_CYCLE_TIMER:
7                 fail("AVR did not wake up to the enabled timer.");
8         case LJR_SPECIAL_DEINIT:
9                 break;
10         default:
11                 fail("Error in test case: Should never reach this.");
12         }
13         tests_success();
14         return 0;
15 }