HWA
Bare metal programming with style
|
Interrupts are HWA objects of class _irq.
HW_ISR( IRQ [,naked] [,interruptible] ): implement an Interrupt Service Routine. This can be used with assembly language.
HW_ISR( IRQ2, alias, IRQ1 ): make IRQ1 ISR handle IRQ2.
hw( enable, IRQ ) and hwa( enable, IRQ ): enable an IRQ
Example:
hw( disable, IRQ ) and hwa( disable, IRQ ): disable an IRQ
Example:
hw( is_enabled, IRQ ): verify if an IRQ is enabled.
hw( read, IRQ ): read the IRQ flag
Example:
hw( clear, IRQ ) and hwa( clear, IRQ ): clear the IRQ flag
Example:
hw( enable, interrupts ): enable interrupts
Example:
hw( disable, interrupts ): disable interrupts
Example: