Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/format/app_mouse.format	(revision 589)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/format/app_mouse.format	(working copy)
@@ -332,6 +332,11 @@
 
 38 mem_sensor_8650_init_new
 2 mem_24g_pair_count
+
+2 mem_mouse_data_x_value
+2 mem_mouse_data_y_value
+2 mem_mouse_data_xy_value
+
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/eeprom.dat	(revision 597)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-0e
-0a
+06
+0c
 c2
 84
 00
@@ -43,51 +43,51 @@
 c0
 61
 81
-7d
+aa
 c0
 63
 81
-48
+6d
 c0
 64
 81
-4c
+71
 c0
 65
 01
-57
+7c
 c0
 66
 02
-51
+cf
 c0
 67
 02
-31
+73
 c0
 68
 01
-8c
+b9
 c0
 69
 81
-9d
+ca
 c0
 6b
 01
-60
+8d
 c0
 6c
 81
-b6
+e3
 c0
 6d
-01
-ee
+02
+30
 c0
 74
-01
-f9
+02
+3b
 20
 20
 13
@@ -102,32 +102,32 @@
 56
 c0
 43
-81
-f5
+82
+37
 c0
 50
 82
-0d
+4f
 c0
 54
 80
 8a
 c0
 71
-00
-e4
+01
+09
 c0
 74
-80
-eb
+81
+10
 c0
 75
 01
-05
+2a
 c0
 76
 02
-2e
+70
 20
 20
 13
@@ -623,7 +623,7 @@
 20
 40
 00
-c5
+ea
 20
 20
 3b
@@ -674,8 +674,8 @@
 ff
 20
 40
-3f
-1e
+00
+b1
 20
 40
 3d
@@ -707,11 +707,159 @@
 20
 40
 00
-b1
+d6
 20
 20
 3b
 f5
+68
+48
+c4
+c1
+20
+40
+60
+69
+20
+40
+79
+b4
+68
+48
+c9
+18
+20
+40
+3f
+56
+68
+48
+c9
+19
+20
+40
+3f
+56
+68
+48
+c9
+1a
+20
+40
+3f
+56
+68
+48
+c9
+0d
+20
+40
+3f
+56
+68
+48
+c9
+0e
+20
+40
+3f
+56
+68
+48
+c9
+0f
+20
+40
+3f
+56
+68
+48
+c9
+10
+20
+40
+3f
+56
+68
+48
+c9
+1b
+20
+40
+3f
+56
+68
+48
+c9
+12
+20
+40
+3f
+56
+68
+48
+c9
+13
+20
+40
+3f
+56
+68
+48
+c9
+14
+20
+40
+3f
+56
+68
+48
+c9
+1c
+20
+40
+3f
+56
+68
+48
+c9
+1d
+20
+40
+3f
+56
+68
+48
+c9
+11
+20
+40
+3f
+56
+68
+48
+c9
+1e
+20
+40
+3f
+56
+68
+48
+ca
+ab
+20
+40
+60
+69
+68
+48
+c9
+17
+20
+20
+3f
+56
 6f
 e0
 cb
@@ -747,7 +895,7 @@
 24
 20
 80
-bb
+e0
 20
 20
 3f
@@ -775,7 +923,7 @@
 20
 20
 80
-c2
+e7
 20
 20
 3f
@@ -795,7 +943,7 @@
 58
 00
 00
-c8
+ed
 67
 e1
 48
@@ -823,7 +971,7 @@
 c3
 0a
 80
-cf
+f4
 6f
 e0
 cb
@@ -842,8 +990,8 @@
 36
 c2
 80
-80
-de
+81
+03
 68
 48
 c7
@@ -954,8 +1102,8 @@
 ff
 c0
 00
-00
-f2
+01
+17
 6f
 e1
 48
@@ -982,12 +1130,12 @@
 5b
 24
 2c
-00
-f8
+01
+1d
 24
 37
-80
-f8
+81
+1d
 20
 40
 26
@@ -1055,11 +1203,11 @@
 24
 34
 01
-14
+39
 20
 40
 01
-28
+4d
 20
 40
 26
@@ -1071,7 +1219,7 @@
 24
 3a
 01
-0f
+34
 6f
 e4
 48
@@ -1115,7 +1263,7 @@
 20
 5a
 01
-1a
+3f
 6f
 e0
 c8
@@ -1187,7 +1335,7 @@
 20
 20
 01
-07
+2c
 70
 48
 a6
@@ -1215,11 +1363,11 @@
 24
 2c
 01
-37
+5c
 24
 37
 81
-37
+5c
 20
 40
 26
@@ -1227,7 +1375,7 @@
 20
 40
 01
-33
+58
 20
 20
 26
@@ -1239,7 +1387,7 @@
 24
 5a
 01
-9f
+cc
 70
 4b
 e1
@@ -1273,8 +1421,8 @@
 c8
 a4
 c2
-81
-26
+80
+a6
 79
 20
 40
@@ -1283,11 +1431,11 @@
 20
 40
 01
-41
+66
 20
 20
 01
-29
+4e
 6f
 e0
 c8
@@ -1295,7 +1443,7 @@
 1f
 e6
 7c
-01
+00
 20
 61
 00
@@ -1303,7 +1451,7 @@
 df
 20
 00
-64
+28
 20
 00
 2e
@@ -1376,42 +1524,74 @@
 20
 3e
 36
+20
+40
+3f
+88
+6f
+e0
+c9
+1f
+d8
+40
+00
+3f
+20
+40
+60
+93
+20
+40
+5b
+04
 68
 48
 c9
-13
+18
 20
 40
 60
-50
+36
 68
 48
 c9
-14
+19
 20
 40
 60
-50
+36
+68
+48
+c9
+1a
 20
 40
-3f
-88
-6f
-e0
+60
+36
+68
+48
 c9
-1f
-d8
+0d
+20
 40
-00
-3f
+60
+36
+68
+48
+c9
+0e
 20
 40
 60
-93
+36
+68
+48
+c9
+0f
 20
 20
-3e
-44
+60
+36
 1a
 62
 7e
@@ -1419,15 +1599,15 @@
 c0
 1e
 01
-78
+a5
 c0
 19
 01
-65
+92
 c0
 22
 01
-6c
+99
 20
 20
 43
@@ -1439,7 +1619,7 @@
 c0
 00
 81
-69
+96
 70
 4b
 76
@@ -1543,7 +1723,7 @@
 c0
 00
 01
-82
+af
 20
 20
 3d
@@ -1595,7 +1775,7 @@
 20
 40
 01
-8f
+bc
 20
 20
 40
@@ -1646,8 +1826,8 @@
 c1
 20
 3a
-01
-c4
+02
+06
 67
 e0
 cb
@@ -1675,7 +1855,7 @@
 c0
 18
 01
-a7
+d4
 c0
 18
 c2
@@ -1695,7 +1875,7 @@
 20
 20
 01
-a0
+cd
 6f
 e0
 c9
@@ -1703,7 +1883,7 @@
 c0
 2d
 01
-b0
+dd
 c0
 6c
 41
@@ -1731,7 +1911,7 @@
 20
 20
 01
-a0
+cd
 70
 49
 27
@@ -1758,12 +1938,16 @@
 8e
 20
 40
+01
+ee
+20
+40
 3e
 9b
 20
 40
 02
-6c
+ea
 20
 40
 23
@@ -1778,12 +1962,8 @@
 cd
 20
 40
-48
-be
-20
-40
-01
-c1
+02
+03
 20
 40
 40
@@ -1794,20 +1974,104 @@
 cc
 20
 40
-01
-d9
+02
+1b
 20
 20
 44
 c0
+6f
+e4
+4b
+ab
+c4
+10
+00
+00
+6f
+e0
+cb
+a7
+20
+7a
+00
+00
+1f
+e0
+ff
+ff
+67
+e0
+cb
+a7
+20
+3a
+01
+f7
+20
+40
+01
+f9
+20
+20
+49
+20
+20
+40
+01
+f9
+20
+20
+49
+12
+68
+48
+c9
+21
+20
+40
+60
+69
+68
+48
+c9
+15
+20
+40
+60
+69
+68
+48
+c9
+16
+20
+40
+60
+69
+68
+48
+c9
+22
+20
+40
+60
+69
+68
+48
+c9
+23
+20
+20
+60
+69
 da
 60
 4b
 a8
 da
 40
-01
-c4
+02
+06
 20
 20
 31
@@ -1862,12 +2126,12 @@
 03
 20
 41
-01
-d3
+02
+15
 24
 41
-01
-d7
+02
+19
 20
 20
 48
@@ -1902,8 +2166,8 @@
 38
 c0
 00
-01
-df
+02
+21
 6f
 e4
 4b
@@ -1918,8 +2182,8 @@
 ca
 20
 20
-01
-e2
+02
+24
 6f
 e4
 4b
@@ -1954,8 +2218,8 @@
 00
 20
 22
-81
-e9
+82
+2b
 20
 20
 44
@@ -2051,7 +2315,7 @@
 c0
 04
 82
-01
+43
 20
 20
 4d
@@ -2151,7 +2415,7 @@
 c0
 02
 02
-1a
+5c
 20
 20
 19
@@ -2167,7 +2431,7 @@
 c0
 09
 02
-1e
+60
 20
 20
 1c
@@ -2299,7 +2563,7 @@
 20
 40
 02
-3f
+81
 20
 20
 45
@@ -2339,7 +2603,7 @@
 58
 00
 00
-06
+03
 20
 40
 47
@@ -2355,7 +2619,7 @@
 58
 00
 00
-04
+02
 20
 40
 47
@@ -2370,36 +2634,276 @@
 c9
 c0
 00
-c7
-2d
+82
+94
+20
+40
+02
+95
 20
 20
 47
 28
-6f
-e0
-cb
-aa
-24
-7a
-00
-00
-20
-40
-00
-56
-70
-48
-f6
-00
 20
 40
-61
-25
-67
+47
+2d
+6f
 e1
 48
-e9
+d1
+68
+49
+4c
+0e
+98
+40
+84
+00
+60
+49
+4c
+0e
+60
+49
+4c
+12
+20
+40
+02
+b6
+67
+e1
+4c
+12
+68
+49
+4c
+0e
+98
+46
+7e
+00
+68
+49
+48
+d1
+24
+5a
+02
+b2
+60
+49
+48
+d1
+6f
+e1
+4c
+12
+67
+e1
+4c
+0e
+6f
+e1
+48
+d3
+68
+49
+4c
+10
+98
+40
+84
+00
+60
+49
+4c
+10
+60
+49
+4c
+12
+20
+40
+02
+b6
+67
+e1
+4c
+12
+68
+49
+4c
+10
+98
+46
+7e
+00
+68
+49
+48
+d3
+24
+5a
+02
+b2
+60
+49
+48
+d3
+6f
+e1
+4c
+12
+67
+e1
+4c
+10
+20
+60
+00
+00
+98
+40
+84
+00
+58
+00
+00
+00
+67
+e1
+4c
+12
+20
+60
+00
+00
+6f
+e0
+cc
+13
+20
+3a
+02
+b9
+20
+20
+02
+be
+6f
+e0
+cc
+12
+20
+40
+02
+c8
+67
+e0
+cc
+12
+6f
+e1
+4c
+12
+20
+60
+00
+00
+6f
+e0
+cc
+12
+20
+40
+47
+ab
+20
+40
+02
+c8
+20
+5a
+7e
+5e
+20
+40
+02
+c4
+20
+20
+02
+bc
+20
+40
+47
+ac
+1f
+e6
+7e
+00
+67
+e0
+cc
+12
+20
+60
+00
+00
+1f
+e6
+7c
+02
+20
+61
+00
+00
+1f
+ef
+fe
+04
+1f
+e6
+fc
+03
+20
+40
+7d
+ef
+18
+07
+fe
+00
+20
+60
+00
+00
+6f
+e0
+cb
+aa
+24
+7a
+00
+00
+20
+40
+00
+56
+70
+48
+f6
+00
+20
+40
+61
+25
+67
+e1
+48
+e9
 d8
 40
 00
@@ -2411,7 +2915,7 @@
 24
 21
 02
-6a
+e8
 6f
 e0
 c4
@@ -2419,7 +2923,7 @@
 c0
 81
 02
-62
+e0
 68
 49
 48
@@ -2576,8 +3080,8 @@
 60
 00
 00
-5c
-47
+72
+ce
 aa
 55
 40
@@ -2727,7 +3231,7 @@
 07
 80
 03
-01
+03
 aa
 55
 0c
@@ -2752,8 +3256,8 @@
 00
 0d
 49
-0b
 0c
+0b
 0d
 ff
 ff
@@ -3559,768 +4063,264 @@
 39
 4a
 b0
-4b
-a0
-4c
-90
-4d
-70
-09
-00
-ff
-ff
-09
-5a
-06
-02
-09
-69
-0d
-48
-0e
-9f
-0f
-ba
-09
-00
-ff
-ff
-aa
-55
-08
-00
-a3
-4a
-09
-5a
-0b
-f3
-09
-00
-ff
-ff
-aa
-55
-02
-00
-8d
-44
-2d
-49
-aa
-55
-01
-00
-8c
-44
-01
-aa
-55
-01
-00
-65
-48
-02
-aa
-55
-01
-00
-64
-48
-02
-aa
-55
-01
-00
-36
-48
-01
-aa
-55
-01
-00
-a8
-48
-06
-aa
-55
-02
-00
-38
-48
-c0
-12
-aa
-55
-03
-00
-54
-48
-19
-19
-1c
-aa
-55
-10
-00
-40
-48
-00
-13
-2c
-42
-06
-15
-36
-48
-0f
-1a
-3a
-4c
-11
-23
-31
-4d
-aa
-55
-01
-00
-5b
-48
-00
-aa
-55
-05
-00
-77
-48
-20
-15
-10
-05
-4e
-aa
-55
-05
-00
-8c
-48
-01
-0f
-0f
-0f
-0f
-aa
-55
-06
-00
-ad
-48
-0c
-f8
-00
-00
-77
-01
-aa
-55
-03
-00
-5c
-48
-00
-48
-60
-aa
-55
-01
-00
-7d
-48
-07
-aa
-55
-02
-00
-99
-48
-b5
-4a
-aa
-55
-01
-00
-ca
-48
-80
-aa
-55
-02
-00
-c2
-48
-14
-00
-aa
-55
-02
-00
-c0
-48
-50
-00
-aa
-55
-03
-00
-b8
-48
-00
-a6
-0e
-aa
-55
-03
-00
-b8
-49
-00
-50
-00
-aa
-55
-02
-00
-79
-44
-80
-1f
-aa
-55
-01
-00
-83
-44
-80
-aa
-55
-01
-00
-e8
-41
-01
-55
-aa
-aa
-55
-29
-7a
-49
-d4
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+4b
+a0
+4c
+90
+4d
+70
+09
+00
 ff
 ff
+09
+5a
+06
+02
+09
+69
+0d
+48
+0e
+9f
+0f
+ba
+09
+00
 ff
 ff
+aa
+55
+08
+00
+a3
+4a
+09
+5a
+0b
+f3
+09
+00
 ff
 ff
+aa
+55
+02
+00
+8d
+44
+2d
+49
+aa
+55
+01
+00
+8c
+44
+01
+aa
+55
+01
+00
+65
+48
+02
+aa
+55
+01
+00
+64
+48
+02
+aa
+55
+01
+00
+36
+48
+01
+aa
+55
+01
+00
+a8
+48
+06
+aa
+55
+02
+00
+38
+48
+c0
+12
+aa
+55
+03
+00
+54
+48
+19
+19
+1c
+aa
+55
+10
+00
+40
+48
+00
+13
+2c
+42
+06
+15
+36
+48
+0f
+1a
+3a
+4c
+11
+23
+31
+4d
+aa
+55
+01
+00
+5b
+48
+00
+aa
+55
+05
+00
+77
+48
+20
+15
+10
+05
+4e
+aa
+55
+05
+00
+8c
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+06
+00
+ad
+48
+0c
+f8
+00
+00
+77
+01
+aa
+55
+03
+00
+5c
+48
+00
+48
+60
+aa
+55
+01
+00
+7d
+48
+07
+aa
+55
+02
+00
+99
+48
+b5
+4a
+aa
+55
+01
+00
+ca
+48
+80
+aa
+55
+02
+00
+c2
+48
+14
+00
+aa
+55
+02
+00
+c0
+48
+50
+00
+aa
+55
+03
+00
+b8
+48
+00
+a6
+0e
+aa
+55
+03
+00
+b8
+49
+00
+50
+00
+aa
+55
+02
+00
+79
+44
+80
+1f
+aa
+55
+01
+00
+83
+44
+80
+aa
+55
+01
+00
+e8
+41
+01
+55
+aa
+aa
+55
+2b
+7a
+b6
+fb
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-f9
-4e
+1f
+e3
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/memmap.format	(revision 589)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/memmap.format	(working copy)
@@ -2209,6 +2209,9 @@
 0x4be5 mem_sensor_angle_connect_vin
 0x4be6 mem_sensor_8650_init_new
 0x4c0c mem_24g_pair_count
+0x4c0e mem_mouse_data_x_value
+0x4c10 mem_mouse_data_y_value
+0x4c12 mem_mouse_data_xy_value
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/program.lis	(revision 597)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/program.lis	(working copy)
@@ -9,30 +9,30 @@
 0006 c04f8090 beq patch13_7 ,p_init_param 
 0007 c0570092 beq patch15_6 ,p_app_init 
 0008 c0580071 beq patch16_0 ,p_app_evt_100ms_loop 
-0009 c061817d beq patch18_3 ,p_mouse_start_work 
-000a c0638148 beq patch18_7 ,p_mouse_app_enter_hibernate 
-000b c064814c beq patch19_1 ,p_mouse_setgpio_hibernate 
-000c c0650157 beq patch19_2 ,p_mouse_lpm_before_common 
-000d c0660251 beq patch19_4 ,p_mouse_adc_read_start 
-000e c0670231 beq patch19_6 ,p_mouse_motion 
-000f c068018c beq patch1a_0 ,p_mouse_seting_dpi 
-0010 c069819d beq patch1a_3 ,p_mouse_init_sunt 
-0011 c06b0160 beq patch1a_6 ,p_mouse_priority_bb_event 
-0012 c06c81b6 beq patch1b_1 ,p_mouse_bb_event_timer 
-0013 c06d01ee beq patch1b_2 ,p_mouse_start_discovery 
-0014 c07401f9 beq patch1d_0 ,p_hid_rx_process 
+0009 c06181aa beq patch18_3 ,p_mouse_start_work 
+000a c063816d beq patch18_7 ,p_mouse_app_enter_hibernate 
+000b c0648171 beq patch19_1 ,p_mouse_setgpio_hibernate 
+000c c065017c beq patch19_2 ,p_mouse_lpm_before_common 
+000d c06602cf beq patch19_4 ,p_mouse_adc_read_start 
+000e c0670273 beq patch19_6 ,p_mouse_motion 
+000f c06801b9 beq patch1a_0 ,p_mouse_seting_dpi 
+0010 c06981ca beq patch1a_3 ,p_mouse_init_sunt 
+0011 c06b018d beq patch1a_6 ,p_mouse_priority_bb_event 
+0012 c06c81e3 beq patch1b_1 ,p_mouse_bb_event_timer 
+0013 c06d0230 beq patch1b_2 ,p_mouse_start_discovery 
+0014 c074023b beq patch1d_0 ,p_hid_rx_process 
 0015 2020137c branch loop 
 
 pf_patch_ext:
 0016 c0198051 beq patch26_3 ,p_adc_init_data 
 0017 c01a0056 beq patch26_4 ,p_enable_adc 
-0018 c04381f5 beq patch30_7 ,p_ui_timer_check 
-0019 c050820d beq patch34_1 ,p_le_slave_match 
+0018 c0438237 beq patch30_7 ,p_ui_timer_check 
+0019 c050824f beq patch34_1 ,p_le_slave_match 
 001a c054808a beq patch35_1 ,p_le_enable 
-001b c07100e4 beq patch3c_2 ,p_g24_pair_dispatch 
-001c c07480eb beq patch3d_1 ,p_g24_reconn_dispatch 
-001d c0750105 beq patch3d_2 ,p_g24_transmit_no_interrupt 
-001e c076022e beq patch3d_4 ,p_g24_lpm_wait 
+001b c0710109 beq patch3c_2 ,p_g24_pair_dispatch 
+001c c0748110 beq patch3d_1 ,p_g24_reconn_dispatch 
+001d c075012a beq patch3d_2 ,p_g24_transmit_no_interrupt 
+001e c0760270 beq patch3d_4 ,p_g24_lpm_wait 
 001f 2020137c branch loop 
 
 p_soft_reset:
@@ -186,7 +186,7 @@
 0097 2040408e call mouse_dpi_config 
 0098 20403d8a call mouse_usb_check_enable 
 0099 20404728 call mouse_drawing_optima_init 
-009a 204000c5 call p_mouse_cb_fuction 
+009a 204000ea call p_mouse_cb_fuction 
 009b 20203bc8 branch mouse_init + 7 
 
 p_mouse_wheel_set_wakeup:
@@ -203,7 +203,7 @@
 00a4 20758000 rtn wake 
 00a5 20402607 call g24_transmit_init 
 00a6 204022ff call g24_chmap_param_init 
-00a7 20403f1e call mouse_gpio_init 
+00a7 204000b1 call p_mouse_gpio_init 
 00a8 20403d13 call mouse_param_init 
 00a9 58010680 setarg 67200 
 00aa 67e1c8ad store 3 ,mem_24g_short_sleep_set 
@@ -211,600 +211,752 @@
 00ac 67e14885 store 2 ,mem_24g_reconn_timeout_init 
 00ad d8401e00 arg 0x1e00 ,temp 
 00ae 60494838 storet 2 ,mem_24g_rx_window 
-00af 204000b1 call p_mouse_sensor_set_angle 
+00af 204000d6 call p_mouse_sensor_set_angle 
 00b0 20203bf5 branch mouse_setting_config + 5 
 
+p_mouse_gpio_init:
+00b1 6848c4c1 fetcht 1 ,mem_eeprom_wp_gpio 
+00b2 20406069 call gpio_config_output 
+00b3 204079b4 call usb_offline_check_init 
+00b4 6848c918 fetcht 1 ,mem_lbutton_gpio 
+00b5 20403f56 call mouse_gpio_config_input_pu 
+00b6 6848c919 fetcht 1 ,mem_rbutton_gpio 
+00b7 20403f56 call mouse_gpio_config_input_pu 
+00b8 6848c91a fetcht 1 ,mem_mbutton_gpio 
+00b9 20403f56 call mouse_gpio_config_input_pu 
+00ba 6848c90d fetcht 1 ,mem_bk_button_gpio 
+00bb 20403f56 call mouse_gpio_config_input_pu 
+00bc 6848c90e fetcht 1 ,mem_fw_button_gpio 
+00bd 20403f56 call mouse_gpio_config_input_pu 
+00be 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+00bf 20403f56 call mouse_gpio_config_input_pu 
+00c0 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00c1 20403f56 call mouse_gpio_config_input_pu 
+00c2 6848c91b fetcht 1 ,mem_config_select_device_button_gpio 
+00c3 20403f56 call mouse_gpio_config_input_pu 
+00c4 6848c912 fetcht 1 ,mem_customer_key_gpio 
+00c5 20403f56 call mouse_gpio_config_input_pu 
+00c6 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+00c7 20403f56 call mouse_gpio_config_input_pu 
+00c8 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+00c9 20403f56 call mouse_gpio_config_input_pu 
+00ca 6848c91c fetcht 1 ,mem_whee_ta_data_gpio 
+00cb 20403f56 call mouse_gpio_config_input_pu 
+00cc 6848c91d fetcht 1 ,mem_whee_tb_data_gpio 
+00cd 20403f56 call mouse_gpio_config_input_pu 
+00ce 6848c911 fetcht 1 ,mem_sensor_motion_gpio 
+00cf 20403f56 call mouse_gpio_config_input_pu 
+00d0 6848c91e fetcht 1 ,mem_device_switch_gpio 
+00d1 20403f56 call mouse_gpio_config_input_pu 
+00d2 6848caab fetcht 1 ,mem_sensor_reset_gpio 
+00d3 20406069 call gpio_config_output 
+00d4 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+00d5 20203f56 branch mouse_gpio_config_input_pu 
+
 p_mouse_sensor_set_angle:
-00b1 6fe0cbe3 fetch 1 ,mem_sensor_angle_connect_gnd 
-00b2 67e0c928 store 1 ,mem_config_sensor_angle 
-00b3 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-00b4 c17f8000 rtneq gpio_disable 
-00b5 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-00b6 20403f56 call mouse_gpio_config_input_pu 
-00b7 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-00b8 20406059 call gpio_get_bit 
-00b9 242080bb nbranch p_mouse_sensor_switch_angle_next ,true 
-00ba 20203f54 branch mouse_gpio_config_input_pd 
+00d6 6fe0cbe3 fetch 1 ,mem_sensor_angle_connect_gnd 
+00d7 67e0c928 store 1 ,mem_config_sensor_angle 
+00d8 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+00d9 c17f8000 rtneq gpio_disable 
+00da 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+00db 20403f56 call mouse_gpio_config_input_pu 
+00dc 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+00dd 20406059 call gpio_get_bit 
+00de 242080e0 nbranch p_mouse_sensor_switch_angle_next ,true 
+00df 20203f54 branch mouse_gpio_config_input_pd 
 
 p_mouse_sensor_switch_angle_next:
-00bb 6fe0cbe5 fetch 1 ,mem_sensor_angle_connect_vin 
-00bc 67e0c928 store 1 ,mem_config_sensor_angle 
-00bd 20403f54 call mouse_gpio_config_input_pd 
-00be 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-00bf 20406059 call gpio_get_bit 
-00c0 202080c2 branch p_mouse_sensor_switch_angle_impedance ,true 
-00c1 20203f56 branch mouse_gpio_config_input_pu 
+00e0 6fe0cbe5 fetch 1 ,mem_sensor_angle_connect_vin 
+00e1 67e0c928 store 1 ,mem_config_sensor_angle 
+00e2 20403f54 call mouse_gpio_config_input_pd 
+00e3 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+00e4 20406059 call gpio_get_bit 
+00e5 202080e7 branch p_mouse_sensor_switch_angle_impedance ,true 
+00e6 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_sensor_switch_angle_impedance:
-00c2 6fe0cbe4 fetch 1 ,mem_sensor_angle_high_impedance 
-00c3 67e0c928 store 1 ,mem_config_sensor_angle 
-00c4 20203f58 branch mouse_gpio_set_high_impedance 
+00e7 6fe0cbe4 fetch 1 ,mem_sensor_angle_high_impedance 
+00e8 67e0c928 store 1 ,mem_config_sensor_angle 
+00e9 20203f58 branch mouse_gpio_set_high_impedance 
 
 p_mouse_cb_fuction:
-00c5 580000c8 setarg p_mouse_24g_package_data 
-00c6 67e1489b store 2 ,mem_cb_24g_transmit_data 
-00c7 20203bd1 branch mouse_cb_fuction + 2 
+00ea 580000ed setarg p_mouse_24g_package_data 
+00eb 67e1489b store 2 ,mem_cb_24g_transmit_data 
+00ec 20203bd1 branch mouse_cb_fuction + 2 
 
 p_mouse_24g_package_data:
-00c8 c6930000 rtnmark0 mark_24g 
-00c9 20403f70 call mouse_motion 
-00ca 24740000 nrtn user 
-00cb 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00cc c30a80cf bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-00cd 6fe0cb8b fetch 1 ,mem_customer_key 
-00ce 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
+00ed c6930000 rtnmark0 mark_24g 
+00ee 20403f70 call mouse_motion 
+00ef 24740000 nrtn user 
+00f0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00f1 c30a80f4 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+00f2 6fe0cb8b fetch 1 ,mem_customer_key 
+00f3 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-00cf 204042cb call mouse_data_xy_release 
-00d0 6fe0c836 fetch 1 ,mem_24g_data_type 
-00d1 c28080de bbit1 1 ,p_mouse_24g_mouse_package_data_now 
-00d2 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
-00d3 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00d4 9841fe00 ior temp ,pdata 
-00d5 67e0c8d0 store 1 ,mem_mouse_key 
-00d6 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
-00d7 6fe0c8d5 fetch 1 ,mem_mouse_z 
-00d8 9840fe00 iadd temp ,pdata 
-00d9 67e0c8d5 store 1 ,mem_mouse_z 
-00da 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
-00db 6fe0c8d6 fetch 1 ,mem_mouse_tz 
-00dc 9840fe00 iadd temp ,pdata 
-00dd 67e0c8d6 store 1 ,mem_mouse_tz 
+00f4 204042cb call mouse_data_xy_release 
+00f5 6fe0c836 fetch 1 ,mem_24g_data_type 
+00f6 c2808103 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
+00f7 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
+00f8 6fe0c8d0 fetch 1 ,mem_mouse_key 
+00f9 9841fe00 ior temp ,pdata 
+00fa 67e0c8d0 store 1 ,mem_mouse_key 
+00fb 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
+00fc 6fe0c8d5 fetch 1 ,mem_mouse_z 
+00fd 9840fe00 iadd temp ,pdata 
+00fe 67e0c8d5 store 1 ,mem_mouse_z 
+00ff 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
+0100 6fe0c8d6 fetch 1 ,mem_mouse_tz 
+0101 9840fe00 iadd temp ,pdata 
+0102 67e0c8d6 store 1 ,mem_mouse_tz 
 
 p_mouse_24g_mouse_package_data_now:
-00de 70483601 jam type_ms ,mem_24g_data_type 
-00df da200007 arg 7 ,rega 
-00e0 da4048d0 arg mem_mouse_key ,regb 
-00e1 6fe148d5 fetch 2 ,mem_mouse_z 
-00e2 207a0000 rtn blank 
-00e3 202026e1 branch g24_transmit_by_interrupt_enable 
+0103 70483601 jam type_ms ,mem_24g_data_type 
+0104 da200007 arg 7 ,rega 
+0105 da4048d0 arg mem_mouse_key ,regb 
+0106 6fe148d5 fetch 2 ,mem_mouse_z 
+0107 207a0000 rtn blank 
+0108 202026e1 branch g24_transmit_by_interrupt_enable 
 
 p_g24_pair_dispatch:
-00e4 6fe14c0c fetch 2 ,mem_24g_pair_count 
-00e5 1fe0fe01 increase 1 ,pdata 
-00e6 67e14c0c store 2 ,mem_24g_pair_count 
-00e7 6fe0cc0c fetch 1 ,mem_24g_pair_count 
-00e8 1fe17eff and pdata ,0xff ,pdata 
-00e9 c0002341 beq 0 ,g24_pair_dispatch + 1 
-00ea 20600000 rtn 
+0109 6fe14c0c fetch 2 ,mem_24g_pair_count 
+010a 1fe0fe01 increase 1 ,pdata 
+010b 67e14c0c store 2 ,mem_24g_pair_count 
+010c 6fe0cc0c fetch 1 ,mem_24g_pair_count 
+010d 1fe17eff and pdata ,0xff ,pdata 
+010e c0002341 beq 0 ,g24_pair_dispatch + 1 
+010f 20600000 rtn 
 
 p_g24_reconn_dispatch:
-00eb 6fe14889 fetch 2 ,mem_24g_reconn_count 
-00ec 1fe17eff and pdata ,0xff ,pdata 
-00ed c00000f2 beq 0 ,p_g24_reconn_dispatch_next 
-00ee 6fe14889 fetch 2 ,mem_24g_reconn_count 
-00ef 1fe0fe01 increase 1 ,pdata 
-00f0 67e14889 store 2 ,mem_24g_reconn_count 
-00f1 20600000 rtn 
+0110 6fe14889 fetch 2 ,mem_24g_reconn_count 
+0111 1fe17eff and pdata ,0xff ,pdata 
+0112 c0000117 beq 0 ,p_g24_reconn_dispatch_next 
+0113 6fe14889 fetch 2 ,mem_24g_reconn_count 
+0114 1fe0fe01 increase 1 ,pdata 
+0115 67e14889 store 2 ,mem_24g_reconn_count 
+0116 20600000 rtn 
 
 p_g24_reconn_dispatch_next:
-00f2 2040259a call g24_reconn_data_prep 
-00f3 2040265b call g24_transmit_receive_ack 
-00f4 242c00f8 nbranch p_g24_reconn_device_fail ,sync 
-00f5 243780f8 nbranch p_g24_reconn_device_fail ,user3 
-00f6 20402672 call g24_ackpayload_parse 
-00f7 20202586 branch g24_reconn_receiver_succ 
+0117 2040259a call g24_reconn_data_prep 
+0118 2040265b call g24_transmit_receive_ack 
+0119 242c011d nbranch p_g24_reconn_device_fail ,sync 
+011a 2437811d nbranch p_g24_reconn_device_fail ,user3 
+011b 20402672 call g24_ackpayload_parse 
+011c 20202586 branch g24_reconn_receiver_succ 
 
 p_g24_reconn_device_fail:
-00f8 6fe0c88c fetch 1 ,mem_24g_fast_conn_enable 
-00f9 203a22cb branch g24_ch ,blank 
-00fa 6fe14889 fetch 2 ,mem_24g_reconn_count 
-00fb 1fe0fe01 increase 1 ,pdata 
-00fc 67e14889 store 2 ,mem_24g_reconn_count 
-00fd 6fe0c88a fetch 1 ,mem_24g_reconn_count + 1 
-00fe 2feffe00 isolate1 0 ,pdata 
-00ff 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-0100 c000a5ad beq fast_conn_and_receiver ,g24_reconn_fast_conn_and_receiver 
-0101 c00125af beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn_and_3_0 
-0102 c001a5b1 beq receiver_and_3_0_addr ,g24_reconn_receiver_and_3_0 
-0103 c00225b3 beq pair_and_3_0_addr ,g24_reconn_pair_and_3_0 
-0104 2020256e branch g24_reconn_receiver_addr 
+011d 6fe0c88c fetch 1 ,mem_24g_fast_conn_enable 
+011e 203a22cb branch g24_ch ,blank 
+011f 6fe14889 fetch 2 ,mem_24g_reconn_count 
+0120 1fe0fe01 increase 1 ,pdata 
+0121 67e14889 store 2 ,mem_24g_reconn_count 
+0122 6fe0c88a fetch 1 ,mem_24g_reconn_count + 1 
+0123 2feffe00 isolate1 0 ,pdata 
+0124 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+0125 c000a5ad beq fast_conn_and_receiver ,g24_reconn_fast_conn_and_receiver 
+0126 c00125af beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn_and_3_0 
+0127 c001a5b1 beq receiver_and_3_0_addr ,g24_reconn_receiver_and_3_0 
+0128 c00225b3 beq pair_and_3_0_addr ,g24_reconn_pair_and_3_0 
+0129 2020256e branch g24_reconn_receiver_addr 
 
 p_g24_transmit_no_interrupt:
-0105 20402631 call g24_txdata_prep 
-0106 24340114 nbranch p_g24_nodata_transmit ,user 
+012a 20402631 call g24_txdata_prep 
+012b 24340139 nbranch p_g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-0107 20400128 call p_g24_transmit_process 
-0108 204026ee call power_ctrl_start 
-0109 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-010a 243a010f nbranch p_g24_short_sleep ,blank 
-010b 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
-010c 67e4485c store 8 ,mem_24g_enter_hibernate 
-010d 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
-010e 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
+012c 2040014d call p_g24_transmit_process 
+012d 204026ee call power_ctrl_start 
+012e 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+012f 243a0134 nbranch p_g24_short_sleep ,blank 
+0130 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
+0131 67e4485c store 8 ,mem_24g_enter_hibernate 
+0132 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+0133 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-010f 204026bb call g24_lpm_wait 
-0110 24740000 nrtn user 
-0111 20407fdc call clear_wake 
-0112 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-0113 202026b8 branch g24_long_sleep2 
+0134 204026bb call g24_lpm_wait 
+0135 24740000 nrtn user 
+0136 20407fdc call clear_wake 
+0137 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+0138 202026b8 branch g24_long_sleep2 
 
 p_g24_nodata_transmit:
-0114 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0115 205a011a call p_g24_send_abort_packet ,blank 
-0116 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-0117 c1008000 rtneq g24_tx_timer_int_enable 
-0118 2040269f call g24_search_receiver 
-0119 202026b5 branch g24_long_sleep 
+0139 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+013a 205a013f call p_g24_send_abort_packet ,blank 
+013b 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+013c c1008000 rtneq g24_tx_timer_int_enable 
+013d 2040269f call g24_search_receiver 
+013e 202026b5 branch g24_long_sleep 
 
 p_g24_send_abort_packet:
-011a 70483601 jam type_ms ,mem_24g_data_type 
-011b 7048a701 jam 1 ,mem_24g_abort_pac 
-011c 20402642 call g24_transmit_rf_ctrl_clear 
-011d 67e0c7c6 store 1 ,mem_24g_txbuf 
-011e 58000000 setarg 0 
-011f 67e3c7c7 store 7 ,mem_24g_txbuf + 1 
-0120 6fe248a9 fetch 4 ,mem_24g_device_addr 
-0121 67e247ce store 4 ,mem_24g_txbuf + 8 
-0122 7048350c jam 12 ,mem_24g_datalen 
-0123 6fe0c836 fetch 1 ,mem_24g_data_type 
-0124 79207e03 set1 bit_abort ,pdata 
-0125 67e0c836 store 1 ,mem_24g_data_type 
-0126 20402291 call g24_transmit_prep 
-0127 20200107 branch p_g24_transmit_start 
+013f 70483601 jam type_ms ,mem_24g_data_type 
+0140 7048a701 jam 1 ,mem_24g_abort_pac 
+0141 20402642 call g24_transmit_rf_ctrl_clear 
+0142 67e0c7c6 store 1 ,mem_24g_txbuf 
+0143 58000000 setarg 0 
+0144 67e3c7c7 store 7 ,mem_24g_txbuf + 1 
+0145 6fe248a9 fetch 4 ,mem_24g_device_addr 
+0146 67e247ce store 4 ,mem_24g_txbuf + 8 
+0147 7048350c jam 12 ,mem_24g_datalen 
+0148 6fe0c836 fetch 1 ,mem_24g_data_type 
+0149 79207e03 set1 bit_abort ,pdata 
+014a 67e0c836 store 1 ,mem_24g_data_type 
+014b 20402291 call g24_transmit_prep 
+014c 2020012c branch p_g24_transmit_start 
 
 p_g24_transmit_process:
-0128 7048a600 jam 0 ,mem_24g_retry 
+014d 7048a600 jam 0 ,mem_24g_retry 
 
 p_g24_transmit_loop:
-0129 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
-012a 34730200 until clkn_rt ,meet 
-012b 2040265b call g24_transmit_receive_ack 
-012c 6fe0c82c fetch 1 ,mem_24g_no_ack 
-012d c000a651 beq no_ack_24g ,g24_transmit_no_ack 
-012e 242c0137 nbranch p_g24_retransmit ,sync 
-012f 24378137 nbranch p_g24_retransmit ,user3 
-0130 20402672 call g24_ackpayload_parse 
-0131 20400133 call p_mouse_wakeup_24g 
-0132 20202651 branch g24_transmit_no_ack 
+014e 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+014f 34730200 until clkn_rt ,meet 
+0150 2040265b call g24_transmit_receive_ack 
+0151 6fe0c82c fetch 1 ,mem_24g_no_ack 
+0152 c000a651 beq no_ack_24g ,g24_transmit_no_ack 
+0153 242c015c nbranch p_g24_retransmit ,sync 
+0154 2437815c nbranch p_g24_retransmit ,user3 
+0155 20402672 call g24_ackpayload_parse 
+0156 20400158 call p_mouse_wakeup_24g 
+0157 20202651 branch g24_transmit_no_ack 
 
 p_mouse_wakeup_24g:
-0133 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0134 245a019f ncall p_mouse_init_sensor_wakeup ,blank 
-0135 704be100 jam 0 ,mem_sensor_shutdown_flag 
-0136 20600000 rtn 
+0158 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+0159 245a01cc ncall p_mouse_init_sensor_wakeup ,blank 
+015a 704be100 jam 0 ,mem_sensor_shutdown_flag 
+015b 20600000 rtn 
 
 p_g24_retransmit:
-0137 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0138 247a0000 nrtn blank 
-0139 6fe148a3 fetch 2 ,mem_24g_txfail_cnt 
-013a 1fe0fe01 increase 1 ,pdata 
-013b 67e148a3 store 2 ,mem_24g_txfail_cnt 
-013c 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
-013d c2812679 bbit1 2 ,g24_tx_attempt_fail 
-013e 2040267e call g24_transmit_hop_process 
-013f 20400141 call p_delay_100ms 
-0140 20200129 branch p_g24_transmit_loop 
-
-p_delay_100ms:
-0141 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
-0142 1fe67c01 sub pdata ,0x01 ,null 
-0143 20610000 rtn positive 
-0144 df200064 arg 100 ,loopcnt 
+015c 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+015d 247a0000 nrtn blank 
+015e 6fe148a3 fetch 2 ,mem_24g_txfail_cnt 
+015f 1fe0fe01 increase 1 ,pdata 
+0160 67e148a3 store 2 ,mem_24g_txfail_cnt 
+0161 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
+0162 c280a679 bbit1 1 ,g24_tx_attempt_fail 
+0163 2040267e call g24_transmit_hop_process 
+0164 20400166 call p_delay_40ms 
+0165 2020014e branch p_g24_transmit_loop 
+
+p_delay_40ms:
+0166 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
+0167 1fe67c00 sub pdata ,0x00 ,null 
+0168 20610000 rtn positive 
+0169 df200028 arg 40 ,loopcnt 
 
 p_delay_ms_wait:
-0145 20002ee0 nop 12000 
-0146 c2007d13 loop delay_ms_wait 
-0147 20600000 rtn 
+016a 20002ee0 nop 12000 
+016b c2007d13 loop delay_ms_wait 
+016c 20600000 rtn 
 
 p_mouse_app_enter_hibernate:
-0148 58000006 setarg pan_reg_config 
-0149 20405b0d call twspi_read 
-014a c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-014b 20203e21 branch mouse_app_enter_hibernate + 1 
+016d 58000006 setarg pan_reg_config 
+016e 20405b0d call twspi_read 
+016f c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+0170 20203e21 branch mouse_app_enter_hibernate + 1 
 
 p_mouse_setgpio_hibernate:
-014c 204042e9 call mouse_set_sdio_high 
-014d 20407fdc call clear_wake 
-014e 20404015 call mouse_before_hibernate_wheel_gpio_set 
-014f 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0150 20406069 call gpio_out_active 
-0151 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0152 20406042 call gpio_clr_wake 
-0153 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0154 d840003f arg gpcfg_output_high ,temp 
-0155 20406093 call gpio_config_function_int 
-0156 20203e36 branch mouse_setgpio_hibernate + 3 
+0171 204042e9 call mouse_set_sdio_high 
+0172 20407fdc call clear_wake 
+0173 20404015 call mouse_before_hibernate_wheel_gpio_set 
+0174 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0175 20406069 call gpio_out_active 
+0176 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0177 20406042 call gpio_clr_wake 
+0178 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0179 d840003f arg gpcfg_output_high ,temp 
+017a 20406093 call gpio_config_function_int 
+017b 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-0157 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-0158 20406050 call gpio_config_input 
-0159 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-015a 20406050 call gpio_config_input 
-015b 20403f88 call mouse_wheel_check 
-015c 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-015d d840003f arg gpcfg_output_high ,temp 
-015e 20406093 call gpio_config_function_int 
-015f 20203e44 branch mouse_lpm_before_common_next 
+017c 20403f88 call mouse_wheel_check 
+017d 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+017e d840003f arg gpcfg_output_high ,temp 
+017f 20406093 call gpio_config_function_int 
+0180 20405b04 call twspi_disable 
+0181 6848c918 fetcht 1 ,mem_lbutton_gpio 
+0182 20406036 call gpio_set_wake 
+0183 6848c919 fetcht 1 ,mem_rbutton_gpio 
+0184 20406036 call gpio_set_wake 
+0185 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0186 20406036 call gpio_set_wake 
+0187 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0188 20406036 call gpio_set_wake 
+0189 6848c90e fetcht 1 ,mem_fw_button_gpio 
+018a 20406036 call gpio_set_wake 
+018b 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+018c 20206036 branch gpio_set_wake 
 
 p_mouse_priority_bb_event:
-0160 1a627e00 copy regc ,pdata 
-0161 c01e0178 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0162 c0190165 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-0163 c022016c beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-0164 20204336 branch mouse_priority_bb_event + 2 
+018d 1a627e00 copy regc ,pdata 
+018e c01e01a5 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+018f c0190192 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+0190 c0220199 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+0191 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-0165 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0166 c0008169 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-0167 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-0168 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0192 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0193 c0008196 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+0194 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+0195 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-0169 2040436c call mouse_updata_le_param 
-016a 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-016b 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0196 2040436c call mouse_updata_le_param 
+0197 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+0198 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-016c 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-016d 1fe67c0c sub pdata ,le_interval_15ms ,null 
-016e 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-016f 67e14372 store 2 ,mem_le_interval_min 
-0170 67e14374 store 2 ,mem_le_interval_min + 2 
-0171 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-0172 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-0173 98467c00 isub temp ,null 
-0174 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-0175 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-0176 67e0cb8a store 1 ,mem_lpm_mult_init 
-0177 20204386 branch mouse_le_conn_param_lpm_enable 
+0199 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+019a 1fe67c0c sub pdata ,le_interval_15ms ,null 
+019b 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+019c 67e14372 store 2 ,mem_le_interval_min 
+019d 67e14374 store 2 ,mem_le_interval_min + 2 
+019e 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+019f 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+01a0 98467c00 isub temp ,null 
+01a1 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+01a2 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+01a3 67e0cb8a store 1 ,mem_lpm_mult_init 
+01a4 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_24g_attempt_success:
-0178 6fe2483c fetch 4 ,mem_24g_addr 
-0179 67e24891 store 4 ,mem_24g_receiver_addr 
-017a 67e24993 store 4 ,mem_mouse_24g_addr 
-017b 204048c6 call mouse_device_poweron_timer_init 
-017c 2020484e branch mouse_24g_attempt_success 
+01a5 6fe2483c fetch 4 ,mem_24g_addr 
+01a6 67e24891 store 4 ,mem_24g_receiver_addr 
+01a7 67e24993 store 4 ,mem_mouse_24g_addr 
+01a8 204048c6 call mouse_device_poweron_timer_init 
+01a9 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_start_work:
-017d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-017e c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-017f 6fe0c938 fetch 1 ,mem_device_flag 
-0180 c0000182 beq mode_24g_device ,p_mouse_24g_start_mode 
-0181 20203d57 branch mouse_start_work + 5 
+01aa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01ab c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+01ac 6fe0c938 fetch 1 ,mem_device_flag 
+01ad c00001af beq mode_24g_device ,p_mouse_24g_start_mode 
+01ae 20203d57 branch mouse_start_work + 5 
 
 p_mouse_24g_start_mode:
-0182 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0183 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-0184 20403d65 call mouse_wakeup_from_power_check 
-0185 20344806 branch mouse_24g_reconn_dongle_start ,user 
-0186 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0187 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-0188 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-0189 20404110 call mouse_key_check_once 
-018a 1a217e07 and rega ,0x07 ,pdata 
-018b 202047ff branch mouse_24g_start_mode + 9 
+01af 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01b0 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+01b1 20403d65 call mouse_wakeup_from_power_check 
+01b2 20344806 branch mouse_24g_reconn_dongle_start ,user 
+01b3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01b4 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+01b5 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+01b6 20404110 call mouse_key_check_once 
+01b7 1a217e07 and rega ,0x07 ,pdata 
+01b8 202047ff branch mouse_24g_start_mode + 9 
 
 p_mouse_seting_dpi:
-018c 2040408f call mouse_setting_dpi_4_level 
-018d 2040018f call p_mouse_dpi_led_blink_delay 
-018e 20204098 branch mouse_seting_sensor_type 
+01b9 2040408f call mouse_setting_dpi_4_level 
+01ba 204001bc call p_mouse_dpi_led_blink_delay 
+01bb 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-018f 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0190 c17f8000 rtneq gpio_disable 
-0191 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-0192 247a0000 nrtn blank 
-0193 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-0194 247a0000 nrtn blank 
-0195 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-0196 247a0000 nrtn blank 
-0197 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-0198 247a0000 nrtn blank 
-0199 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-019a 203a01c4 branch p_mouse_dpi_led_blink_init ,blank 
-019b 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-019c 20600000 rtn 
+01bc 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+01bd c17f8000 rtneq gpio_disable 
+01be 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+01bf 247a0000 nrtn blank 
+01c0 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+01c1 247a0000 nrtn blank 
+01c2 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+01c3 247a0000 nrtn blank 
+01c4 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+01c5 247a0000 nrtn blank 
+01c6 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+01c7 203a0206 branch p_mouse_dpi_led_blink_init ,blank 
+01c8 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+01c9 20600000 rtn 
 
 p_mouse_init_sunt:
-019d 20403f65 call mouse_sensor_spi_init 
-019e 20758000 rtn wake 
+01ca 20403f65 call mouse_sensor_spi_init 
+01cb 20758000 rtn wake 
 
 p_mouse_init_sensor_wakeup:
-019f 20404236 call mouse_sensor_poweron 
+01cc 20404236 call mouse_sensor_poweron 
 
 p_mouse_init_sensor:
-01a0 204041b5 call mouse_read_sensor_id 
-01a1 c01801a7 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-01a2 c018c217 beq p3065_id1 ,mouse_init_p3065 
-01a3 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
-01a4 204041b2 call mouse_twspi_reset 
-01a5 20001af4 nop 6900 
-01a6 202001a0 branch p_mouse_init_sensor 
+01cd 204041b5 call mouse_read_sensor_id 
+01ce c01801d4 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+01cf c018c217 beq p3065_id1 ,mouse_init_p3065 
+01d0 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+01d1 204041b2 call mouse_twspi_reset 
+01d2 20001af4 nop 6900 
+01d3 202001cd branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-01a7 6fe0c9c2 fetch 1 ,mem_sensor_id2 
-01a8 c02d01b0 beq p_mx8650 ,p_mouse_mx8650_init_param 
-01a9 c06c41cb beq p8009_id2 ,mouse_8009_init_param 
-01aa c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
-01ab c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
-01ac c00141ea beq p3212_id2 ,mouse_3212_init_param 
-01ad c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
-01ae c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
-01af 202001a0 branch p_mouse_init_sensor 
+01d4 6fe0c9c2 fetch 1 ,mem_sensor_id2 
+01d5 c02d01dd beq p_mx8650 ,p_mouse_mx8650_init_param 
+01d6 c06c41cb beq p8009_id2 ,mouse_8009_init_param 
+01d7 c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+01d8 c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+01d9 c00141ea beq p3212_id2 ,mouse_3212_init_param 
+01da c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
+01db c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
+01dc 202001cd branch p_mouse_init_sensor 
 
 p_mouse_mx8650_init_param:
-01b0 70492705 jam mx8650 ,mem_config_sensor_type 
-01b1 20404232 call mouse_sensor_reset 
-01b2 20407d12 call delay_10ms 
-01b3 da604be6 arg mem_sensor_8650_init_new ,regc 
-01b4 2040422b call mouse_sensor_wr_seq 
-01b5 2020408e branch mouse_dpi_config 
+01dd 70492705 jam mx8650 ,mem_config_sensor_type 
+01de 20404232 call mouse_sensor_reset 
+01df 20407d12 call delay_10ms 
+01e0 da604be6 arg mem_sensor_8650_init_new ,regc 
+01e1 2040422b call mouse_sensor_wr_seq 
+01e2 2020408e branch mouse_dpi_config 
 
 p_mouse_bb_event_timer:
-01b6 20403e9b call mouse_adc_read 
-01b7 2040026c call p_mouse_low_voltage_led_timer 
-01b8 2040232b call g24_pair_timeout_timer 
-01b9 20402556 call g24_reconn_timeout_timer 
-01ba 204047cd call mouse_24g_long_sleep_param_update_timer 
-01bb 204048be call mouse_device_poweron_timer 
-01bc 204001c1 call p_mouse_dpi_led_blink_delay_timer 
-01bd 2040407c call mouse_dpi_key_check_long_press 
-01be 204044cc call mouse_bt_discovery_check 
-01bf 204001d9 call p_mouse_commbination_key_process 
-01c0 202044c0 branch mouse_bb_event_timer + 11 
+01e3 204001ee call p_mouse_device_poweron_timer 
+01e4 20403e9b call mouse_adc_read 
+01e5 204002ea call p_mouse_low_voltage_led_timer 
+01e6 2040232b call g24_pair_timeout_timer 
+01e7 20402556 call g24_reconn_timeout_timer 
+01e8 204047cd call mouse_24g_long_sleep_param_update_timer 
+01e9 20400203 call p_mouse_dpi_led_blink_delay_timer 
+01ea 2040407c call mouse_dpi_key_check_long_press 
+01eb 204044cc call mouse_bt_discovery_check 
+01ec 2040021b call p_mouse_commbination_key_process 
+01ed 202044c0 branch mouse_bb_event_timer + 11 
+
+p_mouse_device_poweron_timer:
+01ee 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01ef c4100000 rtnbit0 mouse_enable_power_on_led 
+01f0 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+01f1 207a0000 rtn blank 
+01f2 1fe0ffff increase -1 ,pdata 
+01f3 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
+01f4 203a01f7 branch p_mouse_device_led_off ,blank 
+
+p_mouse_device_led_on:
+01f5 204001f9 call p_mouse_led_config_ouput 
+01f6 20204920 branch mouse_device_led_on 
+
+p_mouse_device_led_off:
+01f7 204001f9 call p_mouse_led_config_ouput 
+01f8 20204912 branch mouse_device_led_off 
+
+p_mouse_led_config_ouput:
+01f9 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+01fa 20406069 call gpio_config_output 
+01fb 6848c915 fetcht 1 ,mem_config_device_24g_led_gpio 
+01fc 20406069 call gpio_config_output 
+01fd 6848c916 fetcht 1 ,mem_config_device_bt1_led_gpio 
+01fe 20406069 call gpio_config_output 
+01ff 6848c922 fetcht 1 ,mem_config_device_bt2_led_gpio 
+0200 20406069 call gpio_config_output 
+0201 6848c923 fetcht 1 ,mem_dpi_led_gpio 
+0202 20206069 branch gpio_config_output 
 
 p_mouse_dpi_led_blink_delay_timer:
-01c1 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-01c2 da4001c4 arg p_mouse_dpi_led_blink_init ,regb 
-01c3 2020318a branch timer_single_step 
+0203 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+0204 da400206 arg p_mouse_dpi_led_blink_init ,regb 
+0205 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-01c4 6fe0c927 fetch 1 ,mem_config_sensor_type 
-01c5 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-01c6 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-01c7 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-01c8 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-01c9 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-01ca 67e14930 store 2 ,mem_mouse_on_time 
-01cb 67e14932 store 2 ,mem_mouse_off_time 
-01cc da200000 arg 0 ,rega 
-01cd 6848c992 fetcht 1 ,mem_mouse_dpi 
-01ce 18408402 increase 2 ,temp 
-01cf 18467c03 sub temp ,3 ,null 
-01d0 204101d3 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-01d1 244101d7 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-01d2 202048ff branch mouse_dpi_led_blink_init_end 
+0206 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0207 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+0208 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0209 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+020a 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+020b 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+020c 67e14930 store 2 ,mem_mouse_on_time 
+020d 67e14932 store 2 ,mem_mouse_off_time 
+020e da200000 arg 0 ,rega 
+020f 6848c992 fetcht 1 ,mem_mouse_dpi 
+0210 18408402 increase 2 ,temp 
+0211 18467c03 sub temp ,3 ,null 
+0212 20410215 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0213 24410219 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+0214 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-01d3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01d4 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-01d5 18408401 increase 1 ,temp 
-01d6 20600000 rtn 
+0215 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0216 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+0217 18408401 increase 1 ,temp 
+0218 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-01d7 184085fd increase -3 ,temp 
-01d8 20600000 rtn 
+0219 184085fd increase -3 ,temp 
+021a 20600000 rtn 
 
 p_mouse_commbination_key_process:
-01d9 6fe0c938 fetch 1 ,mem_device_flag 
-01da c00001df beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-01db 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01dc c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-01dd 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-01de 202001e2 branch p_mouse_commbination_key_start 
+021b 6fe0c938 fetch 1 ,mem_device_flag 
+021c c0000221 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+021d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+021e c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+021f 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+0220 20200224 branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-01df 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01e0 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-01e1 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0221 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0222 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+0223 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-01e2 6048cb9d storet 1 ,mem_mouse_commbination_key 
-01e3 20404115 call mouse_check_key_gpio 
-01e4 1fe17e07 and pdata ,0x07 ,pdata 
-01e5 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-01e6 98467c00 isub temp ,null 
-01e7 202281e9 branch p_mouse_commbination_key_down ,zero 
-01e8 202044eb branch mouse_commbination_key_up 
+0224 6048cb9d storet 1 ,mem_mouse_commbination_key 
+0225 20404115 call mouse_check_key_gpio 
+0226 1fe17e07 and pdata ,0x07 ,pdata 
+0227 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+0228 98467c00 isub temp ,null 
+0229 2022822b branch p_mouse_commbination_key_down ,zero 
+022a 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-01e9 204044f6 call mouse_combination_ui_timer 
-01ea 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-01eb c1008000 rtneq commbination_key_state_down 
-01ec 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-01ed 20600000 rtn 
+022b 204044f6 call mouse_combination_ui_timer 
+022c 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+022d c1008000 rtneq commbination_key_state_down 
+022e 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+022f 20600000 rtn 
 
 p_mouse_start_discovery:
-01ee 6fe1478c fetch 2 ,mem_ui_state_map 
-01ef 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-01f0 2040c581 call mouse_stop_le_adv ,true 
-01f1 6fe1478c fetch 2 ,mem_ui_state_map 
-01f2 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-01f3 2040c322 call mouse_cancel_reconnect ,true 
-01f4 20204554 branch mouse_start_discovery + 1 
+0230 6fe1478c fetch 2 ,mem_ui_state_map 
+0231 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+0232 2040c581 call mouse_stop_le_adv ,true 
+0233 6fe1478c fetch 2 ,mem_ui_state_map 
+0234 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+0235 2040c322 call mouse_cancel_reconnect ,true 
+0236 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-01f5 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-01f6 245a7861 ncall ui_timer_init ,blank 
-01f7 704be200 jam 0 ,mem_power_on_flag 
-01f8 20207851 branch ui_timer_check + 1 
+0237 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0238 245a7861 ncall ui_timer_init ,blank 
+0239 704be200 jam 0 ,mem_power_on_flag 
+023a 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-01f9 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-01fa 1fe20c00 copy pdata ,contr 
-01fb efe08006 ifetch 1 ,contr 
-01fc 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-01fd 1fe1040f and pdata ,0x0f ,temp 
-01fe 1ff1fe00 rshift4 pdata ,pdata 
-01ff c0048201 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-0200 20204d93 branch hid_rx_process + 7 
+023b 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+023c 1fe20c00 copy pdata ,contr 
+023d efe08006 ifetch 1 ,contr 
+023e 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+023f 1fe1040f and pdata ,0x0f ,temp 
+0240 1ff1fe00 rshift4 pdata ,pdata 
+0241 c0048243 beq hid_type_set_idle ,p_hid_rx_process_handshake 
+0242 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-0201 da200001 arg 1 ,rega 
-0202 20404dc0 call hid_malloc_tx_buff 
-0203 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-0204 e7e10005 istore 2 ,contw 
-0205 58000000 setarg 0 
-0206 e7e08005 istore 1 ,contw 
-0207 70095001 jam 1 ,mem_ui_data_txbuff_length 
-0208 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-0209 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-020a 67e0c4e2 store 1 ,mem_hid_control_state 
-020b 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-020c 20207871 branch ui_ipc_send_event 
+0243 da200001 arg 1 ,rega 
+0244 20404dc0 call hid_malloc_tx_buff 
+0245 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+0246 e7e10005 istore 2 ,contw 
+0247 58000000 setarg 0 
+0248 e7e08005 istore 1 ,contw 
+0249 70095001 jam 1 ,mem_ui_data_txbuff_length 
+024a 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+024b 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+024c 67e0c4e2 store 1 ,mem_hid_control_state 
+024d 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+024e 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-020d 6fe0c3dd fetch 1 ,mem_le_md_count 
-020e 1fe0fe01 pincrease 1 
-020f 67e0c3dd store 1 ,mem_le_md_count 
-0210 c006165a beq le_md_max_count ,le_slave_cont 
-0211 2040191b call le_acknowledge 
-0212 2040196a call le_prepare_tx 
-0213 6fe082bd fetch 1 ,mem_le_tx_phy 
-0214 2040168b call le_enable_phy_by_pdata 
-0215 20401838 call le_transmit 
-0216 20201655 branch le_slave_match + 10 
+024f 6fe0c3dd fetch 1 ,mem_le_md_count 
+0250 1fe0fe01 pincrease 1 
+0251 67e0c3dd store 1 ,mem_le_md_count 
+0252 c006165a beq le_md_max_count ,le_slave_cont 
+0253 2040191b call le_acknowledge 
+0254 2040196a call le_prepare_tx 
+0255 6fe082bd fetch 1 ,mem_le_tx_phy 
+0256 2040168b call le_enable_phy_by_pdata 
+0257 20401838 call le_transmit 
+0258 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-0217 efe10006 ifetch 2 ,contr 
-0218 c002021a beq le_l2cap_cid_att ,p_le_parse_att 
-0219 202019e4 branch le_parse_l2cap + 10 
+0259 efe10006 ifetch 2 ,contr 
+025a c002025c beq le_l2cap_cid_att ,p_le_parse_att 
+025b 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-021a efe18006 ifetch 3 ,contr 
-021b 67e1c436 store 3 ,mem_le_att_opcode 
-021c c009021e beq attop_write_request ,p_le_parse_att_write_request 
-021d 20201cd3 branch le_parse_att + 2 
+025c efe18006 ifetch 3 ,contr 
+025d 67e1c436 store 3 ,mem_le_att_opcode 
+025e c0090260 beq attop_write_request ,p_le_parse_att_write_request 
+025f 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-021e 18c22200 copy contr ,rega 
-021f 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0220 1fe0a5fd add pdata ,-3 ,regb 
-0221 20401a25 call le_writeatt_cb 
-0222 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0223 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-0224 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0225 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-0226 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-0227 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-0228 5800001a setarg 0x001a 
-0229 68494437 fetcht 2 ,mem_le_att_handle 
-022a 98467c00 isub temp ,null 
-022b 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-022c 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-022d 20201ec9 branch le_send_att_error_response 
+0260 18c22200 copy contr ,rega 
+0261 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+0262 1fe0a5fd add pdata ,-3 ,regb 
+0263 20401a25 call le_writeatt_cb 
+0264 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+0265 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+0266 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0267 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+0268 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0269 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+026a 5800001a setarg 0x001a 
+026b 68494437 fetcht 2 ,mem_le_att_handle 
+026c 98467c00 isub temp ,null 
+026d 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+026e 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+026f 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-022e 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-022f 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-0230 202026bc branch g24_lpm_wait + 1 
+0270 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+0271 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+0272 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-0231 78547c00 disable user 
-0232 58000000 setarg 0 
-0233 67e348d1 store 6 ,mem_mouse_x 
-0234 20404240 call mouse_check_sensor_data 
-0235 2040408e call mouse_dpi_config 
-0236 20403f7e call mouse_zwheel 
-0237 20403f83 call mouse_t_zwheel 
-0238 204040dc call mouse_key 
-0239 6fe0c8d0 fetch 1 ,mem_mouse_key 
-023a 1fe17e1f and_into 0x1f ,pdata 
-023b 67e0c8d0 store 1 ,mem_mouse_key 
-023c 24344728 nbranch mouse_drawing_optima_init ,user 
-023d 2040023f call p_mouse_drawing_optima 
-023e 20204544 branch mouse_no_data_timer_init 
+0273 78547c00 disable user 
+0274 58000000 setarg 0 
+0275 67e348d1 store 6 ,mem_mouse_x 
+0276 20404240 call mouse_check_sensor_data 
+0277 2040408e call mouse_dpi_config 
+0278 20403f7e call mouse_zwheel 
+0279 20403f83 call mouse_t_zwheel 
+027a 204040dc call mouse_key 
+027b 6fe0c8d0 fetch 1 ,mem_mouse_key 
+027c 1fe17e1f and_into 0x1f ,pdata 
+027d 67e0c8d0 store 1 ,mem_mouse_key 
+027e 24344728 nbranch mouse_drawing_optima_init ,user 
+027f 20400281 call p_mouse_drawing_optima 
+0280 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_drawing_optima:
-023f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0240 c41c0000 rtnbit0 mouse_enable_smoother 
-0241 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0242 c1018000 rtneq p3212 
-0243 c1000000 rtneq p3205 
-0244 6fe248d1 fetch 4 ,mem_mouse_x 
-0245 207a0000 rtn blank 
-0246 204047bd call mouse_data_abs_check 
-0247 58000006 setarg 0x06 
-0248 204047b3 call mouse_pdata_greater_than_check 
-0249 205a47af call mouse_disable_asm ,blank 
-024a 245a47b1 ncall mouse_enable_asm ,blank 
-024b 58000004 setarg 0x04 
-024c 204047b8 call mouse_data_less_than_check 
-024d 205a47af call mouse_disable_asm ,blank 
-024e 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
-024f c000c72d beq 1 ,mouse_drawing_optima_modify 
-0250 20204728 branch mouse_drawing_optima_init 
+0281 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0282 c41c0000 rtnbit0 mouse_enable_smoother 
+0283 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0284 c1018000 rtneq p3212 
+0285 c1000000 rtneq p3205 
+0286 6fe248d1 fetch 4 ,mem_mouse_x 
+0287 207a0000 rtn blank 
+0288 204047bd call mouse_data_abs_check 
+0289 58000003 setarg 0x03 
+028a 204047b3 call mouse_pdata_greater_than_check 
+028b 205a47af call mouse_disable_asm ,blank 
+028c 245a47b1 ncall mouse_enable_asm ,blank 
+028d 58000002 setarg 0x02 
+028e 204047b8 call mouse_data_less_than_check 
+028f 205a47af call mouse_disable_asm ,blank 
+0290 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
+0291 c0008294 beq 1 ,p_mouse_drawing_optima_modify 
+0292 20400295 call p_mouse_drawing_optima_modify + 1 
+0293 20204728 branch mouse_drawing_optima_init 
+
+p_mouse_drawing_optima_modify:
+0294 2040472d call mouse_drawing_optima_modify 
+0295 6fe148d1 fetch 2 ,mem_mouse_x 
+0296 68494c0e fetcht 2 ,mem_mouse_data_x_value 
+0297 98408400 iadd temp ,temp 
+0298 60494c0e storet 2 ,mem_mouse_data_x_value 
+0299 60494c12 storet 2 ,mem_mouse_data_xy_value 
+029a 204002b6 call p_mouse_xy_data_judge 
+029b 67e14c12 store 2 ,mem_mouse_data_xy_value 
+029c 68494c0e fetcht 2 ,mem_mouse_data_x_value 
+029d 98467e00 isub temp ,pdata 
+029e 684948d1 fetcht 2 ,mem_mouse_x 
+029f 245a02b2 ncall p_mouse_xy_data_judge_compensate ,blank 
+02a0 604948d1 storet 2 ,mem_mouse_x 
+02a1 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02a2 67e14c0e store 2 ,mem_mouse_data_x_value 
+02a3 6fe148d3 fetch 2 ,mem_mouse_y 
+02a4 68494c10 fetcht 2 ,mem_mouse_data_y_value 
+02a5 98408400 iadd temp ,temp 
+02a6 60494c10 storet 2 ,mem_mouse_data_y_value 
+02a7 60494c12 storet 2 ,mem_mouse_data_xy_value 
+02a8 204002b6 call p_mouse_xy_data_judge 
+02a9 67e14c12 store 2 ,mem_mouse_data_xy_value 
+02aa 68494c10 fetcht 2 ,mem_mouse_data_y_value 
+02ab 98467e00 isub temp ,pdata 
+02ac 684948d3 fetcht 2 ,mem_mouse_y 
+02ad 245a02b2 ncall p_mouse_xy_data_judge_compensate ,blank 
+02ae 604948d3 storet 2 ,mem_mouse_y 
+02af 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02b0 67e14c10 store 2 ,mem_mouse_data_y_value 
+02b1 20600000 rtn 
+
+p_mouse_xy_data_judge_compensate:
+02b2 98408400 iadd temp ,temp 
+02b3 58000000 setarg 0x00 
+02b4 67e14c12 store 2 ,mem_mouse_data_xy_value 
+02b5 20600000 rtn 
+
+p_mouse_xy_data_judge:
+02b6 6fe0cc13 fetch 1 ,mem_mouse_data_xy_value + 1 
+02b7 203a02b9 branch p_mouse_current_xy_pdata_offset ,blank 
+02b8 202002be branch p_mouse_current_xy_ndata_offset 
+
+p_mouse_current_xy_pdata_offset:
+02b9 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
+02ba 204002c8 call p_mouse_current_xy_get_1_33_times 
+02bb 67e0cc12 store 1 ,mem_mouse_data_xy_value 
+
+p_mouse_xy_data_offset_new:
+02bc 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02bd 20600000 rtn 
+
+p_mouse_current_xy_ndata_offset:
+02be 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
+02bf 204047ab call mouse_pdata_invert 
+02c0 204002c8 call p_mouse_current_xy_get_1_33_times 
+02c1 205a7e5e call disable_blank ,blank 
+02c2 204002c4 call p_mouse_pdata_get_new_value 
+02c3 202002bc branch p_mouse_xy_data_offset_new 
+
+p_mouse_pdata_get_new_value:
+02c4 204047ac call mouse_rega_in_out 
+02c5 1fe67e00 sub pdata ,0 ,pdata 
+02c6 67e0cc12 store 1 ,mem_mouse_data_xy_value 
+02c7 20600000 rtn 
+
+p_mouse_current_xy_get_1_33_times:
+02c8 1fe67c02 sub pdata ,2 ,null 
+02c9 20610000 rtn positive 
+02ca 1feffe04 mul32 pdata ,4 ,pdata 
+02cb 1fe6fc03 div pdata ,3 
+02cc 20407def call wait_div_end 
+02cd 1807fe00 quotient pdata 
+02ce 20600000 rtn 
 
 p_mouse_adc_read_start:
-0251 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0252 247a0000 nrtn blank 
-0253 20400056 call p_enable_adc 
-0254 7048f600 jam 0 ,mem_adc_read_timer 
-0255 20406125 call vdd_calculate_by_mode 
-0256 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
-0257 d8400012 arg 0x0012 ,temp 
-0258 98467c00 isub temp ,null 
-0259 2421026a nbranch p_mouse_adc_gpio_connect_gnd ,positive 
-025a 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
-025b c0810262 bne adc_config_gpio ,p_mouse_adc_data_process 
-025c 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
-025d 184ffe08 mul32 temp ,8 ,pdata 
-025e 1fe6fc0a div pdata ,10 
-025f 20407dec call get_div_result 
-0260 9840fe00 iadd temp ,pdata 
-0261 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
+02cf 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+02d0 247a0000 nrtn blank 
+02d1 20400056 call p_enable_adc 
+02d2 7048f600 jam 0 ,mem_adc_read_timer 
+02d3 20406125 call vdd_calculate_by_mode 
+02d4 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
+02d5 d8400012 arg 0x0012 ,temp 
+02d6 98467c00 isub temp ,null 
+02d7 242102e8 nbranch p_mouse_adc_gpio_connect_gnd ,positive 
+02d8 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
+02d9 c08102e0 bne adc_config_gpio ,p_mouse_adc_data_process 
+02da 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
+02db 184ffe08 mul32 temp ,8 ,pdata 
+02dc 1fe6fc0a div pdata ,10 
+02dd 20407dec call get_div_result 
+02de 9840fe00 iadd temp ,pdata 
+02df 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
 
 p_mouse_adc_data_process:
-0262 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
-0263 20403ed8 call mouse_adc_bat_percent_lowpower_out 
-0264 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
-0265 c2813f1a bbit1 2 ,mouse_adc_button_press 
-0266 c280bf1c bbit1 1 ,mouse_power_down 
-0267 c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
-0268 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
-0269 20203ece branch mouse_adc_low_voltage 
+02e0 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
+02e1 20403ed8 call mouse_adc_bat_percent_lowpower_out 
+02e2 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
+02e3 c2813f1a bbit1 2 ,mouse_adc_button_press 
+02e4 c280bf1c bbit1 1 ,mouse_power_down 
+02e5 c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
+02e6 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+02e7 20203ece branch mouse_adc_low_voltage 
 
 p_mouse_adc_gpio_connect_gnd:
-026a 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
-026b 20403f54 call mouse_gpio_config_input_pd 
+02e8 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
+02e9 20403f54 call mouse_gpio_config_input_pd 
 
 p_mouse_low_voltage_led_timer:
-026c 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-026d 247a0000 nrtn blank 
-026e 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-026f 247a0000 nrtn blank 
-0270 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-0271 247a0000 nrtn blank 
-0272 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-0273 247a0000 nrtn blank 
-0274 20404904 call mouse_check_dpi_blink 
-0275 20740000 rtn user 
-0276 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0277 c4108000 rtnbit0 mouse_enable_low_voltage_led 
-0278 c4020000 rtnbit0 mouse_low_voltage_flag 
-0279 c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
-027a 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
-027b 1fe0fe01 increase 1 ,pdata 
-027c 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
-027d 1fe67c08 sub pdata ,8 ,null 
-027e 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
-027f c001c970 beq 3 ,mouse_low_voltage_led_on 
-0280 c002c976 beq 5 ,mouse_low_voltage_led_off 
-0281 c003c970 beq 7 ,mouse_low_voltage_led_on 
-0282 20600000 rtn 
+02ea 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+02eb 247a0000 nrtn blank 
+02ec 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+02ed 247a0000 nrtn blank 
+02ee 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+02ef 247a0000 nrtn blank 
+02f0 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+02f1 247a0000 nrtn blank 
+02f2 20404904 call mouse_check_dpi_blink 
+02f3 20740000 rtn user 
+02f4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02f5 c4108000 rtnbit0 mouse_enable_low_voltage_led 
+02f6 c4020000 rtnbit0 mouse_low_voltage_flag 
+02f7 c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+02f8 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+02f9 1fe0fe01 increase 1 ,pdata 
+02fa 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
+02fb 1fe67c08 sub pdata ,8 ,null 
+02fc 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
+02fd c001c970 beq 3 ,mouse_low_voltage_led_on 
+02fe c002c976 beq 5 ,mouse_low_voltage_led_off 
+02ff c003c970 beq 7 ,mouse_low_voltage_led_on 
+0300 20600000 rtn 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/program/patch.prog	(revision 597)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/program/patch.prog	(working copy)
@@ -231,7 +231,7 @@
 	rtn wake
 	call g24_transmit_init
 	call g24_chmap_param_init
-	call mouse_gpio_init
+	call p_mouse_gpio_init
 	call mouse_param_init
 	setarg 67200
 	store 3,mem_24g_short_sleep_set
@@ -241,7 +241,75 @@
 	storet 2,mem_24g_rx_window
 	call p_mouse_sensor_set_angle
 	branch mouse_setting_config+5
+p_mouse_gpio_init:
+	fetcht 1,mem_eeprom_wp_gpio
+	call gpio_config_output
+	call usb_offline_check_init
+	fetcht 1,mem_lbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_rbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_mbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_bk_button_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_fw_button_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_dpi_button_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_matrix_public_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_config_select_device_button_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_customer_key_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_a_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_b_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_ta_data_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_whee_tb_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_sensor_motion_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_device_switch_gpio
+	call mouse_gpio_config_input_pu
+	
+
+	fetcht 1,mem_sensor_reset_gpio
+	call gpio_config_output
+
+//	fetcht 1,mem_config_low_voltage_alarm_gpio
+//	call gpio_config_output
+
+//	fetcht 1,mem_config_device_24g_led_gpio
+//	call gpio_config_output
+
+//	fetcht 1,mem_config_device_bt1_led_gpio
+//	call gpio_config_output
+//	
+//	fetcht 1,mem_config_device_bt2_led_gpio
+//	call gpio_config_output
 
+//	fetcht 1,mem_dpi_led_gpio
+//	call gpio_config_output
+
+	fetcht 1,mem_select_sensor_angle_gpio
+	branch mouse_gpio_config_input_pu
+	
+
+
+
+	
 p_mouse_sensor_set_angle:
 	fetch 1,mem_sensor_angle_connect_gnd
 	store 1,mem_config_sensor_angle
@@ -411,17 +479,17 @@
 	increase 1,pdata
 	store 2,mem_24g_txfail_cnt	
 	fetch 1,mem_24g_txfail_cnt+1
-	bbit1 2,g24_tx_attempt_fail
+	bbit1 1,g24_tx_attempt_fail
 	call g24_transmit_hop_process
-	call p_delay_100ms
+	call p_delay_40ms
 	branch p_g24_transmit_loop
 /////////////////////////////////// g24 250Hz use lpm//////////////////////////////////////
 	
-p_delay_100ms:
+p_delay_40ms:
 	fetch 1,mem_24g_txfail_cnt+1
-	sub pdata,0x01,null
+	sub pdata,0x00,null
 	rtn positive
-	arg 100,loopcnt
+	arg 40,loopcnt
 p_delay_ms_wait:
 	nop 12000
 	loop delay_ms_wait
@@ -447,16 +515,31 @@
 
 
 p_mouse_lpm_before_common:
-	fetcht 1,mem_whee_a_data_gpio		//reinit gpio pu after disable wheel wakeup
-	call gpio_config_input
-	fetcht 1,mem_whee_b_data_gpio
-	call gpio_config_input
+//	fetcht 1,mem_whee_a_data_gpio		//reinit gpio pu after disable wheel wakeup
+//	call gpio_config_input
+//	fetcht 1,mem_whee_b_data_gpio
+//	call gpio_config_input
 	
 	call mouse_wheel_check
 	fetch 1,mem_mouse_sensor_sclk_gpio	// set sclk high
 	arg gpcfg_output_high,temp
  	call gpio_config_function_int
-	branch mouse_lpm_before_common_next
+
+	call twspi_disable
+	
+	fetcht 1,mem_lbutton_gpio
+	call gpio_set_wake
+	fetcht 1,mem_rbutton_gpio
+	call gpio_set_wake
+	fetcht 1,mem_mbutton_gpio
+	call gpio_set_wake
+
+	fetcht 1,mem_bk_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_fw_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_dpi_button_gpio
+	branch gpio_set_wake
 
 
 p_mouse_priority_bb_event:
@@ -595,6 +678,7 @@
 	branch mouse_dpi_config
 
 p_mouse_bb_event_timer:
+	call p_mouse_device_poweron_timer
 	call mouse_adc_read
 	call p_mouse_low_voltage_led_timer
 	//24g
@@ -602,7 +686,6 @@
 	call g24_reconn_timeout_timer
 	call mouse_24g_long_sleep_param_update_timer
 	//led
-	call mouse_device_poweron_timer
 	call p_mouse_dpi_led_blink_delay_timer
 
 	call mouse_dpi_key_check_long_press
@@ -610,6 +693,37 @@
 	call p_mouse_commbination_key_process
 	branch mouse_bb_event_timer+11
 
+p_mouse_device_poweron_timer:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_POWER_ON_LED
+	fetch 1,mem_mouse_device_poweron_timer_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_mouse_device_poweron_timer_count
+	branch p_mouse_device_led_off,blank
+p_mouse_device_led_on:
+	call p_mouse_led_config_ouput
+	branch mouse_device_led_on
+
+p_mouse_device_led_off:
+	call p_mouse_led_config_ouput
+	branch mouse_device_led_off
+
+p_mouse_led_config_ouput:
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_24g_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_bt1_led_gpio
+	call gpio_config_output
+	
+	fetcht 1,mem_config_device_bt2_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_dpi_led_gpio
+	branch gpio_config_output
 p_mouse_dpi_led_blink_delay_timer:
 	arg mem_mouse_dpi_led_delay_count,regc
 	arg p_mouse_dpi_led_blink_init,regb
@@ -824,17 +938,101 @@
 	fetch 4,mem_mouse_x
 	rtn blank
 	call mouse_data_abs_check
-	setarg 0x06	//asm_flag enable condition
+	setarg 0x03	//asm_flag enable condition
 	call mouse_pdata_greater_than_check
 	call mouse_disable_asm,blank
 	ncall mouse_enable_asm,blank
-	setarg 0x04	//asm_flag disable condition
+	setarg 0x02	//asm_flag disable condition
 	call mouse_data_less_than_check
 	call mouse_disable_asm,blank
 	fetch 1,mem_mouse_asm_flag
-	beq 1,mouse_drawing_optima_modify
+	beq 1,p_mouse_drawing_optima_modify
+	call p_mouse_drawing_optima_modify+1
 	branch mouse_drawing_optima_init
 
+p_mouse_drawing_optima_modify:
+	call mouse_drawing_optima_modify
+	fetch 2,mem_mouse_x
+	fetcht 2,mem_mouse_data_x_value
+	iadd temp,temp
+	storet 2,mem_mouse_data_x_value
+	storet 2,mem_mouse_data_xy_value
+	call p_mouse_xy_data_judge
+	store 2,mem_mouse_data_xy_value
+	fetcht 2,mem_mouse_data_x_value
+	isub temp,pdata
+	fetcht 2,mem_mouse_x
+	ncall p_mouse_xy_data_judge_compensate,blank
+	storet 2,mem_mouse_x
+	fetch 2,mem_mouse_data_xy_value
+	store 2,mem_mouse_data_x_value
+
+	fetch 2,mem_mouse_y
+	fetcht 2,mem_mouse_data_y_value
+	iadd temp,temp
+	storet 2,mem_mouse_data_y_value
+	storet 2,mem_mouse_data_xy_value
+	call p_mouse_xy_data_judge
+	store 2,mem_mouse_data_xy_value
+	fetcht 2,mem_mouse_data_y_value
+	isub temp,pdata
+	fetcht 2,mem_mouse_y
+	ncall p_mouse_xy_data_judge_compensate,blank
+	storet 2,mem_mouse_y
+	fetch 2,mem_mouse_data_xy_value
+	store 2,mem_mouse_data_y_value
+	rtn
+
+p_mouse_xy_data_judge_compensate:
+	iadd temp,temp
+	setarg 0x00
+	store 2,mem_mouse_data_xy_value
+	rtn
+
+p_mouse_xy_data_judge:
+	fetch 1,mem_mouse_data_xy_value+1
+	branch p_mouse_current_xy_pdata_offset,blank
+	branch p_mouse_current_xy_ndata_offset
+
+p_mouse_current_xy_pdata_offset:
+	fetch 1,mem_mouse_data_xy_value
+	call p_mouse_current_xy_get_1_33_times
+//	call p_mouse_current_xy_get_1_25_times
+	store 1,mem_mouse_data_xy_value
+p_mouse_xy_data_offset_new:
+	fetch 2,mem_mouse_data_xy_value
+	rtn
+
+p_mouse_current_xy_ndata_offset:	
+	fetch 1,mem_mouse_data_xy_value
+	call mouse_pdata_invert
+	call p_mouse_current_xy_get_1_33_times
+//	call p_mouse_current_xy_get_1_25_times
+	call disable_blank,blank
+	call p_mouse_pdata_get_new_value
+	branch p_mouse_xy_data_offset_new
+p_mouse_pdata_get_new_value:	
+	call mouse_rega_in_out
+	sub pdata,0,pdata
+	store 1,mem_mouse_data_xy_value	
+	rtn
+//p_mouse_current_xy_get_1_25_times:	//0.6 times
+//	sub pdata,3,null
+//	rtn positive
+//	mul32 pdata,5,pdata
+//	div pdata,4
+//	call wait_div_end
+//	quotient pdata
+//	rtn
+p_mouse_current_xy_get_1_33_times:	//0.6 times
+	sub pdata,2,null
+	rtn positive
+	mul32 pdata,4,pdata
+	div pdata,3
+	call wait_div_end
+	quotient pdata
+	rtn
+
 p_mouse_adc_read_start:
 	fetch 1,mem_24g_device_led_status
 	nrtn blank
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/sched/mouse.dat	(revision 589)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/sched/mouse.dat	(working copy)
@@ -91,7 +91,7 @@
 #mouse flag byte8
 #bit0 MOUSE_ENABLE_SMOOTHER
 #bit1 MOUSE_ENABLE_XY_OFFSET
-01
+03
 
 mem_mouse_discovery_timeout:b0 04	#2min
 mem_mouse_24g_pair_timeout_init:08 07#3min	    24g reconn timer&pair timer
@@ -105,8 +105,8 @@
 mem_rssi_dis_min_ble_init:75
 mem_rssi_dis_max_ble_init:80
 
-mem_bk_button_gpio:0b
-mem_fw_button_gpio:0c
+mem_bk_button_gpio:0c
+mem_fw_button_gpio:0b
 mem_dpi_button_gpio:0d
 mem_matrix_public_gpio:ff
 mem_sensor_motion_gpio:ff
