Visible to Intel only — GUID: tre1655905497182
Ixiasoft
Visible to Intel only — GUID: tre1655905497182
Ixiasoft
6.7. Using Timer Devices
The HAL API provides two types of timer device drivers:
- System clock driver—Supports alarms, such as you would use in a scheduler.
- Timestamp driver—Supports high-resolution time measurement.
A timer peripheral can behave as either a system clock or a timestamp, but not both.
The Nios® V processor core provides an internal timer which can serve as both an interval timer and timestamp. If an external timer such as the Interval Timer core is used, it can only implement a timestamp or a system clock but not both.
For more information about where the HAL-specific API functions for accessing timer devices are defined, refer to the sys/alt_alarm.h and sys/alt_timestamp.h files.