HWA
Bare metal programming with style
|
This class is used by:
(counter1,compare0)
, (counter1,compare1)
(counter1,compare0)
, (counter1,compare1)
(counter0,compare0,counter)
: parent counter;(counter0,compare0,pin)
: output pin.(COUNTER,COMPARE,irq)
: triggered on compare match
hw( configure, ... ) only permits to change the behavior of the output pin and does not perform any verification against the counter configuration:
hwa( configure, ... ) allows the update
parameter to be set. It tells when the compare value is transferred from the latch register to the compare register. This is used to complete and check the configuration of the related counter when the hwa(commit) instruction is encountered:
hw( read, ... ): get the compare value
hw( write, ... ), hwa( write, ... ): set the compare value
hw( trigger, ... ), hwa( trigger, ... ): force a compare-match
Registers are hold by the parent counter.