This program blinks a LED using the SysTick timer.
- main.c
#include BOARD_H
#define AHBHZ HW_DEVICE_HSIHZ // The HSI runs at 8 MHz
#define PERIOD 0.5 // Blinking period
int main ( )
{
mode, digital_output,
frequency, lowest );
clock, ahb/8,
reload, PERIOD/2 * AHBHZ/8 - 1,
run, yes );
for(;;) {
if (
hw( read, (systick,irq) ) )
}
}