HWA
Bare metal programming with style
Class _inta: external interrupt controller

A class _inta object is an external interrupt controller.

It is used in:

Interrupts

Class _inta objects can trigger the following IRQs:

Interface




hw( configure, ... ) and hwa( configure, ... )

hw | hwa( configure, int0,
sense, low_level // What does trigger the IRQ
| edge
| falling_edge
| rising_edge );

Status

The IRQ mask and flag can be accessed through interrupt-related instructions:

if ( hw( read, (int0,irq) ) ) { // Read IRQ flag
hw( clear, (int0,irq) ); // Clear IRQ flag
hw( disable, (int0,irq) ); // Disable IRQ
}

Internals

Class _inta objects hold the following hardware registers:

hwa
#define hwa(...)
hwa( action, object [,...] ) stores an action for an object into a HWA context.
Definition: hwa_macros.h:552
hw
#define hw(...)
hw( action, object [,...] ) executes an action immediately on an object.
Definition: hwa_macros.h:523