Timer Tests - pokgak/RIOT GitHub Wiki

RIOT Timer tests

  • difference xtimer, periph_timer, RTT, RTC?
    • xtimer high level, take one low level timer (periph_timer?)
    • periph_timer low level hardware time
    • RTT, RTC??
  • benchmark timer exists, why change to RobotFramework (RF) tests?
    • good report generation
    • integration with CI
  • benchmark behaviour in benchmark timer test implemented in RF tests? e.g. avoid phase lock, estimate benchmark cpu overhead
    • ja but later. not that important for now

what to do

  • look how others tests timers (linux, freertos, contiki, zephyr)
  • identify and classify problems of timer from issue list
  • design tests for identified problems and implement
    • specify how to improve accuracy of tests (avoid phase lock, estimate test overhead, etc.)
  • find use cases (in RIOT)
    • sensitivity (us, ns, s)
    • which component use? how used?
      • z.b. concurrency

more q

  • what are still open/needs to be done?
  • literatur vorschlag?

timer problems

  • drift #10523
  • miscaling with long sleep time #9049
  • hang for small sleep time #7347
  • high frequency #11523
  • interrupt safe #8388 #5338
  • XTIMER_OVERHEAD #9491