HWA
Bare metal programming with style
|
This is a variation of the 01-1-blink program using the hwa() instructions.
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 a default value. For example, make BOARD=mini-stm32-v3.0
will lead to BOARD_H
defined as <boards/mini-stm32-v3.0.h>
. See STM32 Development boards for the list of board definition files provided.PIN_LED1
is the name of the I/O pin at which LED1 is connected. It is defined in the target board header file.PERIOD
is the blinking period.HW_DEVICE_HSIHZ
is the CPU frequency.