We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a878b commit baa675fCopy full SHA for baa675f
1 file changed
RingBuf.h
@@ -7,11 +7,15 @@
7
#ifndef RingBuf_h
8
#define RingBuf_h
9
10
-#include "Arduino.h"
+#ifdef ARDUINO
11
+ #include <Arduino.h>
12
+#else
13
+ #include <stdint.h>
14
+#endif
15
16
#ifndef __cplusplus
17
#ifndef bool
-#define bool uint8_t
18
+ #define bool uint8_t
19
#endif
20
21
@@ -38,7 +42,7 @@
38
42
39
43
40
44
#define RB_ATOMIC_START do { uint32_t _savedIS = xt_rsil(15) ;
41
- #define RB_ATOMIC_END xt_wsr_ps(_savedIS) ;} while(0);
45
+ #define RB_ATOMIC_END xt_wsr_ps(_savedIS); } while(0);
46
47
#else
48
#define RB_ATOMIC_START {
0 commit comments