Alternative fix for issue #532

This commit is contained in:
Roger Clark 2018-06-23 17:00:17 +10:00
parent 683b6d2796
commit 9d46a1c27d
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ extern "C" {
* @param us Number of microseconds to delay.
*/
static inline void delay_us(uint32 us) {
if (us==0)
{
return;
}
us *= STM32_DELAY_US_MULT;
/* fudge for function call overhead */