Visible to Intel only — GUID: mwh1416946896925
Ixiasoft
Visible to Intel only — GUID: mwh1416946896925
Ixiasoft
8.2.5. Enabling and Disabling Interrupts
The HAL enhanced interrupt API provides the functions alt_ic_irq_disable(), alt_ic_irq_enable(), alt_ic_irq_enabled(), alt_irq_disable_all(), alt_irq_enable_all(), and alt_irq_enabled() to allow a program to disable hardware interrupts for certain sections of code, and reenable them later. alt_ic_irq_disable() and alt_ic_irq_enable() allow you to disable and enable individual interrupts. alt_irq_disable_all() disables all interrupts, and returns a context value. To reenable hardware interrupts, you call alt_irq_enable_all() and pass in the context parameter. In this way, interrupts are returned to their state prior to the call to alt_irq_disable_all(). alt_irq_enabled() returns nonzero if maskable exceptions are enabled. alt_ic_irq_enabled() determines whether a specified interrupt is enabled.
For more information about disabled interrupts, refer to the “Keep Interrupts Enabled” chapter.
For more information about these functions, refer to the "HAL API Reference" chapter.
For more information about the legacy API functions, alt_irq_disable() and alt_irq_enable(), refer to the "HAL API Reference" chapter.