File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
hardware/arduino/sam/cores/arduino Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 21
21
22
22
RingBuffer::RingBuffer ( void )
23
23
{
24
- memset ( _aucBuffer, 0 , SERIAL_BUFFER_SIZE ) ;
24
+ memset ( ( void *) _aucBuffer, 0 , SERIAL_BUFFER_SIZE ) ;
25
25
_iHead=0 ;
26
26
_iTail=0 ;
27
27
}
Original file line number Diff line number Diff line change 25
25
// using a ring buffer (I think), in which head is the index of the location
26
26
// to which to write the next incoming character and tail is the index of the
27
27
// location from which to read.
28
- #define SERIAL_BUFFER_SIZE 64
28
+ #define SERIAL_BUFFER_SIZE 128
29
29
30
30
class RingBuffer
31
31
{
32
32
public:
33
- uint8_t _aucBuffer[SERIAL_BUFFER_SIZE] ;
34
- int _iHead ;
35
- int _iTail ;
33
+ volatile uint8_t _aucBuffer[SERIAL_BUFFER_SIZE] ;
34
+ volatile int _iHead ;
35
+ volatile int _iTail ;
36
36
37
37
public:
38
38
RingBuffer ( void ) ;
You can’t perform that action at this time.
0 commit comments