Add Main function
@ -24,4 +24,13 @@ void delay(int us)
STCTRL |= ENABLE | CLKINT; // Enable SysTick
while ((STCTRL & (1 << 16)) == 0); // Wait until flag is set
STCTRL &= ~ENABLE; // Stop the timer
}
int main(void)
{
systick_setting(); // SysTick setup
while (1)