Skip to content
Snippets Groups Projects
Commit 58ca3be1 authored by Karl Andersson's avatar Karl Andersson Committed by Roxy-3D
Browse files

delayMicroseconds() cannot be called in critical section (#10535)

on the STM32 platform
parent 00dfaae8
Branches
Tags
No related merge requests found
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
static uint8_t LEDs[8] = { 0 }; static uint8_t LEDs[8] = { 0 };
#ifdef CPU_32_BIT #ifdef CPU_32_BIT
#define MS_DELAY() delayMicroseconds(7) // 32-bit processors need a delay to stabilize the signal void MS_DELAY() { DELAY_1US; } // 32-bit processors need a delay to stabilize the signal
#else #else
#define MS_DELAY() DELAY_3_NOP #define MS_DELAY() DELAY_3_NOP
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment