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
14 years agoDaixiwen is right. Adding a task will ease code portability and maintenance.
You must consider the hw timer and isr solution only if you have particular requirements which can't be fulfilled by OS features. For example, in my case, I needed a function to execute at very precise timing, in the us range, which could not be achieved by uC-RTOS scheduler (the RT applies only down to the ms range...)