1.1 --- a/tools/picctldisplaytest/src/picctldisplaytest.h Thu Apr 23 19:10:12 2009 +0200
1.2 +++ b/tools/picctldisplaytest/src/picctldisplaytest.h Thu Apr 23 20:22:04 2009 +0200
1.3 @@ -32,7 +32,8 @@
1.4 void print_cli_options();
1.5 int dec2bcd(int decimal);
1.6 int bcd2dec(int bcd);
1.7 -void signal_handler_IO (int status);
1.8 +void DecodeCMD ();
1.9 +void read_data();
1.10 bool write_gfx_ram(const unsigned char * buffer, int numbytes);
1.11
1.12 static const unsigned char CMD_DISP_CLEAR_SCREEN[] = {0xAA,0x10,0x00,0x00};
1.13 @@ -41,8 +42,20 @@
1.14 static const unsigned char CMD_GET_CLOCK_MEMORY[] = {0xAA,0x40,0x00,0x00};
1.15 static unsigned char CMD_SET_PWM1[] = {0xAA,0x45,0x00,0x01,0x00};
1.16 static unsigned char CMD_SET_PWM2[] = {0xAA,0x46,0x00,0x01,0x00};
1.17 +static unsigned char CMD_BOOT[] = {0xAA,0x80,0x00,0x00};
1.18 #define BAUDRATE B921600
1.19
1.20 +
1.21 +const unsigned char CMD_HDR_SYNC = 0;
1.22 +const unsigned char CMD_HDR_COMMAND = 1;
1.23 +const unsigned char CMD_HDR_LENGTH = 2;
1.24 +const unsigned char CMD_DATA_START = 4;
1.25 +
1.26 +const unsigned char CMD_SYNC_SEND = 0xAA;
1.27 +const unsigned char CMD_SYNC_RECV = 0x55;
1.28 +const unsigned char CMD_ESCAPE_BYTE = 0x42;
1.29 +
1.30 +
1.31 /*! \brief configuration set by command line */
1.32 struct config {
1.33 bool debug;