Specifications

The HAL waits nticks system clock ticks before calling the callback() function. When the HAL calls
callback(), it passes it the input argument context. The HAL does not use the context parameter. It
only passes it as a parameter to the callback() function.
The alarm argument is a pointer to a structure that represents this alarm. You must create it, and it must
have a lifetime that is at least as long as that of the alarm. However, you are not responsible for initializing
the contents of the structure pointed to by alarm. This action is done by the call to alt_alarm_start().
One alarm is created for each call to alt_alarm_start(). Multiple alarms can run simultaneously.
Return
The return value for alt_alarm_start() is zero on success, and negative otherwise. This function fails if
there is no system clock available.
Related Information
Developing Programs Using the Hardware Abstraction Layer on page 6-1
alt_alarm_stop() on page 14-11
alt_nticks() on page 14-46
alt_sysclk_init() on page 14-65
alt_tick() on page 14-48
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_alarm_stop()
Prototype
void alt_alarm_stop (alt_alarm* alarm)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
Yes.
Available from ISR
Yes.
Include
<sys/alt_alarm.h>
NII5V2
2015.05.14
alt_alarm_stop()
14-11
HAL API Reference
Altera Corporation
Send Feedback