|
|
@ -25,7 +25,9 @@
|
|
|
|
#include "tft_string.h"
|
|
|
|
#include "tft_string.h"
|
|
|
|
#include "tft_image.h"
|
|
|
|
#include "tft_image.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define QUEUE_SIZE 8192
|
|
|
|
#ifndef TFT_QUEUE_SIZE
|
|
|
|
|
|
|
|
#define TFT_QUEUE_SIZE 8192
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
enum QueueTaskType : uint8_t {
|
|
|
|
enum QueueTaskType : uint8_t {
|
|
|
|
TASK_END_OF_QUEUE = 0x00,
|
|
|
|
TASK_END_OF_QUEUE = 0x00,
|
|
|
@ -118,7 +120,7 @@ typedef struct __attribute__((__packed__)) {
|
|
|
|
|
|
|
|
|
|
|
|
class TFT_Queue {
|
|
|
|
class TFT_Queue {
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
static uint8_t queue[QUEUE_SIZE];
|
|
|
|
static uint8_t queue[TFT_QUEUE_SIZE];
|
|
|
|
static uint8_t *end_of_queue;
|
|
|
|
static uint8_t *end_of_queue;
|
|
|
|
static uint8_t *current_task;
|
|
|
|
static uint8_t *current_task;
|
|
|
|
static uint8_t *last_task;
|
|
|
|
static uint8_t *last_task;
|
|
|
|