This commit is contained in:
moyuhai
2026-06-11 17:26:06 +08:00
parent bb769429e5
commit f0bbac3bb3
76 changed files with 35885 additions and 2093 deletions
+71 -69
View File
@@ -1,10 +1,10 @@
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 1
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 1
C51 COMPILER V9.60.7.0, COMPILATION OF MODULE TS_API
C51 COMPILER V9.60.0.0, COMPILATION OF MODULE TS_API
OBJECT MODULE PLACED IN .\hex\ts_api.obj
COMPILER INVOKED BY: D:\Program Files\Keil_v5\C51\BIN\C51.EXE TS_Lib\Sources\ts_api.c OMF2 OPTIMIZE(9,SIZE) BROWSE DEBUG
- PRINT(.\lst\ts_api.lst) TABS(2) OBJECT(.\hex\ts_api.obj)
COMPILER INVOKED BY: C:\keil5\C51\BIN\C51.EXE TS_Lib\Sources\ts_api.c OMF2 OPTIMIZE(9,SIZE) BROWSE DEBUG PRINT(.\lst\ts_
-api.lst) TABS(2) OBJECT(.\hex\ts_api.obj)
line level source
@@ -28,14 +28,16 @@ line level source
17 /*********************************************************************************************************
-************/
18 #include "TS_Lib\Includes\ts_configuration.h"
*** WARNING C329 IN LINE 117 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 118 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 119 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 120 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 121 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 122 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 123 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 124 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 125 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 126 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 127 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 143 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
*** WARNING C329 IN LINE 144 OF TS_Lib\Includes\ts_configuration.h: single-line comment contains line-continuation
19 #include "TS_Lib\Includes\ts_def.h"
20 #include "TS_Lib\Includes\ts_api.h"
21 #include "TS_Lib\Includes\ts_service.h"
@@ -60,10 +62,10 @@ line level source
TK_BASELINE_VALUE_SEQ
};
#endif
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 2
42 #endif
43 #if SUPPORT_WHEEL_SLIDER
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 2
44 code unsigned char TS_WHEEL_SLIDER_CH_SEQ[]=
45 {
46 WHEEL_SLIDER0_SEQ,
@@ -124,10 +126,10 @@ line level source
101 };
102 #else
code unsigned char AREA_CONFIRM_TIME_TAB[1]={0};
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 3
code unsigned int MASK_TAB[1]={0};
#endif
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 3
106 void TS_MS_ISR (void)
107 {
108 1 static unsigned char xdata ms_cnt = 0;
@@ -188,10 +190,10 @@ line level source
{
TSWheelSlider_LongTouchLimitTimer--;
}
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 4
#endif
167 1 #endif
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 4
168 1 if(TS_RefCHBaseLineAdjuTimer)
169 1 {
170 2 TS_RefCHBaseLineAdjuTimer--;
@@ -252,10 +254,10 @@ line level source
225 2 TKIF = TKIF5;
226 2 TS_Data[5].bVal[0] = TK5MSH;
227 2 TS_Data[5].bVal[1] = TK5MSL;
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 5
228 2 }
229 1
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 5
230 1 for(i = 0; i < 6; i++)
231 1 {
232 2 #if TK_FREQ_JUMP_EN
@@ -316,10 +318,10 @@ line level source
}
else
{
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 6
NowTKFreqIndex = 1;
TKCFG = TKDIV(TKDIV_VAL)|TKTMS(TKTMS_VAL);
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 6
}
}
#endif
@@ -380,10 +382,10 @@ line level source
348 2 DataMin = 0xFFFF;
349 2 for(j = 0; j < FILTER_COUNT; j++)
350 2 {
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 7
351 3 DataSum += TS_FilterBuf[i][j];
352 3 #if (FILTER_COUNT > 2)
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 7
353 3 if(TS_FilterBuf[i][j] > DataMax)
354 3 {
355 4 DataMax = TS_FilterBuf[i][j];
@@ -444,10 +446,10 @@ line level source
{
RefChDataBufIdx = 0;
}
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 8
RefChDataBuf[RefChDataBufIdx] = TS_PostData[OPENED_TS_COUNT];
}
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 8
}
#endif
417 #endif
@@ -508,10 +510,10 @@ line level source
{
if(!TS_AreaConfirmTimer[0])
{
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 9
int delta;
for(i = 0; i < TS_Cnt+1; i++)
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 9
{
delta = (int)TS_PostData[i] - (int)TS_RawData[i];
if((delta > NOISE_THRESHOLD) || (delta < -NOISE_THRESHOLD))
@@ -572,10 +574,10 @@ line level source
TS_BaseLineDataBak[i] = TS_BaseLineData[i];
#endif
536 4 #if (SUPPORT_KEY && SUPPORT_WHEEL_SLIDER)
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 10
537 4 if(i < KEY_CH_COUNT)
538 4 {
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 10
539 5 #if TK_SENSITIVE_AUTO_TRIM_EN
TK_TouchThdTrim(i);
#else
@@ -636,10 +638,10 @@ line level source
if(idx == 0) TLDAT0 &= ~(1<<mask_bit);
else TLDAT1 &= ~(1<<mask_bit);
}
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 11
break;
case LED_ALL_OFF:
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 11
TLDAT0 = 0;
TLDAT1 = 0;
break;
@@ -700,10 +702,10 @@ line level source
{
CalcTemp1 = (unsigned long int)TS_PostData[i] * (unsigned long int)TS_BaseLineData[0];
CalcTemp2 = (unsigned int)(CalcTemp1/TS_BaseLineData[i]);
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 12
CalcTemp3 = TS_PostData[i] + TS_BaseLineData[0] - CalcTemp2;
CalcTemp2 = (unsigned int)(CalcTemp1/CalcTemp3);
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 12
Delta = (int)TS_BaseLineData[0] - (int)CalcTemp2;
}
if(max_delta < Delta)
@@ -764,10 +766,10 @@ line level source
#endif
721 6 TS_AreaConfirmTimer[i] = FINGER_TOUCH_RELEASE_CONFIRM_TIME;
722 6 }
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 13
723 5 }
724 4 else
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 13
725 4 {
726 5 #if SUPPORT_ANTI_WATER_FUNCTION
if(i != AntiWaterModeGetMaxDeltaCh())
@@ -828,10 +830,10 @@ line level source
781 3 continue;
782 3 }
783 2 else
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 14
784 2 {
785 3 if(NowArea == AREA_FINGER_TOUCH)
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 14
786 3 {
787 4 TS_FirstAreaData[i] = TS_PostData[i];
788 4 TS_AreaConfirmTimerSet(i,AREA_FINGER_TOUCH);
@@ -892,10 +894,10 @@ line level source
if(KeysFlagSN == 0)
{
PanalCoverJudgeFlag = 1;
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 15
PanalCoverJudgeTimer = PANAL_COVER_JUDGE_TIME;
}
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 15
else
{
if((PanalToggleCount >= JUDGE_TK_NUM)||(TS_RefChAbnormalJudge()))
@@ -956,10 +958,10 @@ line level source
904 2 ActiveTouchType = 0;
905 2 }
906 1 }
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 16
907 #endif
908 #if SUPPORT_WHEEL_SLIDER
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 16
909 void TS_WheelSliderDeal(void)
910 {
911 1 unsigned char i;
@@ -1020,10 +1022,10 @@ line level source
966 2 {
967 3 if(Position != -1)
968 3 {
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 17
969 4 WheelSliderTouchFlag = 1;
970 4 TSWheelSlider_TouchConfirmTimer = WHEEL_SLIDER_TOUCH_CONFIRM_TIME;
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 17
971 4 }
972 3 else
973 3 {
@@ -1084,10 +1086,10 @@ line level source
for(i = TS_BaseCh; i < TS_BaseCh + WHEEL_SLIDER0_CH_COUNT; i++)
{
TS_FirstAreaData[i] = TS_PostData[i];
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 18
TS_BaseLineData[i] = TS_PostData[i];
}
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 18
WheelSliderTouchFlag = 0;
goto WHEEL_SLIDER_RELEASE;
}
@@ -1148,10 +1150,10 @@ line level source
TK_Debug_UartPutChar('\r');
TK_Debug_UartPutChar('\n');
#endif
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 19
1093 2 #if PRINT_WHEEL_SLIDER_RATE_EN
{
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 19
unsigned char DeltaRate;
DeltaRate = WheelSliderCapRateFilter/4;
TK_Debug_UartPutChar(WheelSliderMaxIdx + 0x30);
@@ -1212,10 +1214,10 @@ line level source
1152 1 TMSNU = 0;
1153 1 INT3EN =1;
1154 1
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 20
1155 1 TS_IO_init();
1156 1
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 20
1157 1
1158 1 TKCFG = TKDIV(TKDIV_VAL)|TKTMS(TKTMS_VAL);
1159 1 #if (TK_CHARGE_REF_SELECT == SOURCE_VDD)
@@ -1276,10 +1278,10 @@ line level source
1214 1 #endif
1215 1 TS_State = TS_INIT;
1216 1 TS_Init_Step = 0;
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 21
1217 1
1218 1 #if SUPPORT_KEY
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 21
1219 1 #if ANTI_SPEAKER_EN
RefChDataTimer = 0;
#endif
@@ -1340,10 +1342,10 @@ line level source
1276 3 if(ActiveTouchType != 1)
1277 3 {
1278 4 TS_WheelSliderDeal();
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 22
1279 4 }
1280 3 #endif
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 22
1281 3 #if SUPPORT_TOUCH_SLEEP_MODE
1282 3 if(!TS_StableFlag || !TS_SleepEn || (PCON & BIT2)) // 在仿真模式不进入STOP模式
1283 3 {
@@ -1404,10 +1406,10 @@ line level source
1338 3 TS_SetChannel(i,(TS_CH[TS_Index+i])+1);
1339 3 }
1340 2 else
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 23
1341 2 {
1342 3 TS_SetChannel(i,0);
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 23
1343 3 }
1344 2 }
1345 1 TKCON |= TKST(1);
@@ -1468,10 +1470,10 @@ line level source
1400 1 TMCON = TME(1);
1401 1 TMSNU = 127;
1402 1
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 24
1403 1 while(1)
1404 1 {
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 24
1405 2 if(TS_SampleComplete)
1406 2 {
1407 3 CKCON &= ~IHCKE;
@@ -1532,10 +1534,10 @@ line level source
1462 6 WakeUp_PThdVal[TS_Index+i] = TS_Data.wVal - SLEEP_TOUTH_THD;
1463 6 WakeUp_NThdVal[TS_Index+i] = TS_Data.wVal + SLEEP_TOUTH_THD;
1464 6 }
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 25
1465 5 else
1466 5 {
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 25
1467 6 if((TS_Data.wVal <= WakeUp_PThdVal[TS_Index+i])||(TS_Data.wVal >= WakeUp_NThdVal[TS_Index+i]))
1468 6 {
1469 7 goto SLEEP_EXIT;
@@ -1596,10 +1598,10 @@ line level source
1524 1 }
1525 #endif
1526 /*********************************************************************************************************
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 26
-************/
1527 #if SUPPORT_KEY
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 26
1528 #if GENERATE_TS_KEY_EN
#if GENERATE_DOUBLE_KEY_EN
typedef struct
@@ -1660,10 +1662,10 @@ line level source
#endif
void TS_GetKey(void)
{
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 27
static unsigned int KeyBak;
static bit LongFlag;
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 27
#if GENERATE_DOUBLE_KEY_EN
T_TogKeyInfo KeyInfo;
TS_GetTogKeyInfor(&KeyInfo);
@@ -1724,10 +1726,10 @@ line level source
LongFlag = 1;
TS_Key = KeyBak | KEY_LONG_START;
}
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 28
else
{
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 28
TS_Key = KeyBak | KEY_LONG;
}
TS_LongKeyTimer = TS_LONG_TIME;
@@ -1788,10 +1790,10 @@ line level source
if(!LongFlag)
{
TS_Key = KeyBak | KEY_BREAK;
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 29
}
else
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 29
{
TS_Key = KeyBak | KEY_LONG_BREAK;
}
@@ -1852,10 +1854,10 @@ line level source
}
else
{
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 30
TK_Debug_UartPutChar('s');
TK_Debug_UartPutChar('i');
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 30
TK_Debug_UartPutChar('n');
TK_Debug_UartPutChar('g');
TK_Debug_UartPutChar('l');
@@ -1916,15 +1918,15 @@ line level source
1833 /*********************************************************************************************************
-************/
1834
C51 COMPILER V9.60.0.0 TS_API 05/05/2026 17:41:52 PAGE 31
1835 /*********************************************************************************************************
-************/
C51 COMPILER V9.60.7.0 TS_API 07/03/2025 11:27:52 PAGE 31
1836 #endif
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 2294 ----
CODE SIZE = 2377 ----
CONSTANT SIZE = 53 ----
XDATA SIZE = 296 48
PDATA SIZE = ---- ----
@@ -1938,4 +1940,4 @@ MODULE INFORMATION: STATIC OVERLAYABLE
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 8 WARNING(S), 0 ERROR(S)
C51 COMPILATION COMPLETE. 10 WARNING(S), 0 ERROR(S)