Skip to content

Commit baa675f

Browse files
committed
Cleaned up macros
1 parent 91a878b commit baa675f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

RingBuf.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
#ifndef RingBuf_h
88
#define RingBuf_h
99

10-
#include "Arduino.h"
10+
#ifdef ARDUINO
11+
#include <Arduino.h>
12+
#else
13+
#include <stdint.h>
14+
#endif
1115

1216
#ifndef __cplusplus
1317
#ifndef bool
14-
#define bool uint8_t
18+
#define bool uint8_t
1519
#endif
1620
#endif
1721

@@ -38,7 +42,7 @@
3842
#endif
3943

4044
#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);
4246

4347
#else
4448
#define RB_ATOMIC_START {

0 commit comments

Comments
 (0)