The first thing I noticed after switching from AVR to STM32 was the absence of the familiar delay functions delay_us() and delay_ms(). Well, if they're missing, they're missing, I thought at the time, and whenever I needed a delay, I did it like this...