I am tasked with writing diag code to test the timers in the CPU (IXP1200, in this case). The purposes of the test are to 1) ensure that the timers run. 2) ensure that the timers generate interrupts. 3) verify that the interrupts occured at the requested interval. My code will run as part of POST before any OS is loaded.
Does anyone have any suggestions on approaches, sample code, etc.? I think i know how to know if the timer decrements and if it actually generates interrupts, but i don't know how the verify the time interval. The granularity of the RTC is huge (1 sec) so it seems problematic to use that to time the interrupt interval.
Similarly, i am supposed to test the RTC operation. I guess, if i get the timers verified, i could use them to verify the RTC.