diff --git a/FlashDebug.jscript b/FlashDebug.jscript new file mode 100644 index 0000000..dea9eb1 --- /dev/null +++ b/FlashDebug.jscript @@ -0,0 +1,4 @@ +h +loadbin bin\Debug\MKS-TFT32.hex, 0 +r +q diff --git a/Inc/ui.h b/Inc/ui.h index 6a9c93a..10e1970 100644 --- a/Inc/ui.h +++ b/Inc/ui.h @@ -66,16 +66,20 @@ typedef struct SDCARD_INSERT, SDCARD_REMOVE, USBDRIVE_INSERT, - USBDRIVE_REMOVE + USBDRIVE_REMOVE, + SHOW_STATUS } ucEventID; union { unsigned int touchXY; } ucData; -} xEvent_t; +} xUIEvent_t; extern QueueHandle_t xUIEventQueue; -typedef void (*volatile eventProcessor_t) (xEvent_t *); +#define MAXSTATSIZE 320/8 +extern uint8_t statString[MAXSTATSIZE+1]; + +typedef void (*volatile eventProcessor_t) (xUIEvent_t *); extern eventProcessor_t processEvent; typedef enum { diff --git a/MKS-TFT32.ebp b/MKS-TFT32.ebp index d7dc001..8a37257 100644 --- a/MKS-TFT32.ebp +++ b/MKS-TFT32.ebp @@ -36,6 +36,11 @@ + + + + +