76 pinMode(host->hal_config.pdn_pin_no, OUTPUT);
77 digitalWrite(host->hal_config.pdn_pin_no, HIGH);
78 pinMode(host->hal_config.spi_cs_pin_no, OUTPUT);
79 digitalWrite(host->hal_config.spi_cs_pin_no, HIGH);
81 SPI.setClockDivider(SPI_CLOCK_DIV2);
82 SPI.setBitOrder(MSBFIRST);
83 SPI.setDataMode(SPI_MODE0);
86 host->cmd_fifo_wp = host->dl_buff_wp = 0;
128 digitalWrite(host->hal_config.spi_cs_pin_no, LOW);
129 SPI.transfer(
addr >> 16);
130 SPI.transfer(highByte(
addr));
131 SPI.transfer(lowByte(
addr));
140 digitalWrite(host->hal_config.spi_cs_pin_no, LOW);
141 SPI.transfer(0x80 | (
addr >> 16));
142 SPI.transfer(highByte(
addr));
143 SPI.transfer(lowByte(
addr));
185 return SPI.transfer(value);
199 SPI.transfer(value & 0xFF);
200 SPI.transfer((value >> 8) & 0xFF);
204 retVal = SPI.transfer(0);
205 retVal |= (
uint16_t)SPI.transfer(0) << 8;
223 SPI.transfer(value & 0xFF);
224 SPI.transfer((value >> 8) & 0xFF);
225 SPI.transfer((value >> 16) & 0xFF);
226 SPI.transfer((value >> 24) & 0xFF);
230 retVal = SPI.transfer(0);
231 retVal |= (
uint32_t)SPI.transfer(0) << 8;
232 retVal |= (
uint32_t)SPI.transfer(0) << 16;
233 retVal |= (
uint32_t)SPI.transfer(0) << 24;
246 digitalWrite(host->hal_config.spi_cs_pin_no, HIGH);
256 if (
length > getfreespace){
379 digitalWrite(host->hal_config.spi_cs_pin_no, LOW);
383 digitalWrite(host->hal_config.spi_cs_pin_no, HIGH);
394 digitalWrite(host->hal_config.spi_cs_pin_no, LOW);
396 SPI.transfer((
cmd>>8) & 0xff);
397 SPI.transfer((
cmd>>16) & 0xff);
398 digitalWrite(host->hal_config.spi_cs_pin_no, HIGH);
413 digitalWrite(host->hal_config.pdn_pin_no, LOW);
416 digitalWrite(host->hal_config.pdn_pin_no, HIGH);
421 digitalWrite(host->hal_config.pdn_pin_no, HIGH);
424 digitalWrite(host->hal_config.pdn_pin_no, LOW);
544 delayMicroseconds(15625);
547 return ((t1 - t0) * 64);
704 retval = (CMD_FIFO_SIZE - 4) - fullness;
726 if (
length > availablefreesize)
728 length = availablefreesize;
764 }
while(getfreespace < count);
796 if (
length > availablefreesize)
798 length = availablefreesize;
855 }
while ((cmdwrptr != cmdrdptr) || (cmdrdptr != 0));
856 host->cmd_fifo_wp = 0;
867 host->cmd_fifo_wp = 0;
893 host->dl_buff_wp = 0;
905 char8_t *pdst,charval;
906 int32_t CurrVal = value,tmpval,i;
907 char8_t tmparray[16],idx = 0;
909 Length = strlen(pSrc);
910 pdst = pSrc + Length;
928 tmpval = tmpval - CurrVal*10;
929 charval =
'0' + tmpval;
930 tmparray[idx++] = charval;
935 *pdst++ = tmparray[idx - i - 1];
962 writebyte = numchnls;
968 host->spichannel = numchnls;
969 host->spinumdummy = numdummy;
1018 if(NumbytetoWrite > FreeSpace)
1024 if(NumbytetoWrite > FreeSpace)
1026 TotalBytes = FreeSpace;
1042 if(secpartialchunk > 0)
1046 pFifo->
fifo_wp = secpartialchunk;
1084 uint32_t TotalBytes = Numbyte,currchunk = 0,FreeSpace;
1087 while(TotalBytes > 0)
1089 currchunk = TotalBytes;
1091 if(currchunk > FreeSpace)
1093 currchunk = FreeSpace;
1098 TotalBytes -= currchunk;
1168#if defined(FT811_ENABLE) || defined(FT813_ENABLE)
1169#define OTP_DATA_LEN 1172
1171static uint8_t OTP_DATA_U8 []={
1172 26,255,255,255,32,32,48,0,4,0,0,0,2,0,0,0,34,255,255,255,0,176,48,0,120,218,237,84,255,107,92,69,16,159,125,155,107,141,201,121,247,106,130,9,225,244,238,37,246,146,52,63,53,98,172,53,48,243,8,36,166,182,63,136,216,246,7,205,219,75,122,119,185,139,196,128,34,33,136,123,65,240,7,31,44,105,41,69,72,12,210,166,6,17,12,104,64,165,73,133,134,98,80,74,43,148,22,20,133,40,20,34,233,15,82,250,131,10,113,246,229,106,197,191,161,111,217,55,179,59,59,59,243,153,47,251,135,15,58,204,11,109,114,89,149,84,169,242,172,2,109,10,73,53,167,92,158,89,21,6,89,230,236,126,86,89,206,242,169,178,61,187,115,62,85,190,199,133,129,44,132,249,90,12,243,124,67,49,169,76,81,22,195,60,211,113,40,133,249,253,104,114,113,148,197,131,105,169,158,3,19,132,65,28,187,240,25,112,3,147,99,235,163,80,98,63,10,123,181,208,73,213,29,24,246,226,121,112,199,146,74,98,56,22,195,135,245,32,14,194,17,180,182,100,46,169,220,114,244,103,171,114,252,41,222,143,97,150,53,64,167,202,110,240,86,186,45,16,90,14,191,158,110,196,163,216,130,241,232,159,42,251,88,4,169,90,80,42,163,226,248,168,206,97,132,136,169,69,113,20,27,245,203,40,131,12,54,87,37,143,253,43,105,97,137,9,172,103,181,26,172,79,163,102,184,142,57,83,0,61,139,144,159,79,135,193,62,61,0,157,250,5,20,186,67,91,255,133,238,140,104,167,30,192,197,72,2,85,137,221,89,134,101,140,177,191,238,137,75,105,137,23,97,18,226,31,175,98,31,174,165,141,90,193,21,88,194,117,60,207,243,115,248,202,254,171,171,37,248,20,87,112,17,59,180,59,246,35,199,177,83,175,35,140,93,224,187,172,45,169,172,108,29,47,192,59,186,70,159,1,208,155,136,40,71,190,195,101,222,117,131,221,90,142,110,48,221,85,165,177,42,173,169,82,89,165,78,149,138,136,110,224,13,108,200,0,132,1,50,103,114,55,176,145,254,51,132,208,183,177,137,64,111,128,192,13,104,162,86,145,165,198,255,141,86,209,68,79,146,84,87,33,163,95,132,39,120,182,242,76,115,78,123,40,142,7,200,227,21,103,50,103,171,109,123,27,242,115,193,0,197,176,70,63,141,125,212,35,14,8,95,28,20,246,116,155,30,132,152,118,3,40,29,162,62,60,158,9,131,8,197,120,49,99,115,35,39,228,200,168,48,81,197,2,175,221,224,205,140,173,148,4,87,13,148,94,19,235,216,205,62,212,179,14,199,221,234,21,223,207,112,254,163,90,169,197,247,50,110,249,16,249,156,113,137,83,98,146,163,23,215,115,16,146,173,102,142,158,74,160,205,181,28,217,67,93,156,121,40,156,202,76,130,169,184,193,12,9,125,82,132,149,121,209,65,219,198,12,47,80,7,15,182,163,97,52,171,206,211,20,186,229,195,148,42,15,137,45,116,244,29,188,138,105,177,76,139,149,18,113,141,160,192,1,218,222,14,131,101,90,224,17,195,239,51,113,156,194,111,245,21,49,137,171,100,61,238,21,166,50,67,95,83,63,154,202,71,116,141,45,205,208,37,94,133,188,186,201,177,134,82,86,117,84,109,46,137,52,237,214,102,248,22,253,82,41,137,91,148,37,29,97,147,195,86,126,89,156,165,45,214,188,43,54,43,160,63,36,139,169,142,17,73,175,31,255,230,232,164,175,244,161,197,38,71,118,121,70,109,226,43,252,14,100,249,142,135,180,156,48,185,45,172,176,247,71,244,29,104,240,25,3,37,216,78,179,159,101,171,9,63,225,95,166,6,126,71,24,29,156,165,199,253,126,108,119,88,51,146,216,19,191,137,102,191,107,186,68,109,78,247,244,95,130,99,94,134,49,183,128,158,84,207,58,245,129,9,220,145,78,16,218,85,102,226,94,102,142,121,247,51,243,146,119,63,51,3,14,71,157,94,245,86,169,151,134,156,99,212,206,189,148,208,9,109,239,43,242,125,57,135,249,19,111,120,245,182,79,121,218,62,110,231,222,203,57,220,245,52,237,217,126,246,253,183,89,95,59,59,145,238,165,15,28,91,45,86,239,140,215,231,199,56,34,59,239,154,239,159,244,38,57,63,167,156,41,126,95,14,83,82,189,203,183,244,51,186,33,39,12,234,244,105,156,79,111,161,100,186,232,37,25,187,195,253,252,137,35,245,2,243,54,207,243,8,176,143,109,175,225,57,92,131,71,248,220,151,222,113,255,28,26,114,131,139,17,130,111,24,65,63,235,157,198,90,188,238,213,251,63,120,130,59,151,187,130,95,193,207,252,26,214,221,175,215,240,186,211,85,217,197,107,67,123,113,15,217,42,252,201,155,245,133,94,131,122,255,87,207,80,143,215,238,91,47,126,247,106,248,204,159,153,187,116,219,49,116,45,115,147,182,48,242,4,190,240,127,118,224,193,247,224,3,89,247,15,148,99,211,103,26,255,255,255,20,33,48,0,4,0,0,0,15,0,0,0,26,255,255,255,32,32,48,0,4,0,0,0,0,0,0,0};
1173#elif defined(BT815_ENABLE) || defined(BT816_ENABLE) || defined(BT81X_ENABLE)
1174#define OTP_DATA_LEN 2048
1176static uint8_t OTP_DATA_U8[] = {
1177 0x1c, 0xff, 0xff, 0xff, 0x24, 0x91, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0x22, 0xff, 0xff, 0xff, 0x00, 0x98, 0x30, 0x00, 0x78, 0xda, 0xed, 0x53, 0x5f, 0x4b, 0x54, 0x41, 0x14, 0x3f, 0xd7, 0x59, 0x57, 0xdd, 0xb6, 0xed, 0x8e, 0x84, 0x45, 0xb8, 0xb4, 0x77, 0x53, 0xae, 0x10, 0x52, 0x21, 0x9a, 0x49, 0xc9, 0x19, 0x2a, 0xb0, 0x2c, 0x0c, 0x7c, 0xc8, 0xde, 0x66, 0x76, 0xd7, 0x7b, 0x57, 0xef, 0x86, 0xf4, 0x16, 0xd2, 0xc3, 0x88, 0xaf, 0x13, 0xf7, 0x4d, 0x22, 0x0c, 0x43, 0x1f, 0x7a, 0x09, 0x5f, 0x83, 0xea, 0xa9, 0x0f, 0x10, 0x41, 0x4f, 0xf9, 0x90, 0xd1, 0x93, 0x82, 0xe0, 0xd2, 0x07, 0x70, 0x3b, 0x73, 0xf3, 0x4f, 0x14, 0xd1, 0x17, 0xd8, 0x33, 0x9c, 0x33, 0x67, 0xe6, 0xfc, 0xfb, 0xcd, 0xb9, 0xe7, 0x6e, 0x3b, 0xdb, 0x0e, 0x68, 0x13, 0x38, 0x3a, 0x2e, 0xf9, 0xca, 0x55, 0xf9, 0x68, 0x59, 0x81, 0x8e, 0x43, 0x57, 0xbd, 0x50, 0x9c, 0xd8, 0x57, 0x46, 0xfa, 0xa4, 0xd9, 0x7b, 0x5f, 0x59, 0xcd, 0xea, 0xf9, 0xc8, 0xfa, 0xfe, 0xf2, 0xcf, 0x47, 0x07, 0x9a, 0x91, 0x2c, 0x34, 0x41, 0x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x00, 0x1a, 0xff, 0xff, 0xff, 0xf0, 0x20, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0xff, 0xff, 0xff, 0x00, 0xa0, 0x30, 0x00, 0x78, 0xda, 0xed, 0x53, 0xcf, 0x4b, 0x14, 0x51, 0x1c, 0x7f, 0xe3, 0x13, 0xb7, 0x64, 0x91, 0x19, 0x4a, 0x5b, 0xc9, 0x95, 0x45, 0xb6, 0xb6, 0x61, 0x63, 0x31, 0x48, 0x10, 0x73, 0xe8, 0xad, 0x73, 0x68, 0x61, 0xc5, 0x40, 0xc1, 0xc3, 0x6a, 0x69, 0x0a, 0xba, 0x5a, 0x42, 0x4b, 0x18, 0x1d, 0xde, 0xe1, 0x49, 0x06, 0x1b, 0x6c, 0xac, 0x42, 0x10, 0x82, 0x08, 0x51, 0x97, 0x3a, 0x75, 0x30, 0x08, 0x3a, 0xf4, 0x9e, 0xa3, 0xae, 0x32, 0x3a, 0x42, 0x08, 0x56, 0x1b, 0x74, 0x88, 0x0e, 0x0b, 0x9d, 0xfa, 0x75, 0x69, 0xa7, 0xed, 0xbd, 0xd9, 0x59, 0xec, 0xd8, 0x1f, 0xb0, 0x5f, 0x98, 0x79, 0xdf, 0x1f, 0x9f, 0xef, 0xbc, 0xef, 0xf7, 0xf3, 0xfd, 0x0e, 0xf8, 0xd8, 0x84, 0xda, 0x10, 0x34, 0x42, 0xac, 0x09, 0xc9, 0xac, 0xac, 0x29, 0xfb, 0x7e, 0x13, 0xae, 0x89, 0x27, 0xc4, 0xe0, 0xae, 0xdf, 0xcc, 0xd0, 0xe3, 0xb8, 0x11, 0x37, 0xe1, 0x13, 0xd8, 0x87, 0x43, 0xec, 0x73, 0x54, 0x60, 0x0b, 0x51, 0x85, 0x72, 0xc4, 0xba, 0x62, 0xc2, 0x3d, 0xb0, 0xa9, 0x16, 0xf9, 0x79, 0x20, 0x33, 0xf0, 0x4e, 0x66, 0x02, 0x7f, 0x0c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xad, 0x93, 0x5d, 0xa5, 0xaa, 0x54, 0xa5, 0x2a, 0x55, 0xf9, 0x4f, 0xf9, 0xa0, 0xfd, 0x05, 0x52, 0xea, 0xc3, 0x13, 0x00, 0x1a, 0xff, 0xff, 0xff, 0xf0, 0x20, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x1a, 0xff, 0xff, 0xff, 0x00, 0xb0, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x80, 0x08, 0x16, 0x01, 0x00
1180static uint8_t OTP_DATA_U8[] = {
1181 0x1c, 0xff, 0xff, 0xff, 0x24, 0x91, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0x22, 0xff, 0xff, 0xff, 0x00, 0x98, 0x30, 0x00, 0x78, 0xda, 0xed, 0x14, 0x4d, 0x6c, 0x94, 0x45, 0xf4, 0xcd, 0x37, 0xcb, 0x5a, 0x4b, 0xdd, 0xee, 0x47, 0x14, 0x85, 0x74, 0xcd, 0x7e, 0x9f, 0xc5, 0x05, 0xba, 0x34, 0x26, 0x68, 0xc0, 0x04, 0xc9, 0x7b, 0x8b, 0x8d, 0x85, 0x4d, 0xb1, 0x41, 0x13, 0xb9, 0x60, 0xbe, 0xd9, 0x96, 0x6d, 0xb7, 0xbb, 0x52, 0xeb, 0xc9, 0x34, 0x8d, 0xbc, 0x6a, 0x34, 0x1e, 0xbe, 0xe4, 0x03, 0x53, 0x05, 0x8d, 0x25, 0x25, 0x69, 0x4b, 0x38, 0x68, 0x42, 0x20, 0x98, 0x10, 0x5b, 0x49, 0xdc, 0x00, 0x1e, 0x2c, 0x5c, 0xe0, 0x22, 0x09, 0x1e, 0x4c, 0x7a, 0x32, 0x24, 0x35, 0x21, 0x81, 0xcb, 0xfa, 0xe6, 0x63, 0xb1, 0xc6, 0xb3, 0x47, 0x66, 0x32, 0xf3, 0xde, 0xbc, 0x37, 0x6f, 0xde, 0xff, 0x5c, 0x77, 0x6e, 0x38, 0xc0, 0x61, 0x59, 0x71, 0x54, 0xca, 0x99, 0xb4, 0xc9, 0x54, 0xbf, 0x35, 0xc0, 0xd1, 0x50, 0xda, 0x4c, 0x1b, 0x57, 0x56, 0xce, 0x84, 0x41, 0x4e, 0x30, 0x4b, 0xcf, 0x19, 0x8b, 0x59, 0x3c, 0x53, 0xb5, 0x77, 0x1f, 0xde, 0xcf, 0x54, 0x1f, 0x61, 0x61, 0xa0, 0x87, 0xc2, 0x72, 0x2b, 0x86, 0x65, 0x79, 0x61, 0x38, 0x6d, 0xa2, 0x61, 0x3d, 0x1c, 0x96, 0x05, 0x8e, 0xc2, 0x48, 0x58, 0xde, 0x8e, 0x51, 0x29, 0x85, 0x7a, 0x78, 0x57, 0x56, 0x9b, 0xd7, 0x20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0, 0x20, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x1a, 0xff, 0xff, 0xff, 0x00, 0xb0, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x80, 0x08, 0x15, 0x01, 0x00
1199#if (!defined(ME800A_HV35R) && !defined(ME810A_HV35R) && !defined(ME812AU_WH50R) && !defined(ME813AU_WH50C) && !defined(ME810AU_WH70R) && !defined(ME811AU_WH70C))
1209 #if defined(FT811_ENABLE) || defined(FT813_ENABLE)
1213 #elif defined(BT815_ENABLE) || defined(BT816_ENABLE) || defined(BT81x_ENABLE)
1232 while(chipid != 0x7C)
1238 printf(
"VC1 register ID after wake up %x\n",chipid);
1251 while(engine_status != 0x00)
1253 if (engine_status & 0x01){
1254 printf(
"coprocessor engine is not ready \n");
1256 if (engine_status & 0x02){
1257 printf(
"touch engine is not ready \n");
1259 if (engine_status & 0x04){
1260 printf(
"audio engine is not ready \n");
1266 printf(
"All engines are ready \n");
1271#if defined(ME800A_HV35R)
1291#if (defined(FT800_ENABLE) || defined(FT810_ENABLE) ||defined(FT812_ENABLE))
1295#if defined(FT81X_ENABLE)
1308#ifdef ENABLE_ILI9488_HVGA_PORTRAIT
1324#ifdef ENABLE_SPI_QUAD
1326#elif ENABLE_SPI_DUAL
1343 SPI.setClockDivider(SPI_CLOCK_DIV2);
1344 SPI.setBitOrder(MSBFIRST);
1345 SPI.setDataMode(SPI_MODE0);
1378 else if(type==
LOAD){
1381 file = imageFile.
openfile(fileName);
#define REG_TOUCH_RZTHRESH
#define COLOR_RGB(red, green, blue)
static ft_uint32_t ft_uint8_t * buffer
static ft_uint32_t ft_uint8_t ft_uint32_t length
#define FIFO_BYTE_ALIGNMENT_MASK
static ft_void_t ft_uint32_t * cmd
#define Gpu_CoCmd_Dlstart
int32_t Gpu_Hal_Dec2Ascii(char8_t *pSrc, int32_t value)
uint32_t Fifo_Write(EVE_HalContext *host, Fifo_t *pFifo, uint8_t *buffer, uint32_t NumbytetoWrite)
void Fifo_Update(EVE_HalContext *host, Fifo_t *pFifo)
void Gpu_Hal_ResetDLBuffer(EVE_HalContext *host)
void EVE_Cmd_waitFlush(EVE_HalContext *host)
bool_t Gpu_Hal_Open(EVE_HalContext *host)
void Gpu_Hal_CheckCmdBuffer(EVE_HalContext *host, uint32_t count)
void Fifo_Write32(EVE_HalContext *host, Fifo_t *pFifo, uint32_t WriteWord)
void Gpu_Hal_RdMem(EVE_HalContext *host, uint32_t addr, uint8_t *buffer, uint32_t length)
void Fifo_WriteWait(EVE_HalContext *host, Fifo_t *pFifo, uint8_t *buffer, uint32_t Numbyte)
uint16_t Gpu_Cmdfifo_Freespace(EVE_HalContext *host)
bool_t Gpu_Hal_Init(Gpu_HalInit_t *halinit)
void Gpu_Hal_StartCmdTransfer(EVE_HalContext *host, GPU_TRANSFERDIR_T rw, uint16_t count)
uint8_t EVE_Cmd_waitFlush_status(EVE_HalContext *host)
uint32_t Fifo_GetFreeSpace(EVE_HalContext *host, Fifo_t *pFifo)
void Gpu_Hal_Updatecmdfifo(EVE_HalContext *host, uint32_t count)
void Gpu_Hal_DLSwap(EVE_HalContext *host, uint8_t DL_Swap_Type)
void Gpu_Hal_ResetCmdFifo(EVE_HalContext *host)
void Gpu_Hal_LoadImageToMemory(EVE_HalContext *host, char8_t *fileName, uint32_t destination, uint8_t type)
void Fifo_Init(Fifo_t *pFifo, uint32_t StartAddress, uint32_t Length, uint32_t HWReadRegAddress, uint32_t HWWriteRegAddress)
void Gpu_Hal_TransferString(EVE_HalContext *host, const char8_t *string)
const uint8_t DLCODE_BOOTUP[12]
#define GPU_81X_RESET_ACTIVE
#define Gpu_Hal_Transfer16
#define Gpu_Hal_WrMemFromFlash
#define GPU_TRANSFERDIR_T
#define Gpu_81X_ResetActive
#define GPU_81X_GPIO_DRIVE_STRENGTH_T
#define Gpu_Hal_EndTransfer
#define Gpu_81X_SelectSysCLK
#define GPU_81X_GPIO_GROUP_T
#define GPU_81X_PLL_FREQ_T
#define GPU_81X_PadDriveStrength
#define GPU_SPI_QUAD_CHANNEL
#define Gpu_Hal_Transfer8
#define GPU_SPI_SINGLE_CHANNEL
#define Gpu_CurrentFrequency
#define Gpu_ClockTrimming
#define GPU_SPI_NUMDUMMYBYTES
#define Gpu_81X_ResetRemoval
#define Gpu_Hal_WrCmdBuf_nowait
#define GPU_81X_RESET_REMOVAL
#define Gpu_PowerModeSwitch
#define Gpu_HostCommand_Ext3
#define GPU_SPI_DUAL_CHANNEL
#define GPU_SYSCLK_DEFAULT
#define Gpu_Hal_Transfer32
#define Gpu_Hal_WaitLogo_Finish
#define SPI_TWO_DUMMY_BYTE
#define GPU_SPI_NUMCHANNELS_T
#define GPU_81X_PowerOffComponents
#define Gpu_Hal_WrCmdBufFromFlash
#define pgm_read_byte_near(x)
#define Gpu_Hal_Powercycle
#define Gpu_PLL_FreqSelect
#define Gpu_Hal_StartTransfer
int openfile(const char *filename)
This file contains apis related to sdcard.