Question
Can someone explain how to read these line ?
Hello everyone !
I'm new here and i wanted to know how these lines say please??
I wanted to have microsecond delay for my ultrasonic sensor.
Thanks for all your help!
void usDelay(uint32_t uSec)
{
if(uSec < 2) uSec = 2;
usTIM->ARR = uSec - 1;
usTIM->EGR = 1;
usTIM->SR &= ~1;
usTIM->CR1 |= 1;
while((usTIM->SR&0x0001) != 1);
usTIM->SR &= ~(0x0001);
}