Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

9.2.1.4.1. Using the Legacy HAL API to Implement ISRs

Using the legacy HAL API to implement ISRs requires that you perform the following steps:

  1. Write your ISR that handles hardware interrupts for a specific device.
  2. Ensure that your program registers the ISR with the HAL by calling the alt_irq_register() function. alt_irq_register() enables hardware interrupts for you, by calling alt_irq_enable_all().