Update main.c

Add Main function
This commit is contained in:
Uttam Bhavimani Bhavimani 2024-10-28 23:41:44 +05:30
parent 9b00f8ac49
commit 48897dbc0e
1 changed files with 9 additions and 0 deletions

9
main.c
View File

@ -25,3 +25,12 @@ void delay(int us)
while ((STCTRL & (1 << 16)) == 0); // Wait until flag is set while ((STCTRL & (1 << 16)) == 0); // Wait until flag is set
STCTRL &= ~ENABLE; // Stop the timer STCTRL &= ~ENABLE; // Stop the timer
} }
int main(void)
{
systick_setting(); // SysTick setup
while (1)
{
}
}