SNIP_CLASSIC_OS_SECTION_7_2_Software_Free_Running_Timer
Wortlaut
7.2 Software Free Running Timer
Due to the fact that the number of timers is often very limited, some functionality and configuration is added to extend the reuse of timers. E.g. this allows timer measurements.
[SWS_Os_00374] Upstream requirements: SRS_BSW_00101
⌈The Operating System module shall handle all the initialization and configuration of timers used directly by the Operating System module and not handled by the GPT driver.⌋ The Operating System module provides API service GetCounterValue (see
[SWS_Os_00383]) to read the current count value of a Counter (returning either the hardware timer ticks if Counter is driven by hardware or the software ticks when user drives Counter). The Operating System module provides API service GetElapsedValue (see
[SWS_Os_00392]) to get the number of ticks between the current tick value and a previously read tick value.
[SWS_Os_00384] ⌈The Operating System module shall adjust the read out values of hardware timers (which drive counters) in such that the lowest value is zero and consecutive reads return an increasing count value until the timer wraps at its modulus.⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
hardware and software counter values caveats
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_OS.pdf |
|---|---|
| Dokumentseite | Seite 39 |
| Ziel-Modul | os (classic) |
| Ziel-Anforderung | SWS_Os_00531 |
| Semantische Rolle | heuristic |
| Automatisierungs-Konfidenz | 0.80 |