lpcware

Delay Function in msec

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by superkato on Wed Apr 08 05:25:05 MST 2015
Hi,

does someone has a example for a simple delay function in milliseconds?

like:
Delay(1000); //1sec delay



void Delay(uint32_t msecs)
{
  while (msecs != 0)  
  {
    //do something with the systicktimer;
  }

}



Outcomes