Skip to content
Kaspar Schleiser edited this page Jan 28, 2015 · 7 revisions

Timer Task Force

This page is used to collect requirements and suggestions concerning a hwtimer/vtimer/RTC redesign.

requirements

  • very efficient timers for use in time-critical drivers
  • easy-to-use interface

API

  • Wait for a time period
  • Await a point in time
  • Wait for a (past) time + x
  • (use RTC if available for super-long-time timers)

design questions

  • what granularity to use? msec,usec,nsec, timer ticks, a combination?

current state:

  • timer.h: timer hardware abstraction, using ticks

  • hwtimer: low-level timer multiplexing, one timer.h timer using the same ticks

  • vtimer: higher-level timer multiplexing, using one hwtimer, usecs

  • first two look OK, are stable

  • vtimer sucks

Clone this wiki locally