Forum Discussion
Altera_Forum
Honored Contributor
16 years agoalt_alarm_start()
int alt_alarm_start (alt_alarm* alarm, alt_u32 nticks, alt_u32 (*callback) (void* context), void* context); according to the handbook, program would transfer alt_u32 (*callback)(void* contex...
Altera_Forum
Honored Contributor
16 years agoYour call back function is called with the same context parameter that was given to the alt_alarm_start function.
The return value of the callback function is used to determine when it should be called again, it is automatically picked up by the alarm driver.