HWA
Bare metal programming with style
|
This program configures the LED pin as a digital output and the watchdog to trigger an IRQ periodically. Then, in an infinite loop, when the watchdog IRQ flag is set, it clears it and toggles the LED state.
A HWA context is used to gather the configuration and write it into the hardware registers at once with the most efficient code possible.