Hello, I need repeatitive timer tick of about 10 seconds either in the while loop or as separate callback function. How to create and initialize a long duration tick timer ?
void main(void)
{ repeatitive timer create and initialization_code;
while(1)
{
if(time_over_10sec)
{
//do something
}
//other operations
}
}
OR
void timer_tick_CB(){
// do something
}