Clock Types
The eRTOS clocks are:
- CLOCK_1 (alias CLOCK_SYSTEM) — CLOCK_1 services have a resolution of 1 ms. Threads may schedule timers with periods in increments of 1 ms on this clock.
- CLOCK_2 (alias CLOCK_FASTEST) — CLOCK_2 services have a resolution of 1 µs. The period for timers scheduled on this clock is variable and can be set to any value between 1 and 1000 µs.
- CLOCK_3 — CLOCK_3 services have a resolution of 1 µs. The period for timers scheduled on this clock is calculated through the number of Programmable Timer ticks passed in the period and one-tick interval.
Note: Both CLOCK_3 and CLOCK_2 is based on the same HAL extension timer period. The difference is in the interpretation and representation of this period in the CLOCK calculation.
Related topics: