Alternative fix for issue #532
This commit is contained in:
parent
683b6d2796
commit
9d46a1c27d
|
@ -46,6 +46,10 @@ extern "C" {
|
||||||
* @param us Number of microseconds to delay.
|
* @param us Number of microseconds to delay.
|
||||||
*/
|
*/
|
||||||
static inline void delay_us(uint32 us) {
|
static inline void delay_us(uint32 us) {
|
||||||
|
if (us==0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
us *= STM32_DELAY_US_MULT;
|
us *= STM32_DELAY_US_MULT;
|
||||||
|
|
||||||
/* fudge for function call overhead */
|
/* fudge for function call overhead */
|
||||||
|
|
Loading…
Reference in New Issue