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 agoUsing hardware level interrupts is not recommended with an OS. Anyway you can do it and I myself (alas!) have sometimes used this kind of unfair practice.
But, you must be VERY careful because your isr call can easily conflict with OS. So, your isr must be as small as possible and have a well defined context. I think you will use alt_irq_register() to enable the interrupt: if I remember correctly, the call to this function must be made in the highest priority task, otherwise it won't work.