From 48897dbc0e1c072059715dcbd8893364459e2791 Mon Sep 17 00:00:00 2001 From: Uttam Ambappa Bhavimani Date: Mon, 28 Oct 2024 23:41:44 +0530 Subject: [PATCH] Update main.c Add Main function --- main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.c b/main.c index 74bc853..7b09ea4 100644 --- a/main.c +++ b/main.c @@ -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) + { + + } } \ No newline at end of file