HWA
Bare metal programming with style
|
This program configures the LED pin as a digital output, then in an infinite loop it toggles the LED state using an OS timer.
Symbols:
BOARD_H
is the name of the target board definition file. It can be specified at compile time via the command line. If not, the Makefile will set it to attiny84
by default. For example, make BOARD=nanodccduino
will lead to BOARD_H
defined as <boards/nanodccduino.h>
. See Development boards for the list of board definition files provided.PIN_LED
is the name of the I/O pin at which a LED is connected. It is defined in the target board header file.