forked from Makuna/NeoPixelBus
sync instructions and data also
This commit is contained in:
@@ -106,6 +106,9 @@ static inline uint32_t get_ccount(void)
|
|||||||
static inline uint32_t esp8266_enter_critical()
|
static inline uint32_t esp8266_enter_critical()
|
||||||
{
|
{
|
||||||
uint32_t state;
|
uint32_t state;
|
||||||
|
|
||||||
|
__asm__ __volatile__("dsync ; isync");
|
||||||
|
|
||||||
RSIL(state);
|
RSIL(state);
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user