HWA
Bare metal programming with style
|
This class is used in all Atmel AVR devices.
(portx,p)
: the single gpio pin at position p
of portx
.(portx,n,p)
: the n
consecutive gpio pins at position p
of portx
.DDR
register of portx
.PIN
register of portx
.PORT
register of portx
.
hw( configure, ... ) and hwa( configure, ... ): configure all the pins of the gpio port PORT.
hw( read, PORT ) returns the status of all the pins of the gpio port PORT.
hw( write, PORT, ... ) and hwa( write, PORT, ... ): configure all the pins of the gpio port PORT.