|
@@ -25,7 +25,9 @@
|
25
|
25
|
#include "tft_string.h"
|
26
|
26
|
#include "tft_image.h"
|
27
|
27
|
|
28
|
|
-#define QUEUE_SIZE 8192
|
|
28
|
+#ifndef TFT_QUEUE_SIZE
|
|
29
|
+ #define TFT_QUEUE_SIZE 8192
|
|
30
|
+#endif
|
29
|
31
|
|
30
|
32
|
enum QueueTaskType : uint8_t {
|
31
|
33
|
TASK_END_OF_QUEUE = 0x00,
|
|
@@ -118,7 +120,7 @@ typedef struct __attribute__((__packed__)) {
|
118
|
120
|
|
119
|
121
|
class TFT_Queue {
|
120
|
122
|
private:
|
121
|
|
- static uint8_t queue[QUEUE_SIZE];
|
|
123
|
+ static uint8_t queue[TFT_QUEUE_SIZE];
|
122
|
124
|
static uint8_t *end_of_queue;
|
123
|
125
|
static uint8_t *current_task;
|
124
|
126
|
static uint8_t *last_task;
|