Declare and define ontime

This commit is contained in:
Sanyog Nevase Nevase 2024-09-22 21:05:33 +05:30
parent bee9001bd3
commit edacdd8b63
1 changed files with 1 additions and 2 deletions

View File

@ -49,6 +49,7 @@ void delay(int us) // DEFINING DELAY FUNCTION
}
void SystickHandler(void)
{ // SysTick interrupt handler
static int ontime = 0;
ontime++;
if (ontime < duty)
{
@ -114,5 +115,3 @@ int main(void) {
// Main loop does nothing; everything is handled in interrupts
}
}