Management method for embedded system timer

The invention discloses a management method for an embedded system timer in the technical field of embedded system timer management. The technical proposal comprises the following steps: a two-way link list for managing the timers with the minimum size being 1 TICK is created; the timers are registe...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: SUI PINGLI, SHAN HONGZHENG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a management method for an embedded system timer in the technical field of embedded system timer management. The technical proposal comprises the following steps: a two-way link list for managing the timers with the minimum size being 1 TICK is created; the timers are registered in the link list; when each TICK arrives the time, the head part of the link list starts checking the overtime status of the timers until reaching the first time which does not exceed the time; all the overtime timers are canceled from the two-way link list; according to the registering status of the canceled timers, messages or function callbacks are respectively sent to a registering module; and the overtime periodic timers can be automatically registered into the link list, or else, the timers are released. As the method adopts a two-way link list for management, the timers apply the memory during the registering, while the memory is released upon canceling; the memory overhead is decided by the current numb