From d62e9e09d1f6c049cd32d2ebe24aa9f780ba6470 Mon Sep 17 00:00:00 2001 From: Aaron Wisner Date: Tue, 28 Jun 2016 00:26:39 -0400 Subject: [PATCH] ESP8266 Support --- RingBuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RingBuf.h b/RingBuf.h index f7233d9..c31e981 100644 --- a/RingBuf.h +++ b/RingBuf.h @@ -34,7 +34,7 @@ #define xt_wsr_ps(state) __asm__ __volatile__("wsr %0,ps; isync" :: "a" (state) : "memory") #endif - #define RB_ATOMIC_START do { uint32_t _savedIS = xt_rsil(1) ; + #define RB_ATOMIC_START do { uint32_t _savedIS = xt_rsil(15) ; #define RB_ATOMIC_END xt_wsr_ps(_savedIS) ;} while(0); #else #error “This library only supports AVR and ESP8266 Boards.”