Specifications
Description
Only the system clock driver may call the alt_tick() function. The driver is responsible for making
periodic calls to this function at the rate specified in the call to alt_sysclk_init(). This function
provides notification to the system that a system clock tick has occurred. This function runs as a part of
the ISR for the system clock driver.
Return
--
Related Information
• alt_alarm_start() on page 14-10
• alt_alarm_stop() on page 14-11
• alt_nticks() on page 14-46
• alt_sysclk_init() on page 14-65
• alt_ticks_per_second() on page 14-49
• gettimeofday() on page 14-72
• settimeofday() on page 14-61
• times() on page 14-67
• usleep() on page 14-70
alt_ticks_per_second()
Prototype
alt_u32 alt_ticks_per_second (void)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
Yes.
Available from ISR
Yes.
Include
<sys/alt_alarm.h>
Description
The alt_ticks_per_second() function returns the number of system clock ticks that elapse per second.
If there is no system clock available, the return value is zero.
Return
Returns the number of system clock ticks that elapse per second.
NII5V2
2015.05.14
alt_ticks_per_second()
14-49
HAL API Reference
Altera Corporation
Send Feedback