Altera_Forum
Honored Contributor
20 years agoNios2 interrupt handling
Hi. I have a number of critical placesin my code i am trying to make interupt safe. I guess the way to do, if using HAL functions alt_irq_register() , it is to brucket the critical code with alt_irq_disable_all() and alt_irq_enable_all(), the problem is those function pass a parametr. Is there way to create a macro which just will enable and disable all interrupts without passing status flags.? Do i still have ability to use HAL alt_irq_register function?
Thanks gera.