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 2121
2222RingBuffer::RingBuffer ( void )
2323{
24- memset ( _aucBuffer, 0 , SERIAL_BUFFER_SIZE ) ;
24+ memset ( ( void *) _aucBuffer, 0 , SERIAL_BUFFER_SIZE ) ;
2525 _iHead=0 ;
2626 _iTail=0 ;
2727}
Original file line number Diff line number Diff line change 2525// using a ring buffer (I think), in which head is the index of the location
2626// to which to write the next incoming character and tail is the index of the
2727// location from which to read.
28- #define SERIAL_BUFFER_SIZE 64
28+ #define SERIAL_BUFFER_SIZE 128
2929
3030class RingBuffer
3131{
3232 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 ;
3636
3737 public:
3838 RingBuffer ( void ) ;
You can’t perform that action at this time.
0 commit comments