Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

8.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().