HWA
Bare metal programming with style
Class _gpa: 8-bit I/O port

This class is used in all Atmel AVR devices.

Relatives

Interface




hw( configure, ... ) and hwa( configure, ... ): configure all the pins of the gpio port PORT.

Note
These actions are not implemented yet. Configure the GPIO pins instead.
hw( configure, portb, mode, output_pushpull );
hw( configure, portb, mode, input_pullup );




hw( read, PORT ) returns the status of all the pins of the gpio port PORT.

hw( read, portb );




hw( write, PORT, ... ) and hwa( write, PORT, ... ): configure all the pins of the gpio port PORT.

hw( write, portb, 0xBE );
hwa( write, portb, 0xEF );
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