8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8619f2b commit 41f98f9Copy full SHA for 41f98f9
cores/arduino/RingBuffer.cpp
@@ -23,6 +23,7 @@
23
24
RingBuffer::RingBuffer( void )
25
{
26
+ _aucBuffer = (uint8_t*)dccm_malloc(UART_BUFFER_SIZE);
27
memset( _aucBuffer, 0, UART_BUFFER_SIZE ) ;
28
_iHead=0 ;
29
_iTail=0 ;
cores/arduino/RingBuffer.h
@@ -18,6 +18,7 @@
18
#define _RING_BUFFER_
19
20
#include <stdint.h>
21
+#include "dccm/dccm_alloc.h"
22
// Define constants and variables for buffering incoming serial data. We're
// using a ring buffer (I think), in which head is the index of the location
@@ -28,7 +29,7 @@
class RingBuffer
30
31
public:
- uint8_t _aucBuffer[UART_BUFFER_SIZE] ;
32
+ uint8_t *_aucBuffer;
33
int _iHead ;
34
int _iTail ;
35
bool _buffer_overflow ;
0 commit comments