So i wanted to make sometigh to keep track of time, almost like a RTC but in mili-seconds and maybe even micro-seconds.
I never done sometigh like that with the timers so i started reading and decided to try to use System Tick since it seemed realy easy to implement.
My question is, is this a bad usage of System Tick? am i in some way, i guess hurting my uControler run time and interrupt execution?
i use the folowing to just get some kind of delay. No i don't like SysCtlDelay();, Also i itend to use this to check time lapses
void SysTickbegin(){
SysTickPeriodSet(120000);
SysTickIntRegister(SycTickInt);
SysTickIntEnable();
}
void SycTickInt(){
milis++;
}
void Wait(int time){
milis=0;
while(milis < time);
}