Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/format/app_mouse.format	(revision 782)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/format/app_mouse.format	(working copy)
@@ -326,6 +326,7 @@
 //patch area
 1 mem_power_on_flag
 
+8 mem_ka8g2_sensor_poweron_init
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(revision 782)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(working copy)
@@ -2,80 +2,84 @@
 02
 aa
 55
-a2
-08
+ba
+09
 c2
 84
 00
-13
+14
 c0
 00
 00
-1c
+1d
 c0
 01
 80
-20
+21
 c0
 45
 80
-69
+6a
 c0
 4f
 80
-74
+75
 c0
 57
 00
-76
+77
 c0
 58
 00
-5d
+5e
 c0
 61
 81
-64
+90
 c0
 63
 80
-c0
+ea
 c0
 64
 80
-c4
+f0
 c0
 65
-00
-f5
+01
+21
 c0
 66
 00
-59
+5a
 c0
 67
 02
-22
+4e
 c0
 68
 01
-73
+9f
+c0
+6a
+02
+54
 c0
 6b
 01
-15
+41
 c0
 6c
 81
-84
+b0
 c0
 6d
 01
-cf
+fb
 c0
 74
-01
-da
+02
+06
 20
 20
 13
@@ -83,35 +87,35 @@
 c0
 19
 80
-39
+3a
 c0
 1a
 00
-3e
+3f
 c0
 43
-81
-d6
+82
+02
 c0
 50
-81
-ee
+82
+1a
 c0
 60
-01
-f8
+02
+24
 c0
 71
 01
-62
+8e
 c0
 75
 00
-9e
+c8
 c0
 76
 02
-1f
+4b
 20
 20
 13
@@ -179,7 +183,7 @@
 20
 40
 00
-2d
+2e
 20
 20
 08
@@ -211,7 +215,7 @@
 20
 3a
 00
-36
+37
 6f
 e0
 c6
@@ -371,7 +375,7 @@
 20
 40
 00
-3e
+3f
 20
 20
 3e
@@ -423,7 +427,7 @@
 20
 20
 00
-5d
+5e
 70
 8a
 8b
@@ -507,23 +511,35 @@
 20
 40
 00
-7f
+81
+20
+40
+02
+66
 20
 20
 3b
-c8
+c9
 58
 00
 00
-82
+86
 67
 e1
 48
 9b
+58
+00
+00
+a2
+67
+e1
+48
+9d
 20
 20
 3b
-d1
+d3
 c6
 93
 00
@@ -543,7 +559,7 @@
 c3
 0a
 80
-89
+8d
 6f
 e0
 cb
@@ -563,7 +579,7 @@
 c2
 80
 80
-98
+9c
 68
 48
 c7
@@ -636,6 +652,158 @@
 20
 26
 e1
+6f
+e4
+4b
+ab
+c4
+0b
+00
+00
+6f
+e0
+ca
+ae
+20
+7a
+00
+00
+6f
+e0
+c8
+a7
+20
+7a
+00
+00
+6f
+e0
+cb
+a1
+1f
+e0
+fe
+01
+1f
+e1
+7e
+03
+67
+e0
+cb
+a1
+24
+7a
+00
+00
+70
+4b
+a2
+00
+6f
+e0
+cb
+a2
+1f
+e0
+fe
+01
+67
+e0
+cb
+a2
+1f
+e6
+7c
+08
+24
+21
+00
+b8
+20
+40
+25
+9a
+20
+40
+26
+5b
+24
+2c
+00
+be
+24
+37
+80
+be
+20
+40
+48
+b5
+20
+40
+25
+97
+6f
+e0
+cb
+a3
+1f
+e0
+fe
+01
+67
+e0
+cb
+a3
+c0
+08
+00
+c0
+20
+60
+00
+00
+20
+40
+22
+cb
+20
+20
+00
+ae
+70
+4b
+a3
+00
+6f
+e0
+cb
+a4
+c3
+80
+00
+00
+79
+20
+7e
+00
+67
+e0
+cb
+a4
+6f
+e1
+4b
+bc
+67
+e1
+4a
+b2
+20
+20
+02
+66
 20
 40
 26
@@ -643,11 +811,11 @@
 24
 34
 01
-07
+33
 20
 40
 00
-ad
+d7
 20
 40
 26
@@ -659,7 +827,7 @@
 24
 3a
 00
-a8
+d2
 6f
 e4
 48
@@ -735,7 +903,7 @@
 20
 40
 00
-b8
+e2
 20
 20
 26
@@ -747,7 +915,7 @@
 24
 5a
 00
-bc
+e6
 70
 4b
 e1
@@ -770,8 +938,8 @@
 00
 20
 20
-00
-ef
+01
+1b
 58
 00
 00
@@ -785,9 +953,17 @@
 be
 23
 20
+40
+02
+5f
+20
+40
+02
+66
+20
 20
 3e
-21
+23
 20
 40
 42
@@ -854,8 +1030,8 @@
 56
 20
 40
-00
-d8
+01
+04
 6f
 e4
 4b
@@ -866,8 +1042,8 @@
 00
 20
 20
-00
-e5
+01
+11
 6f
 e1
 cb
@@ -914,8 +1090,8 @@
 01
 c2
 00
-00
-dc
+01
+08
 20
 60
 00
@@ -1050,12 +1226,12 @@
 01
 20
 40
-42
-3c
+02
+66
 20
 20
 01
-0d
+39
 6f
 e0
 c8
@@ -1079,7 +1255,7 @@
 20
 20
 01
-0d
+39
 20
 40
 26
@@ -1119,31 +1295,31 @@
 c0
 00
 81
-1e
+4a
 c0
 1e
 01
-3e
+6a
 c0
 1c
 81
-3c
+68
 c0
 1d
 01
-45
+71
 c0
 19
 01
-28
+54
 c0
 22
 01
-2f
+5b
 c0
 0a
 81
-20
+4c
 20
 20
 43
@@ -1195,7 +1371,7 @@
 c0
 00
 81
-2c
+58
 70
 4b
 76
@@ -1310,8 +1486,8 @@
 a5
 24
 3a
-00
-fe
+01
+2a
 6f
 e0
 c8
@@ -1319,15 +1495,15 @@
 c0
 01
 01
-4c
+78
 c0
 02
 01
-55
+81
 c0
 01
 81
-5a
+86
 20
 20
 48
@@ -1375,7 +1551,7 @@
 c3
 17
 81
-5f
+8b
 6f
 e0
 cb
@@ -1383,7 +1559,7 @@
 c0
 00
 81
-5f
+8b
 20
 20
 48
@@ -1395,15 +1571,15 @@
 c3
 17
 81
-5f
+8b
 c2
 89
 81
-5f
+8b
 c2
 89
 01
-5f
+8b
 20
 20
 48
@@ -1418,8 +1594,8 @@
 39
 20
 20
-00
-fe
+01
+2a
 70
 48
 8b
@@ -1443,7 +1619,7 @@
 c0
 00
 01
-69
+95
 20
 20
 3d
@@ -1495,7 +1671,7 @@
 20
 40
 01
-76
+a2
 20
 20
 40
@@ -1547,7 +1723,7 @@
 20
 3a
 01
-9d
+c9
 67
 e0
 cb
@@ -1583,7 +1759,7 @@
 20
 40
 01
-9a
+c6
 20
 40
 40
@@ -1595,7 +1771,7 @@
 20
 40
 01
-b2
+de
 20
 40
 44
@@ -1643,7 +1819,7 @@
 20
 20
 01
-c7
+f3
 da
 60
 4b
@@ -1651,7 +1827,7 @@
 da
 40
 01
-9d
+c9
 20
 20
 31
@@ -1707,11 +1883,11 @@
 20
 41
 01
-ac
+d8
 24
 41
 01
-b0
+dc
 20
 20
 48
@@ -1747,7 +1923,7 @@
 c0
 00
 01
-b8
+e4
 6f
 e4
 4b
@@ -1763,7 +1939,7 @@
 20
 20
 01
-bb
+e7
 6f
 e4
 4b
@@ -1799,7 +1975,7 @@
 20
 22
 81
-c2
+ee
 20
 20
 44
@@ -1839,7 +2015,7 @@
 da
 40
 01
-cc
+f8
 20
 20
 31
@@ -1850,8 +2026,8 @@
 38
 c0
 00
-00
-fe
+01
+2a
 20
 20
 43
@@ -1926,8 +2102,8 @@
 00
 c0
 04
-81
-e2
+82
+0e
 20
 20
 4d
@@ -2026,8 +2202,8 @@
 06
 c0
 02
-01
-fb
+02
+27
 20
 20
 19
@@ -2043,11 +2219,11 @@
 c0
 05
 02
-00
+2c
 c0
 09
 02
-0f
+3b
 20
 20
 1c
@@ -2075,7 +2251,7 @@
 c2
 81
 82
-0a
+36
 6f
 e1
 44
@@ -2103,11 +2279,11 @@
 24
 22
 82
-06
+32
 24
 34
 02
-06
+32
 20
 20
 1e
@@ -2212,8 +2388,112 @@
 20
 3f
 75
-c6
-d2
+20
+40
+3f
+65
+6f
+e0
+c9
+27
+c0
+05
+82
+5b
+20
+40
+42
+32
+da
+60
+4a
+a3
+20
+40
+42
+2b
+20
+20
+40
+8e
+20
+40
+02
+62
+da
+60
+4b
+e3
+20
+40
+42
+2b
+20
+20
+40
+8e
+6f
+e0
+c9
+27
+c0
+05
+82
+62
+20
+20
+42
+32
+58
+00
+97
+06
+20
+40
+5b
+0c
+20
+00
+2e
+e0
+20
+60
+00
+00
+20
+40
+41
+a7
+20
+40
+3f
+65
+6f
+e0
+c9
+27
+c0
+05
+82
+6c
+58
+00
+08
+06
+20
+20
+5b
+0c
+58
+00
+1f
+06
+20
+20
+5b
+0c
+19
+1c
 aa
 55
 40
@@ -2246,7 +2526,7 @@
 00
 88
 56
-41
+51
 06
 00
 01
@@ -2986,13 +3266,13 @@
 2a
 3f
 15
-06
-0c
-10
-04
+14
+1b
+11
+0e
 aa
 55
-a2
+b2
 00
 df
 49
@@ -3153,547 +3433,267 @@
 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
-01
-aa
-55
-01
-00
-64
-48
-01
-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
-e0
-2d
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+ba
+09
+00
 ff
 ff
+09
+a5
+46
+34
+60
+07
+69
+04
+7d
+20
+7e
+00
+09
+00
 ff
 ff
+aa
+55
+08
+00
+a3
+4a
+09
+5a
+0b
+f3
+09
+00
 ff
 ff
+aa
+55
+08
+00
+e3
+4b
+09
+a5
+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
+01
+aa
+55
+01
+00
+64
+48
+01
+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
+c1
+d7
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-86
-d5
+9f
+14
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(revision 782)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(working copy)
@@ -2,80 +2,84 @@
 02
 aa
 55
-a2
-08
+ba
+09
 c2
 84
 00
-13
+14
 c0
 00
 00
-1c
+1d
 c0
 01
 80
-20
+21
 c0
 45
 80
-69
+6a
 c0
 4f
 80
-74
+75
 c0
 57
 00
-76
+77
 c0
 58
 00
-5d
+5e
 c0
 61
 81
-64
+90
 c0
 63
 80
-c0
+ea
 c0
 64
 80
-c4
+f0
 c0
 65
-00
-f5
+01
+21
 c0
 66
 00
-59
+5a
 c0
 67
 02
-22
+4e
 c0
 68
 01
-73
+9f
+c0
+6a
+02
+54
 c0
 6b
 01
-15
+41
 c0
 6c
 81
-84
+b0
 c0
 6d
 01
-cf
+fb
 c0
 74
-01
-da
+02
+06
 20
 20
 13
@@ -83,35 +87,35 @@
 c0
 19
 80
-39
+3a
 c0
 1a
 00
-3e
+3f
 c0
 43
-81
-d6
+82
+02
 c0
 50
-81
-ee
+82
+1a
 c0
 60
-01
-f8
+02
+24
 c0
 71
 01
-62
+8e
 c0
 75
 00
-9e
+c8
 c0
 76
 02
-1f
+4b
 20
 20
 13
@@ -179,7 +183,7 @@
 20
 40
 00
-2d
+2e
 20
 20
 08
@@ -211,7 +215,7 @@
 20
 3a
 00
-36
+37
 6f
 e0
 c6
@@ -371,7 +375,7 @@
 20
 40
 00
-3e
+3f
 20
 20
 3e
@@ -423,7 +427,7 @@
 20
 20
 00
-5d
+5e
 70
 8a
 8b
@@ -507,23 +511,35 @@
 20
 40
 00
-7f
+81
+20
+40
+02
+66
 20
 20
 3b
-c8
+c9
 58
 00
 00
-82
+86
 67
 e1
 48
 9b
+58
+00
+00
+a2
+67
+e1
+48
+9d
 20
 20
 3b
-d1
+d3
 c6
 93
 00
@@ -543,7 +559,7 @@
 c3
 0a
 80
-89
+8d
 6f
 e0
 cb
@@ -563,7 +579,7 @@
 c2
 80
 80
-98
+9c
 68
 48
 c7
@@ -636,6 +652,158 @@
 20
 26
 e1
+6f
+e4
+4b
+ab
+c4
+0b
+00
+00
+6f
+e0
+ca
+ae
+20
+7a
+00
+00
+6f
+e0
+c8
+a7
+20
+7a
+00
+00
+6f
+e0
+cb
+a1
+1f
+e0
+fe
+01
+1f
+e1
+7e
+03
+67
+e0
+cb
+a1
+24
+7a
+00
+00
+70
+4b
+a2
+00
+6f
+e0
+cb
+a2
+1f
+e0
+fe
+01
+67
+e0
+cb
+a2
+1f
+e6
+7c
+08
+24
+21
+00
+b8
+20
+40
+25
+9a
+20
+40
+26
+5b
+24
+2c
+00
+be
+24
+37
+80
+be
+20
+40
+48
+b5
+20
+40
+25
+97
+6f
+e0
+cb
+a3
+1f
+e0
+fe
+01
+67
+e0
+cb
+a3
+c0
+08
+00
+c0
+20
+60
+00
+00
+20
+40
+22
+cb
+20
+20
+00
+ae
+70
+4b
+a3
+00
+6f
+e0
+cb
+a4
+c3
+80
+00
+00
+79
+20
+7e
+00
+67
+e0
+cb
+a4
+6f
+e1
+4b
+bc
+67
+e1
+4a
+b2
+20
+20
+02
+66
 20
 40
 26
@@ -643,11 +811,11 @@
 24
 34
 01
-07
+33
 20
 40
 00
-ad
+d7
 20
 40
 26
@@ -659,7 +827,7 @@
 24
 3a
 00
-a8
+d2
 6f
 e4
 48
@@ -735,7 +903,7 @@
 20
 40
 00
-b8
+e2
 20
 20
 26
@@ -747,7 +915,7 @@
 24
 5a
 00
-bc
+e6
 70
 4b
 e1
@@ -770,8 +938,8 @@
 00
 20
 20
-00
-ef
+01
+1b
 58
 00
 00
@@ -785,9 +953,17 @@
 be
 23
 20
+40
+02
+5f
+20
+40
+02
+66
+20
 20
 3e
-21
+23
 20
 40
 42
@@ -854,8 +1030,8 @@
 56
 20
 40
-00
-d8
+01
+04
 6f
 e4
 4b
@@ -866,8 +1042,8 @@
 00
 20
 20
-00
-e5
+01
+11
 6f
 e1
 cb
@@ -914,8 +1090,8 @@
 01
 c2
 00
-00
-dc
+01
+08
 20
 60
 00
@@ -1050,12 +1226,12 @@
 01
 20
 40
-42
-3c
+02
+66
 20
 20
 01
-0d
+39
 6f
 e0
 c8
@@ -1079,7 +1255,7 @@
 20
 20
 01
-0d
+39
 20
 40
 26
@@ -1119,31 +1295,31 @@
 c0
 00
 81
-1e
+4a
 c0
 1e
 01
-3e
+6a
 c0
 1c
 81
-3c
+68
 c0
 1d
 01
-45
+71
 c0
 19
 01
-28
+54
 c0
 22
 01
-2f
+5b
 c0
 0a
 81
-20
+4c
 20
 20
 43
@@ -1195,7 +1371,7 @@
 c0
 00
 81
-2c
+58
 70
 4b
 76
@@ -1310,8 +1486,8 @@
 a5
 24
 3a
-00
-fe
+01
+2a
 6f
 e0
 c8
@@ -1319,15 +1495,15 @@
 c0
 01
 01
-4c
+78
 c0
 02
 01
-55
+81
 c0
 01
 81
-5a
+86
 20
 20
 48
@@ -1375,7 +1551,7 @@
 c3
 17
 81
-5f
+8b
 6f
 e0
 cb
@@ -1383,7 +1559,7 @@
 c0
 00
 81
-5f
+8b
 20
 20
 48
@@ -1395,15 +1571,15 @@
 c3
 17
 81
-5f
+8b
 c2
 89
 81
-5f
+8b
 c2
 89
 01
-5f
+8b
 20
 20
 48
@@ -1418,8 +1594,8 @@
 39
 20
 20
-00
-fe
+01
+2a
 70
 48
 8b
@@ -1443,7 +1619,7 @@
 c0
 00
 01
-69
+95
 20
 20
 3d
@@ -1495,7 +1671,7 @@
 20
 40
 01
-76
+a2
 20
 20
 40
@@ -1547,7 +1723,7 @@
 20
 3a
 01
-9d
+c9
 67
 e0
 cb
@@ -1583,7 +1759,7 @@
 20
 40
 01
-9a
+c6
 20
 40
 40
@@ -1595,7 +1771,7 @@
 20
 40
 01
-b2
+de
 20
 40
 44
@@ -1643,7 +1819,7 @@
 20
 20
 01
-c7
+f3
 da
 60
 4b
@@ -1651,7 +1827,7 @@
 da
 40
 01
-9d
+c9
 20
 20
 31
@@ -1707,11 +1883,11 @@
 20
 41
 01
-ac
+d8
 24
 41
 01
-b0
+dc
 20
 20
 48
@@ -1747,7 +1923,7 @@
 c0
 00
 01
-b8
+e4
 6f
 e4
 4b
@@ -1763,7 +1939,7 @@
 20
 20
 01
-bb
+e7
 6f
 e4
 4b
@@ -1799,7 +1975,7 @@
 20
 22
 81
-c2
+ee
 20
 20
 44
@@ -1839,7 +2015,7 @@
 da
 40
 01
-cc
+f8
 20
 20
 31
@@ -1850,8 +2026,8 @@
 38
 c0
 00
-00
-fe
+01
+2a
 20
 20
 43
@@ -1926,8 +2102,8 @@
 00
 c0
 04
-81
-e2
+82
+0e
 20
 20
 4d
@@ -2026,8 +2202,8 @@
 06
 c0
 02
-01
-fb
+02
+27
 20
 20
 19
@@ -2043,11 +2219,11 @@
 c0
 05
 02
-00
+2c
 c0
 09
 02
-0f
+3b
 20
 20
 1c
@@ -2075,7 +2251,7 @@
 c2
 81
 82
-0a
+36
 6f
 e1
 44
@@ -2103,11 +2279,11 @@
 24
 22
 82
-06
+32
 24
 34
 02
-06
+32
 20
 20
 1e
@@ -2212,8 +2388,112 @@
 20
 3f
 75
-c6
-d2
+20
+40
+3f
+65
+6f
+e0
+c9
+27
+c0
+05
+82
+5b
+20
+40
+42
+32
+da
+60
+4a
+a3
+20
+40
+42
+2b
+20
+20
+40
+8e
+20
+40
+02
+62
+da
+60
+4b
+e3
+20
+40
+42
+2b
+20
+20
+40
+8e
+6f
+e0
+c9
+27
+c0
+05
+82
+62
+20
+20
+42
+32
+58
+00
+97
+06
+20
+40
+5b
+0c
+20
+00
+2e
+e0
+20
+60
+00
+00
+20
+40
+41
+a7
+20
+40
+3f
+65
+6f
+e0
+c9
+27
+c0
+05
+82
+6c
+58
+00
+08
+06
+20
+20
+5b
+0c
+58
+00
+1f
+06
+20
+20
+5b
+0c
+19
+1c
 aa
 55
 40
@@ -2246,7 +2526,7 @@
 00
 88
 56
-41
+51
 06
 00
 01
@@ -2986,13 +3266,13 @@
 2a
 3f
 15
-06
-0c
-10
-04
+14
+1b
+11
+0e
 aa
 55
-a2
+b2
 00
 df
 49
@@ -3153,547 +3433,267 @@
 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
-01
-aa
-55
-01
-00
-64
-48
-01
-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
-e0
-2d
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+ba
+09
+00
 ff
 ff
+09
+a5
+46
+34
+60
+07
+69
+04
+7d
+20
+7e
+00
+09
+00
 ff
 ff
+aa
+55
+08
+00
+a3
+4a
+09
+5a
+0b
+f3
+09
+00
 ff
 ff
+aa
+55
+08
+00
+e3
+4b
+09
+a5
+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
+01
+aa
+55
+01
+00
+64
+48
+01
+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
+c1
+d7
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-86
-d5
+9f
+14
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/memmap.format	(revision 782)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/memmap.format	(working copy)
@@ -2204,6 +2204,7 @@
 0x4bde mem_mouse_set_high_impedance_bit_set
 0x4be1 mem_sensor_shutdown_flag
 0x4be2 mem_power_on_flag
+0x4be3 mem_ka8g2_sensor_poweron_init
 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/mouse_pubulic/output/program.lis	(revision 782)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/program.lis	(working copy)
@@ -1,709 +1,801 @@
               include "bt_format "
               org 0x0000
-0000 c2840013 bbit1 8 ,pf_patch_ext 
-0001 c000001c beq patch00_0 ,p_soft_reset 
-0002 c0018020 beq patch00_3 ,p_main_loop 
-0003 c0458069 beq patch11_3 ,p_initialize_radio_cont 
-0004 c04f8074 beq patch13_7 ,p_init_param 
-0005 c0570076 beq patch15_6 ,p_app_init 
-0006 c058005d beq patch16_0 ,p_app_evt_100ms_loop 
-0007 c0618164 beq patch18_3 ,p_mouse_start_work 
-0008 c06380c0 beq patch18_7 ,p_mouse_app_enter_hibernate 
-0009 c06480c4 beq patch19_1 ,p_mouse_setgpio_hibernate 
-000a c06500f5 beq patch19_2 ,p_mouse_lpm_before_common 
-000b c0660059 beq patch19_4 ,p_mouse_adc_read_start 
-000c c0670222 beq patch19_6 ,p_mouse_motion 
-000d c0680173 beq patch1a_0 ,p_mouse_seting_dpi 
-000e c06b0115 beq patch1a_6 ,p_mouse_priority_bb_event 
-000f c06c8184 beq patch1b_1 ,p_mouse_bb_event_timer 
-0010 c06d01cf beq patch1b_2 ,p_mouse_start_discovery 
-0011 c07401da beq patch1d_0 ,p_hid_rx_process 
-0012 2020137c branch loop 
+0000 c2840014 bbit1 8 ,pf_patch_ext 
+0001 c000001d beq patch00_0 ,p_soft_reset 
+0002 c0018021 beq patch00_3 ,p_main_loop 
+0003 c045806a beq patch11_3 ,p_initialize_radio_cont 
+0004 c04f8075 beq patch13_7 ,p_init_param 
+0005 c0570077 beq patch15_6 ,p_app_init 
+0006 c058005e beq patch16_0 ,p_app_evt_100ms_loop 
+0007 c0618190 beq patch18_3 ,p_mouse_start_work 
+0008 c06380ea beq patch18_7 ,p_mouse_app_enter_hibernate 
+0009 c06480f0 beq patch19_1 ,p_mouse_setgpio_hibernate 
+000a c0650121 beq patch19_2 ,p_mouse_lpm_before_common 
+000b c066005a beq patch19_4 ,p_mouse_adc_read_start 
+000c c067024e beq patch19_6 ,p_mouse_motion 
+000d c068019f beq patch1a_0 ,p_mouse_seting_dpi 
+000e c06a0254 beq patch1a_4 ,p_mouse_sensor_poweron 
+000f c06b0141 beq patch1a_6 ,p_mouse_priority_bb_event 
+0010 c06c81b0 beq patch1b_1 ,p_mouse_bb_event_timer 
+0011 c06d01fb beq patch1b_2 ,p_mouse_start_discovery 
+0012 c0740206 beq patch1d_0 ,p_hid_rx_process 
+0013 2020137c branch loop 
 
 pf_patch_ext:
-0013 c0198039 beq patch26_3 ,p_adc_init_data 
-0014 c01a003e beq patch26_4 ,p_enable_adc 
-0015 c04381d6 beq patch30_7 ,p_ui_timer_check 
-0016 c05081ee beq patch34_1 ,p_le_slave_match 
-0017 c06001f8 beq patch38_0 ,p_le_parse_l2cap 
-0018 c0710162 beq patch3c_2 ,p_g24_pair_dispatch 
-0019 c075009e beq patch3d_2 ,p_g24_transmit_no_interrupt 
-001a c076021f beq patch3d_4 ,p_g24_lpm_wait 
-001b 2020137c branch loop 
+0014 c019803a beq patch26_3 ,p_adc_init_data 
+0015 c01a003f beq patch26_4 ,p_enable_adc 
+0016 c0438202 beq patch30_7 ,p_ui_timer_check 
+0017 c050821a beq patch34_1 ,p_le_slave_match 
+0018 c0600224 beq patch38_0 ,p_le_parse_l2cap 
+0019 c071018e beq patch3c_2 ,p_g24_pair_dispatch 
+001a c07500c8 beq patch3d_2 ,p_g24_transmit_no_interrupt 
+001b c076024b beq patch3d_4 ,p_g24_lpm_wait 
+001c 2020137c branch loop 
 
 p_soft_reset:
-001c 20800000 clear_stack 
-001d 204030f3 call app_param_init 
-001e 20403bfd call mouse_xtal_init 
-001f 20200804 branch soft_reset + 3 
+001d 20800000 clear_stack 
+001e 204030f3 call app_param_init 
+001f 20403bfd call mouse_xtal_init 
+0020 20200804 branch soft_reset + 3 
 
 p_main_loop:
-0020 2040706c call sp_calc_sequence 
-0021 20407597 call sp_calc_sequence_256 
-0022 20406ea7 call sp_calc_sequence_256_check 
-0023 20401b93 call le_advertising_dispatch + 1 
-0024 2040083a call idle_dispatch 
-0025 20403108 call app_process_idle + 1 
-0026 20400892 call inquiry_dispatch + 1 
-0027 20400b08 call inquiry_scan_dispatch + 1 
-0028 20400b7b call page_scan_dispatch + 1 
-0029 20400823 call connection_dispatch + 1 
-002a 204021d3 call g24_dispatch + 2 
-002b 2040002d call p_lpm_dispatch 
-002c 20200813 branch main_loop 
+0021 2040706c call sp_calc_sequence 
+0022 20407597 call sp_calc_sequence_256 
+0023 20406ea7 call sp_calc_sequence_256_check 
+0024 20401b93 call le_advertising_dispatch + 1 
+0025 2040083a call idle_dispatch 
+0026 20403108 call app_process_idle + 1 
+0027 20400892 call inquiry_dispatch + 1 
+0028 20400b08 call inquiry_scan_dispatch + 1 
+0029 20400b7b call page_scan_dispatch + 1 
+002a 20400823 call connection_dispatch + 1 
+002b 204021d3 call g24_dispatch + 2 
+002c 2040002e call p_lpm_dispatch 
+002d 20200813 branch main_loop 
 
 p_lpm_dispatch:
-002d 20401465 call lpo_calibration 
-002e 6fe1c174 fetch 3 ,mem_clks_per_lpo 
-002f 207a0000 rtn blank 
-0030 6fe0c099 fetch 1 ,mem_lpm_mode 
-0031 207a0000 rtn blank 
-0032 6fe0c764 fetch 1 ,mem_ssp_enable 
-0033 203a0036 branch p_lpm_dispatch_next ,blank 
-0034 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
-0035 207a0000 rtn blank 
+002e 20401465 call lpo_calibration 
+002f 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+0030 207a0000 rtn blank 
+0031 6fe0c099 fetch 1 ,mem_lpm_mode 
+0032 207a0000 rtn blank 
+0033 6fe0c764 fetch 1 ,mem_ssp_enable 
+0034 203a0037 branch p_lpm_dispatch_next ,blank 
+0035 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
+0036 207a0000 rtn blank 
 
 p_lpm_dispatch_next:
-0036 6fe0c6ba fetch 1 ,mem_sc_calc 
-0037 247a0000 nrtn blank 
-0038 202014ea branch lpm_dispatch_next + 3 
+0037 6fe0c6ba fetch 1 ,mem_sc_calc 
+0038 247a0000 nrtn blank 
+0039 202014ea branch lpm_dispatch_next + 3 
 
 p_adc_init_data:
-0039 da20099e arg mem_temp_block2 ,rega 
-003a d840000c arg 12 ,temp 
-003b 58000030 setarg efuse_offset_adc_param 
-003c 20405e63 call efuse_read_data 
-003d 202060bf branch adc_init_data + 6 
+003a da20099e arg mem_temp_block2 ,rega 
+003b d840000c arg 12 ,temp 
+003c 58000030 setarg efuse_offset_adc_param 
+003d 20405e63 call efuse_read_data 
+003e 202060bf branch adc_init_data + 6 
 
 p_enable_adc:
-003e 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
-003f 708a123d jam 0x3d ,core_rf_ldo_cfg6 
-0040 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
-0041 708a0a0c jam 0x0c ,core_rf_ldo_en0 
-0042 6ff08a09 fetch 1 ,core_clkpll_cfg6 
-0043 79207e07 set1 7 ,pdata 
-0044 67f08a09 store 1 ,core_clkpll_cfg6 
-0045 708a0b04 jam 0x04 ,core_rf_ldo_en1 
-0046 2000003c nop 60 
-0047 708a1600 jam 0 ,core_syn_en 
-0048 708a1706 jam 6 ,core_rx_en0 
-0049 2040611a call read_adc_mode 
-004a 67f08a97 store 1 ,core_gpadc_ctrl 
-004b 7080dc03 jam 0x03 ,core_sum_ctrl 
-004c 2000003c nop 60 
-004d 6ff08053 fetch 1 ,core_sum_en 
-004e 79207e07 set1 7 ,pdata 
-004f 67f08053 store 1 ,core_sum_en 
-0050 200003e8 nop 1000 
-0051 6ff10150 fetch 2 ,core_adc_sum 
-0052 67e144a2 store 2 ,mem_adc_current_value 
-0053 6ff08053 fetch 1 ,core_sum_en 
-0054 793ffe07 set0 7 ,pdata 
-0055 67f08053 store 1 ,core_sum_en 
-0056 708a9700 jam 0 ,core_gpadc_ctrl 
-0057 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
-0058 20600000 rtn 
+003f 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+0040 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+0041 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+0042 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+0043 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+0044 79207e07 set1 7 ,pdata 
+0045 67f08a09 store 1 ,core_clkpll_cfg6 
+0046 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+0047 2000003c nop 60 
+0048 708a1600 jam 0 ,core_syn_en 
+0049 708a1706 jam 6 ,core_rx_en0 
+004a 2040611a call read_adc_mode 
+004b 67f08a97 store 1 ,core_gpadc_ctrl 
+004c 7080dc03 jam 0x03 ,core_sum_ctrl 
+004d 2000003c nop 60 
+004e 6ff08053 fetch 1 ,core_sum_en 
+004f 79207e07 set1 7 ,pdata 
+0050 67f08053 store 1 ,core_sum_en 
+0051 200003e8 nop 1000 
+0052 6ff10150 fetch 2 ,core_adc_sum 
+0053 67e144a2 store 2 ,mem_adc_current_value 
+0054 6ff08053 fetch 1 ,core_sum_en 
+0055 793ffe07 set0 7 ,pdata 
+0056 67f08053 store 1 ,core_sum_en 
+0057 708a9700 jam 0 ,core_gpadc_ctrl 
+0058 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
+0059 20600000 rtn 
 
 p_mouse_adc_read_start:
-0059 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-005a 247a0000 nrtn blank 
-005b 2040003e call p_enable_adc 
-005c 20203ebb branch mouse_adc_read_start + 3 
+005a 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+005b 247a0000 nrtn blank 
+005c 2040003f call p_enable_adc 
+005d 20203ebb branch mouse_adc_read_start + 3 
 
 p_app_evt_100ms_loop:
-005d 6fe0830d fetch 1 ,mem_app_evt_timer_count 
-005e 207a0000 rtn blank 
-005f 1fe0ffff increase -1 ,pdata 
-0060 67e0830d store 1 ,mem_app_evt_timer_count 
-0061 204077c5 call ui_button_polling 
-0062 204031e3 call app_lpm_wake_auto_lock_timer 
-0063 204031a4 call app_unsniff_delay_timer 
-0064 204031aa call app_discovery_timer 
-0065 20405cdc call flash_write_spi_sm_timer 
-0066 6fe1446f fetch 2 ,mem_cb_event_timer 
-0067 20407e05 call callback_func 
-0068 2020005d branch p_app_evt_100ms_loop 
+005e 6fe0830d fetch 1 ,mem_app_evt_timer_count 
+005f 207a0000 rtn blank 
+0060 1fe0ffff increase -1 ,pdata 
+0061 67e0830d store 1 ,mem_app_evt_timer_count 
+0062 204077c5 call ui_button_polling 
+0063 204031e3 call app_lpm_wake_auto_lock_timer 
+0064 204031a4 call app_unsniff_delay_timer 
+0065 204031aa call app_discovery_timer 
+0066 20405cdc call flash_write_spi_sm_timer 
+0067 6fe1446f fetch 2 ,mem_cb_event_timer 
+0068 20407e05 call callback_func 
+0069 2020005e branch p_app_evt_100ms_loop 
 
 p_initialize_radio_cont:
-0069 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-006a 2040126a call initialize_syn_afc_cfg1 
-006b 20401271 call initialize_rf_ldo_cfg1 
-006c 20401277 call initialize_rc_cal 
-006d 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-006e 708a0305 jam 5 ,core_clkpll_cfg0 
-006f 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-0070 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-0071 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-0072 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-0073 2020125d branch initialize_radio_cont + 8 
+006a 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+006b 2040126a call initialize_syn_afc_cfg1 
+006c 20401271 call initialize_rf_ldo_cfg1 
+006d 20401277 call initialize_rc_cal 
+006e 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+006f 708a0305 jam 5 ,core_clkpll_cfg0 
+0070 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0071 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0072 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0073 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0074 2020125d branch initialize_radio_cont + 8 
 
 p_init_param:
-0074 70008000 jam 0 ,mem_lmo_tid2 
-0075 202013b7 branch init_param_next + 1 
+0075 70008000 jam 0 ,mem_lmo_tid2 
+0076 202013b7 branch init_param_next + 1 
 
 p_app_init:
 
 p_mouse_init:
-0076 20406df3 call enable_authrom 
-0077 20403bf0 call mouse_setting_config 
-0078 204041a7 call mouse_init_sunt 
-0079 20758000 rtn wake 
-007a 2040408e call mouse_dpi_config 
-007b 20403d8a call mouse_usb_check_enable 
-007c 20404728 call mouse_drawing_optima_init 
-007d 2040007f call p_mouse_cb_fuction 
-007e 20203bc8 branch mouse_init + 7 
+0077 20406df3 call enable_authrom 
+0078 20403bf0 call mouse_setting_config 
+0079 204041a7 call mouse_init_sunt 
+007a 20758000 rtn wake 
+007b 2040408e call mouse_dpi_config 
+007c 20403d8a call mouse_usb_check_enable 
+007d 20404728 call mouse_drawing_optima_init 
+007e 20400081 call p_mouse_cb_fuction 
+007f 20400266 call p_mouse_sensor_powerdown 
+0080 20203bc9 branch mouse_init + 8 
 
 p_mouse_cb_fuction:
-007f 58000082 setarg p_mouse_24g_package_data 
-0080 67e1489b store 2 ,mem_cb_24g_transmit_data 
-0081 20203bd1 branch mouse_cb_fuction + 2 
+0081 58000086 setarg p_mouse_24g_package_data 
+0082 67e1489b store 2 ,mem_cb_24g_transmit_data 
+0083 580000a2 setarg p_mouse_24g_search_dongle 
+0084 67e1489d store 2 ,mem_cb_24g_search_receiver 
+0085 20203bd3 branch mouse_cb_fuction + 4 
 
 p_mouse_24g_package_data:
-0082 c6930000 rtnmark0 mark_24g 
-0083 20403f70 call mouse_motion 
-0084 24740000 nrtn user 
-0085 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0086 c30a8089 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-0087 6fe0cb8b fetch 1 ,mem_customer_key 
-0088 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
+0086 c6930000 rtnmark0 mark_24g 
+0087 20403f70 call mouse_motion 
+0088 24740000 nrtn user 
+0089 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+008a c30a808d bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+008b 6fe0cb8b fetch 1 ,mem_customer_key 
+008c 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-0089 204042cb call mouse_data_xy_release 
-008a 6fe0c836 fetch 1 ,mem_24g_data_type 
-008b c2808098 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
-008c 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
-008d 6fe0c8d0 fetch 1 ,mem_mouse_key 
-008e 9841fe00 ior temp ,pdata 
-008f 67e0c8d0 store 1 ,mem_mouse_key 
-0090 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
-0091 6fe0c8d5 fetch 1 ,mem_mouse_z 
-0092 9840fe00 iadd temp ,pdata 
-0093 67e0c8d5 store 1 ,mem_mouse_z 
-0094 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
-0095 6fe0c8d6 fetch 1 ,mem_mouse_tz 
+008d 204042cb call mouse_data_xy_release 
+008e 6fe0c836 fetch 1 ,mem_24g_data_type 
+008f c280809c bbit1 1 ,p_mouse_24g_mouse_package_data_now 
+0090 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
+0091 6fe0c8d0 fetch 1 ,mem_mouse_key 
+0092 9841fe00 ior temp ,pdata 
+0093 67e0c8d0 store 1 ,mem_mouse_key 
+0094 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
+0095 6fe0c8d5 fetch 1 ,mem_mouse_z 
 0096 9840fe00 iadd temp ,pdata 
-0097 67e0c8d6 store 1 ,mem_mouse_tz 
+0097 67e0c8d5 store 1 ,mem_mouse_z 
+0098 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
+0099 6fe0c8d6 fetch 1 ,mem_mouse_tz 
+009a 9840fe00 iadd temp ,pdata 
+009b 67e0c8d6 store 1 ,mem_mouse_tz 
 
 p_mouse_24g_mouse_package_data_now:
-0098 70483601 jam type_ms ,mem_24g_data_type 
-0099 da200007 arg 7 ,rega 
-009a da4048d0 arg mem_mouse_key ,regb 
-009b 6fe148d5 fetch 2 ,mem_mouse_z 
-009c 207a0000 rtn blank 
-009d 202026e1 branch g24_transmit_by_interrupt_enable 
+009c 70483601 jam type_ms ,mem_24g_data_type 
+009d da200007 arg 7 ,rega 
+009e da4048d0 arg mem_mouse_key ,regb 
+009f 6fe148d5 fetch 2 ,mem_mouse_z 
+00a0 207a0000 rtn blank 
+00a1 202026e1 branch g24_transmit_by_interrupt_enable 
+
+p_mouse_24g_search_dongle:
+00a2 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00a3 c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
+00a4 6fe0caae fetch 1 ,mem_mouse_long_mult_flag 
+00a5 207a0000 rtn blank 
+00a6 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+00a7 207a0000 rtn blank 
+00a8 6fe0cba1 fetch 1 ,mem_mouse_search_dongle_interval 
+00a9 1fe0fe01 increase 1 ,pdata 
+00aa 1fe17e03 and_into 3 ,pdata 
+00ab 67e0cba1 store 1 ,mem_mouse_search_dongle_interval 
+00ac 247a0000 nrtn blank 
+00ad 704ba200 jam 0 ,mem_mouse_search_dongle_ch 
+
+p_mouse_24g_search_dongle_loop:
+00ae 6fe0cba2 fetch 1 ,mem_mouse_search_dongle_ch 
+00af 1fe0fe01 increase 1 ,pdata 
+00b0 67e0cba2 store 1 ,mem_mouse_search_dongle_ch 
+00b1 1fe67c08 sub pdata ,g24_ch_number ,null 
+00b2 242100b8 nbranch p_mouse_24g_search_dongle_loop_end ,positive 
+00b3 2040259a call g24_reconn_data_prep 
+00b4 2040265b call g24_transmit_receive_ack 
+00b5 242c00be nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
+00b6 243780be nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
+00b7 204048b5 call mouse_24g_search_dongle_success 
+
+p_mouse_24g_search_dongle_loop_end:
+00b8 20402597 call g24_txbuf_clear 
+00b9 6fe0cba3 fetch 1 ,mem_mouse_search_dongle_count 
+00ba 1fe0fe01 increase 1 ,pdata 
+00bb 67e0cba3 store 1 ,mem_mouse_search_dongle_count 
+00bc c00800c0 beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
+00bd 20600000 rtn 
+
+p_mouse_24g_search_dongle_loop_retry:
+00be 204022cb call g24_ch 
+00bf 202000ae branch p_mouse_24g_search_dongle_loop 
+
+p_mouse_24g_search_dongle_check:
+00c0 704ba300 jam 0 ,mem_mouse_search_dongle_count 
+00c1 6fe0cba4 fetch 1 ,mem_mouse_search_dongle_action 
+00c2 c3800000 rtnbit1 g24_disconn_state 
+00c3 79207e00 set1 g24_disconn_state ,pdata 
+00c4 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
+00c5 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
+00c6 67e14ab2 store 2 ,mem_mouse_no_data_timer 
+00c7 20200266 branch p_mouse_sensor_powerdown 
 
 p_g24_transmit_no_interrupt:
-009e 20402631 call g24_txdata_prep 
-009f 24340107 nbranch p_g24_nodata_transmit ,user 
+00c8 20402631 call g24_txdata_prep 
+00c9 24340133 nbranch p_g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-00a0 204000ad call p_g24_transmit_process 
-00a1 204026ee call power_ctrl_start 
-00a2 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-00a3 243a00a8 nbranch p_g24_short_sleep ,blank 
-00a4 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
-00a5 67e4485c store 8 ,mem_24g_enter_hibernate 
-00a6 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
-00a7 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
+00ca 204000d7 call p_g24_transmit_process 
+00cb 204026ee call power_ctrl_start 
+00cc 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+00cd 243a00d2 nbranch p_g24_short_sleep ,blank 
+00ce 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
+00cf 67e4485c store 8 ,mem_24g_enter_hibernate 
+00d0 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+00d1 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-00a8 204026bb call g24_lpm_wait 
-00a9 24740000 nrtn user 
-00aa 20407fdc call clear_wake 
-00ab 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-00ac 202026b8 branch g24_long_sleep2 
+00d2 204026bb call g24_lpm_wait 
+00d3 24740000 nrtn user 
+00d4 20407fdc call clear_wake 
+00d5 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+00d6 202026b8 branch g24_long_sleep2 
 
 p_g24_transmit_process:
-00ad 7048a600 jam 0 ,mem_24g_retry 
+00d7 7048a600 jam 0 ,mem_24g_retry 
 
 p_g24_transmit_loop:
-00ae 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
-00af 34730200 until clkn_rt ,meet 
-00b0 2040265b call g24_transmit_receive_ack 
-00b1 6fe0c82c fetch 1 ,mem_24g_no_ack 
-00b2 c000a651 beq no_ack_24g ,g24_transmit_no_ack 
-00b3 242c2669 nbranch g24_retransmit ,sync 
-00b4 2437a669 nbranch g24_retransmit ,user3 
-00b5 20402672 call g24_ackpayload_parse 
-00b6 204000b8 call p_mouse_wakeup_24g 
-00b7 20202651 branch g24_transmit_no_ack 
+00d8 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+00d9 34730200 until clkn_rt ,meet 
+00da 2040265b call g24_transmit_receive_ack 
+00db 6fe0c82c fetch 1 ,mem_24g_no_ack 
+00dc c000a651 beq no_ack_24g ,g24_transmit_no_ack 
+00dd 242c2669 nbranch g24_retransmit ,sync 
+00de 2437a669 nbranch g24_retransmit ,user3 
+00df 20402672 call g24_ackpayload_parse 
+00e0 204000e2 call p_mouse_wakeup_24g 
+00e1 20202651 branch g24_transmit_no_ack 
 
 p_mouse_wakeup_24g:
-00b8 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-00b9 245a00bc ncall p_mouse_wakeup_24g_from_long_sleep ,blank 
-00ba 704be100 jam 0 ,mem_sensor_shutdown_flag 
-00bb 20600000 rtn 
+00e2 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+00e3 245a00e6 ncall p_mouse_wakeup_24g_from_long_sleep ,blank 
+00e4 704be100 jam 0 ,mem_sensor_shutdown_flag 
+00e5 20600000 rtn 
 
 p_mouse_wakeup_24g_from_long_sleep:
-00bc 204041aa call mouse_init_sensor_wakeup 
-00bd 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00be c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
-00bf 202000ef branch p_mouse_wheel_set_wakeup 
+00e6 204041aa call mouse_init_sensor_wakeup 
+00e7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00e8 c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
+00e9 2020011b branch p_mouse_wheel_set_wakeup 
 
 p_mouse_app_enter_hibernate:
-00c0 58000006 setarg pan_reg_config 
-00c1 20405b0d call twspi_read 
-00c2 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-00c3 20203e21 branch mouse_app_enter_hibernate + 1 
+00ea 58000006 setarg pan_reg_config 
+00eb 20405b0d call twspi_read 
+00ec c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+00ed 2040025f call p_mouse_sensor_reset 
+00ee 20400266 call p_mouse_sensor_powerdown 
+00ef 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
-00c4 204042e9 call mouse_set_sdio_high 
-00c5 20407fdc call clear_wake 
-00c6 20404015 call mouse_before_hibernate_wheel_gpio_set 
-00c7 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00c8 20406069 call gpio_out_active 
-00c9 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00ca 20406042 call gpio_clr_wake 
-00cb 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-00cc d840003f arg gpcfg_output_high ,temp 
-00cd 20406093 call gpio_config_function_int 
-00ce d8400003 arg 3 ,temp 
-00cf 20403f56 call mouse_gpio_config_input_pu 
-00d0 20403e40 call mouse_lpm_before_common 
-00d1 20406082 call gpio_pd_idle 
-00d2 d8400013 arg 19 ,temp 
-00d3 20403f56 call mouse_gpio_config_input_pu 
-00d4 204000d8 call p_mouse_gpio_set_high_impedance 
-00d5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00d6 c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
-00d7 202000e5 branch p_mouse_wheel_clr_wakeup 
+00f0 204042e9 call mouse_set_sdio_high 
+00f1 20407fdc call clear_wake 
+00f2 20404015 call mouse_before_hibernate_wheel_gpio_set 
+00f3 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00f4 20406069 call gpio_out_active 
+00f5 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00f6 20406042 call gpio_clr_wake 
+00f7 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+00f8 d840003f arg gpcfg_output_high ,temp 
+00f9 20406093 call gpio_config_function_int 
+00fa d8400003 arg 3 ,temp 
+00fb 20403f56 call mouse_gpio_config_input_pu 
+00fc 20403e40 call mouse_lpm_before_common 
+00fd 20406082 call gpio_pd_idle 
+00fe d8400013 arg 19 ,temp 
+00ff 20403f56 call mouse_gpio_config_input_pu 
+0100 20400104 call p_mouse_gpio_set_high_impedance 
+0101 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0102 c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
+0103 20200111 branch p_mouse_wheel_clr_wakeup 
 
 p_mouse_gpio_set_high_impedance:
-00d8 6fe1cbde fetch 3 ,mem_mouse_set_high_impedance_bit_set 
-00d9 67e1895c store 3 ,mem_pdatatemp 
-00da df200014 arg 20 ,loopcnt 
-00db d8400000 arg 0 ,temp 
+0104 6fe1cbde fetch 3 ,mem_mouse_set_high_impedance_bit_set 
+0105 67e1895c store 3 ,mem_pdatatemp 
+0106 df200014 arg 20 ,loopcnt 
+0107 d8400000 arg 0 ,temp 
 
 p_mouse_gpio_set_high_impedance_bit_loop:
-00dc 6fe1895c fetch 3 ,mem_pdatatemp 
-00dd 2feffe00 isolate1 0 ,pdata 
-00de 2040e07f call gpio_set_high_impedance ,true 
-00df 6fe1895c fetch 3 ,mem_pdatatemp 
-00e0 1fe37e00 rshift pdata ,pdata 
-00e1 67e1895c store 3 ,mem_pdatatemp 
-00e2 18408401 increase 1 ,temp 
-00e3 c20000dc loop p_mouse_gpio_set_high_impedance_bit_loop 
-00e4 20600000 rtn 
+0108 6fe1895c fetch 3 ,mem_pdatatemp 
+0109 2feffe00 isolate1 0 ,pdata 
+010a 2040e07f call gpio_set_high_impedance ,true 
+010b 6fe1895c fetch 3 ,mem_pdatatemp 
+010c 1fe37e00 rshift pdata ,pdata 
+010d 67e1895c store 3 ,mem_pdatatemp 
+010e 18408401 increase 1 ,temp 
+010f c2000108 loop p_mouse_gpio_set_high_impedance_bit_loop 
+0110 20600000 rtn 
 
 p_mouse_wheel_clr_wakeup:
-00e5 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-00e6 20406042 call gpio_clr_wake 
-00e7 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-00e8 20406042 call gpio_clr_wake 
-00e9 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-00ea d8400080 arg gpcfg_pulldown ,temp 
-00eb 20406093 call gpio_config_function_int 
-00ec 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
-00ed d8400080 arg gpcfg_pulldown ,temp 
-00ee 20206093 branch gpio_config_function_int 
+0111 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+0112 20406042 call gpio_clr_wake 
+0113 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+0114 20406042 call gpio_clr_wake 
+0115 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
+0116 d8400080 arg gpcfg_pulldown ,temp 
+0117 20406093 call gpio_config_function_int 
+0118 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+0119 d8400080 arg gpcfg_pulldown ,temp 
+011a 20206093 branch gpio_config_function_int 
 
 p_mouse_wheel_set_wakeup:
-00ef 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-00f0 d8400040 arg gpcfg_pullup ,temp 
-00f1 20406093 call gpio_config_function_int 
-00f2 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
-00f3 d8400040 arg gpcfg_pullup ,temp 
-00f4 20206093 branch gpio_config_function_int 
+011b 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
+011c d8400040 arg gpcfg_pullup ,temp 
+011d 20406093 call gpio_config_function_int 
+011e 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+011f d8400040 arg gpcfg_pullup ,temp 
+0120 20206093 branch gpio_config_function_int 
 
 p_mouse_lpm_before_common:
-00f5 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-00f6 20406050 call gpio_config_input 
-00f7 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-00f8 20406050 call gpio_config_input 
-00f9 20403f88 call mouse_wheel_check 
-00fa 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-00fb d840003f arg gpcfg_output_high ,temp 
-00fc 20406093 call gpio_config_function_int 
-00fd 20203e44 branch mouse_lpm_before_common_next 
+0121 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+0122 20406050 call gpio_config_input 
+0123 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+0124 20406050 call gpio_config_input 
+0125 20403f88 call mouse_wheel_check 
+0126 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+0127 d840003f arg gpcfg_output_high ,temp 
+0128 20406093 call gpio_config_function_int 
+0129 20203e44 branch mouse_lpm_before_common_next 
 
 p_mouse_24g_hibernate_set:
-00fe 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
-00ff 20402652 call g24_transmit_next_packet 
-0100 5fffffff setarg -1 
-0101 67e2485c store 4 ,mem_24g_enter_hibernate 
-0102 58000000 setarg 0 
-0103 67e3c8d0 store 7 ,mem_mouse_key 
-0104 704be101 jam 1 ,mem_sensor_shutdown_flag 
-0105 2040423c call mouse_sensor_powerdown 
-0106 2020010d branch p_g24_long_sleep 
+012a 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
+012b 20402652 call g24_transmit_next_packet 
+012c 5fffffff setarg -1 
+012d 67e2485c store 4 ,mem_24g_enter_hibernate 
+012e 58000000 setarg 0 
+012f 67e3c8d0 store 7 ,mem_mouse_key 
+0130 704be101 jam 1 ,mem_sensor_shutdown_flag 
+0131 20400266 call p_mouse_sensor_powerdown 
+0132 20200139 branch p_g24_long_sleep 
 
 p_g24_nodata_transmit:
-0107 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0108 205a26a7 call g24_send_abort_packet ,blank 
-0109 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-010a c1008000 rtneq g24_tx_timer_int_enable 
-010b 2040269f call g24_search_receiver 
-010c 2020010d branch p_g24_long_sleep 
+0133 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+0134 205a26a7 call g24_send_abort_packet ,blank 
+0135 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+0136 c1008000 rtneq g24_tx_timer_int_enable 
+0137 2040269f call g24_search_receiver 
+0138 20200139 branch p_g24_long_sleep 
 
 p_g24_long_sleep:
-010d 204026bb call g24_lpm_wait 
-010e 24740000 nrtn user 
-010f 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0110 245a3e33 ncall mouse_setgpio_hibernate ,blank 
-0111 6fe2485c fetch 4 ,mem_24g_enter_hibernate 
-0112 20407daa call clk2lpo 
-0113 604a4160 storet 4 ,mem_sleep_counter 
-0114 20201497 branch lpm_sleep 
+0139 204026bb call g24_lpm_wait 
+013a 24740000 nrtn user 
+013b 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+013c 245a3e33 ncall mouse_setgpio_hibernate ,blank 
+013d 6fe2485c fetch 4 ,mem_24g_enter_hibernate 
+013e 20407daa call clk2lpo 
+013f 604a4160 storet 4 ,mem_sleep_counter 
+0140 20201497 branch lpm_sleep 
 
 p_mouse_priority_bb_event:
-0115 1a627e00 copy regc ,pdata 
-0116 c000811e beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
-0117 c01e013e beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0118 c01c813c beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-0119 c01d0145 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-011a c0190128 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-011b c022012f beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-011c c00a8120 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-011d 20204336 branch mouse_priority_bb_event + 2 
+0141 1a627e00 copy regc ,pdata 
+0142 c000814a beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
+0143 c01e016a beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0144 c01c8168 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+0145 c01d0171 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+0146 c0190154 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+0147 c022015b beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+0148 c00a814c beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+0149 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_bb_event_connected:
-011e 20404544 call mouse_no_data_timer_init 
-011f 202043fa branch mouse_bb_event_connected 
+014a 20404544 call mouse_no_data_timer_init 
+014b 202043fa branch mouse_bb_event_connected 
 
 p_mouse_le_bb_disconnected:
-0120 704ac600 jam 0 ,mem_mouse_le_bb_connected_flag 
-0121 58000006 setarg le_interval_7_5ms 
-0122 67e14372 store 2 ,mem_le_interval_min 
-0123 67e14374 store 2 ,mem_le_interval_min + 2 
-0124 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0125 c28dc366 bbit1 mouse_enable_bt_125hz ,mouse_le_bb_disconnected_next + 2 
-0126 58000007 setarg le_interval_8_75ms 
-0127 20204364 branch mouse_le_bb_disconnected_next 
+014c 704ac600 jam 0 ,mem_mouse_le_bb_connected_flag 
+014d 58000006 setarg le_interval_7_5ms 
+014e 67e14372 store 2 ,mem_le_interval_min 
+014f 67e14374 store 2 ,mem_le_interval_min + 2 
+0150 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0151 c28dc366 bbit1 mouse_enable_bt_125hz ,mouse_le_bb_disconnected_next + 2 
+0152 58000007 setarg le_interval_8_75ms 
+0153 20204364 branch mouse_le_bb_disconnected_next 
 
 p_mouse_le_ll_start_encryt:
-0128 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0129 c000812c beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-012a 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-012b 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0154 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0155 c0008158 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+0156 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+0157 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-012c 2040436c call mouse_updata_le_param 
-012d 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-012e 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0158 2040436c call mouse_updata_le_param 
+0159 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+015a 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-012f 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-0130 1fe67c0c sub pdata ,le_interval_15ms ,null 
-0131 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-0132 67e14372 store 2 ,mem_le_interval_min 
-0133 67e14374 store 2 ,mem_le_interval_min + 2 
-0134 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-0135 203a439a branch mouse_le_lpm_mult_reinit ,blank 
-0136 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-0137 98467c00 isub temp ,null 
-0138 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-0139 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-013a 67e0cb8a store 1 ,mem_lpm_mult_init 
-013b 20204386 branch mouse_le_conn_param_lpm_enable 
+015b 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+015c 1fe67c0c sub pdata ,le_interval_15ms ,null 
+015d 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+015e 67e14372 store 2 ,mem_le_interval_min 
+015f 67e14374 store 2 ,mem_le_interval_min + 2 
+0160 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+0161 203a439a branch mouse_le_lpm_mult_reinit ,blank 
+0162 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+0163 98467c00 isub temp ,null 
+0164 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+0165 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+0166 67e0cb8a store 1 ,mem_lpm_mult_init 
+0167 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_24g_pairing_complete:
-013c 20404544 call mouse_no_data_timer_init 
-013d 20204857 branch mouse_24g_pairing_complete 
+0168 20404544 call mouse_no_data_timer_init 
+0169 20204857 branch mouse_24g_pairing_complete 
 
 p_mouse_24g_attempt_success:
-013e 6fe2483c fetch 4 ,mem_24g_addr 
-013f 67e24891 store 4 ,mem_24g_receiver_addr 
-0140 67e24993 store 4 ,mem_mouse_24g_addr 
-0141 2040257e call g24_ch_syncword_crc8_init 
-0142 204048c6 call mouse_device_poweron_timer_init 
-0143 20404544 call mouse_no_data_timer_init 
-0144 2020484e branch mouse_24g_attempt_success 
+016a 6fe2483c fetch 4 ,mem_24g_addr 
+016b 67e24891 store 4 ,mem_24g_receiver_addr 
+016c 67e24993 store 4 ,mem_mouse_24g_addr 
+016d 2040257e call g24_ch_syncword_crc8_init 
+016e 204048c6 call mouse_device_poweron_timer_init 
+016f 20404544 call mouse_no_data_timer_init 
+0170 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_24g_attempt_fail:
-0145 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-0146 243a00fe nbranch p_mouse_24g_hibernate_set ,blank 
-0147 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-0148 c001014c beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
-0149 c0020155 beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
-014a c001815a beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
-014b 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
+0171 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+0172 243a012a nbranch p_mouse_24g_hibernate_set ,blank 
+0173 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+0174 c0010178 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+0175 c0020181 beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
+0176 c0018186 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
+0177 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_fast_conn_attempt_fail:
-014c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-014d c297c811 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
-014e c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
-014f c31d4806 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
-0150 6fe24993 fetch 4 ,mem_mouse_24g_addr 
-0151 684a4974 fetcht 4 ,mem_mouse_compare_addr_ff 
-0152 98467c00 isub temp ,null 
-0153 2022c827 branch mouse_24g_start_pair_mode ,zero 
-0154 20204806 branch mouse_24g_reconn_dongle_start 
+0178 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0179 c297c811 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+017a c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+017b c31d4806 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
+017c 6fe24993 fetch 4 ,mem_mouse_24g_addr 
+017d 684a4974 fetcht 4 ,mem_mouse_compare_addr_ff 
+017e 98467c00 isub temp ,null 
+017f 2022c827 branch mouse_24g_start_pair_mode ,zero 
+0180 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_auto_pair_attempt_fail:
-0155 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0156 c317815f bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
-0157 6fe0cbb4 fetch 1 ,mem_device_number 
-0158 c000815f beq 1 ,p_mouse_24g_attempt_fail_enter_hibernate 
-0159 2020481a branch mouse_24g_first_bluetooth_reconnect 
+0181 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0182 c317818b bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+0183 6fe0cbb4 fetch 1 ,mem_device_number 
+0184 c000818b beq 1 ,p_mouse_24g_attempt_fail_enter_hibernate 
+0185 2020481a branch mouse_24g_first_bluetooth_reconnect 
 
 p_mouse_reconn_dongle_attempt_fail:
-015a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-015b c317815f bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
-015c c289815f bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
-015d c289015f bbit1 mouse_enable_flash ,p_mouse_24g_attempt_fail_enter_hibernate 
-015e 20204812 branch mouse_24g_start_auto_pair + 1 
+0186 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0187 c317818b bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+0188 c289818b bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
+0189 c289018b bbit1 mouse_enable_flash ,p_mouse_24g_attempt_fail_enter_hibernate 
+018a 20204812 branch mouse_24g_start_auto_pair + 1 
 
 p_mouse_24g_attempt_fail_enter_hibernate:
-015f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0160 c31e4839 bbit0 mouse_enable_wheel_wake_up_cancel ,mouse_24g_attempt_fail_enter_hibernate 
-0161 202000fe branch p_mouse_24g_hibernate_set 
+018b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+018c c31e4839 bbit0 mouse_enable_wheel_wake_up_cancel ,mouse_24g_attempt_fail_enter_hibernate 
+018d 2020012a branch p_mouse_24g_hibernate_set 
 
 p_g24_pair_dispatch:
-0162 70488b00 jam default_24g_device ,mem_24g_reconn_type 
-0163 20202341 branch g24_pair_dispatch + 1 
+018e 70488b00 jam default_24g_device ,mem_24g_reconn_type 
+018f 20202341 branch g24_pair_dispatch + 1 
 
 p_mouse_start_work:
-0164 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0165 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-0166 6fe0c938 fetch 1 ,mem_device_flag 
-0167 c0000169 beq mode_24g_device ,p_mouse_24g_start_mode 
-0168 20203d57 branch mouse_start_work + 5 
+0190 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0191 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+0192 6fe0c938 fetch 1 ,mem_device_flag 
+0193 c0000195 beq mode_24g_device ,p_mouse_24g_start_mode 
+0194 20203d57 branch mouse_start_work + 5 
 
 p_mouse_24g_start_mode:
-0169 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-016a c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-016b 20403d65 call mouse_wakeup_from_power_check 
-016c 20344806 branch mouse_24g_reconn_dongle_start ,user 
-016d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-016e c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-016f c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-0170 20404110 call mouse_key_check_once 
-0171 1a217e07 and rega ,0x07 ,pdata 
-0172 202047ff branch mouse_24g_start_mode + 9 
+0195 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0196 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+0197 20403d65 call mouse_wakeup_from_power_check 
+0198 20344806 branch mouse_24g_reconn_dongle_start ,user 
+0199 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+019a c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+019b c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+019c 20404110 call mouse_key_check_once 
+019d 1a217e07 and rega ,0x07 ,pdata 
+019e 202047ff branch mouse_24g_start_mode + 9 
 
 p_mouse_seting_dpi:
-0173 2040408f call mouse_setting_dpi_4_level 
-0174 20400176 call p_mouse_dpi_led_blink_delay 
-0175 20204098 branch mouse_seting_sensor_type 
+019f 2040408f call mouse_setting_dpi_4_level 
+01a0 204001a2 call p_mouse_dpi_led_blink_delay 
+01a1 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-0176 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0177 c17f8000 rtneq gpio_disable 
-0178 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-0179 247a0000 nrtn blank 
-017a 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-017b 247a0000 nrtn blank 
-017c 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-017d 247a0000 nrtn blank 
-017e 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-017f 247a0000 nrtn blank 
-0180 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-0181 203a019d branch p_mouse_dpi_led_blink_init ,blank 
-0182 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-0183 20600000 rtn 
+01a2 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+01a3 c17f8000 rtneq gpio_disable 
+01a4 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+01a5 247a0000 nrtn blank 
+01a6 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+01a7 247a0000 nrtn blank 
+01a8 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+01a9 247a0000 nrtn blank 
+01aa 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+01ab 247a0000 nrtn blank 
+01ac 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+01ad 203a01c9 branch p_mouse_dpi_led_blink_init ,blank 
+01ae 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+01af 20600000 rtn 
 
 p_mouse_bb_event_timer:
-0184 20403e9b call mouse_adc_read 
-0185 20404956 call mouse_low_voltage_led_timer 
-0186 2040232b call g24_pair_timeout_timer 
-0187 20402556 call g24_reconn_timeout_timer 
-0188 204047cd call mouse_24g_long_sleep_param_update_timer 
-0189 204048be call mouse_device_poweron_timer 
-018a 2040019a call p_mouse_dpi_led_blink_delay_timer 
-018b 2040407c call mouse_dpi_key_check_long_press 
-018c 204044cc call mouse_bt_discovery_check 
-018d 204001b2 call p_mouse_commbination_key_process 
-018e 204044ff call mouse_check_discovery_timeout_timer 
-018f 20404504 call mouse_check_direct_timeout_timer 
-0190 20404512 call mouse_le_enable_att_list_timer 
-0191 2040451f call mouse_le_battery_updata_timer 
-0192 20404515 call mouse_le_send_smp_security_request_timer 
-0193 2040452a call mouse_check_hid_handshake_timer 
-0194 2040452d call mouse_bt_check_sniff_req_timeout_timer 
-0195 20404532 call mouse_check_reconnect_delay_long_sleep 
-0196 20404535 call mouse_current_mult_update_timer 
-0197 20404022 call mouse_wheel_trigger_timer 
-0198 20404547 call mouse_store_information_delay_timer 
-0199 202001c7 branch p_mouse_check_no_data_timeout_timer 
+01b0 20403e9b call mouse_adc_read 
+01b1 20404956 call mouse_low_voltage_led_timer 
+01b2 2040232b call g24_pair_timeout_timer 
+01b3 20402556 call g24_reconn_timeout_timer 
+01b4 204047cd call mouse_24g_long_sleep_param_update_timer 
+01b5 204048be call mouse_device_poweron_timer 
+01b6 204001c6 call p_mouse_dpi_led_blink_delay_timer 
+01b7 2040407c call mouse_dpi_key_check_long_press 
+01b8 204044cc call mouse_bt_discovery_check 
+01b9 204001de call p_mouse_commbination_key_process 
+01ba 204044ff call mouse_check_discovery_timeout_timer 
+01bb 20404504 call mouse_check_direct_timeout_timer 
+01bc 20404512 call mouse_le_enable_att_list_timer 
+01bd 2040451f call mouse_le_battery_updata_timer 
+01be 20404515 call mouse_le_send_smp_security_request_timer 
+01bf 2040452a call mouse_check_hid_handshake_timer 
+01c0 2040452d call mouse_bt_check_sniff_req_timeout_timer 
+01c1 20404532 call mouse_check_reconnect_delay_long_sleep 
+01c2 20404535 call mouse_current_mult_update_timer 
+01c3 20404022 call mouse_wheel_trigger_timer 
+01c4 20404547 call mouse_store_information_delay_timer 
+01c5 202001f3 branch p_mouse_check_no_data_timeout_timer 
 
 p_mouse_dpi_led_blink_delay_timer:
-019a da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-019b da40019d arg p_mouse_dpi_led_blink_init ,regb 
-019c 2020318a branch timer_single_step 
+01c6 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+01c7 da4001c9 arg p_mouse_dpi_led_blink_init ,regb 
+01c8 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-019d 6fe0c927 fetch 1 ,mem_config_sensor_type 
-019e c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-019f c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-01a0 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-01a1 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-01a2 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-01a3 67e14930 store 2 ,mem_mouse_on_time 
-01a4 67e14932 store 2 ,mem_mouse_off_time 
-01a5 da200000 arg 0 ,rega 
-01a6 6848c992 fetcht 1 ,mem_mouse_dpi 
-01a7 18408402 increase 2 ,temp 
-01a8 18467c03 sub temp ,3 ,null 
-01a9 204101ac call p_mouse_dpi_led_blink_init_level_4 ,positive 
-01aa 244101b0 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-01ab 202048ff branch mouse_dpi_led_blink_init_end 
+01c9 6fe0c927 fetch 1 ,mem_config_sensor_type 
+01ca c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+01cb c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+01cc 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+01cd 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+01ce 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+01cf 67e14930 store 2 ,mem_mouse_on_time 
+01d0 67e14932 store 2 ,mem_mouse_off_time 
+01d1 da200000 arg 0 ,rega 
+01d2 6848c992 fetcht 1 ,mem_mouse_dpi 
+01d3 18408402 increase 2 ,temp 
+01d4 18467c03 sub temp ,3 ,null 
+01d5 204101d8 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+01d6 244101dc ncall p_mouse_dpi_led_blink_count_clean ,positive 
+01d7 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-01ac 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01ad c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-01ae 18408401 increase 1 ,temp 
-01af 20600000 rtn 
+01d8 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01d9 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+01da 18408401 increase 1 ,temp 
+01db 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-01b0 184085fd increase -3 ,temp 
-01b1 20600000 rtn 
+01dc 184085fd increase -3 ,temp 
+01dd 20600000 rtn 
 
 p_mouse_commbination_key_process:
-01b2 6fe0c938 fetch 1 ,mem_device_flag 
-01b3 c00001b8 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-01b4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01b5 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-01b6 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-01b7 202001bb branch p_mouse_commbination_key_start 
+01de 6fe0c938 fetch 1 ,mem_device_flag 
+01df c00001e4 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+01e0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01e1 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+01e2 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+01e3 202001e7 branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-01b8 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01b9 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-01ba 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+01e4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01e5 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+01e6 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-01bb 6048cb9d storet 1 ,mem_mouse_commbination_key 
-01bc 20404115 call mouse_check_key_gpio 
-01bd 1fe17e07 and pdata ,0x07 ,pdata 
-01be 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-01bf 98467c00 isub temp ,null 
-01c0 202281c2 branch p_mouse_commbination_key_down ,zero 
-01c1 202044eb branch mouse_commbination_key_up 
+01e7 6048cb9d storet 1 ,mem_mouse_commbination_key 
+01e8 20404115 call mouse_check_key_gpio 
+01e9 1fe17e07 and pdata ,0x07 ,pdata 
+01ea 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+01eb 98467c00 isub temp ,null 
+01ec 202281ee branch p_mouse_commbination_key_down ,zero 
+01ed 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-01c2 204044f6 call mouse_combination_ui_timer 
-01c3 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-01c4 c1008000 rtneq commbination_key_state_down 
-01c5 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-01c6 20600000 rtn 
+01ee 204044f6 call mouse_combination_ui_timer 
+01ef 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+01f0 c1008000 rtneq commbination_key_state_down 
+01f1 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+01f2 20600000 rtn 
 
 p_mouse_check_no_data_timeout_timer:
-01c7 6fe0c92a fetch 1 ,mem_usb_addr 
-01c8 c3838000 rtnbit1 7 
-01c9 da604ab2 arg mem_mouse_no_data_timer ,regc 
-01ca da4001cc arg p_mouse_check_no_data_timeout ,regb 
-01cb 20203191 branch timer_single_step_2b 
+01f3 6fe0c92a fetch 1 ,mem_usb_addr 
+01f4 c3838000 rtnbit1 7 
+01f5 da604ab2 arg mem_mouse_no_data_timer ,regc 
+01f6 da4001f8 arg p_mouse_check_no_data_timeout ,regb 
+01f7 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-01cc 6fe0c938 fetch 1 ,mem_device_flag 
-01cd c00000fe beq mode_24g_device ,p_mouse_24g_hibernate_set 
-01ce 2020431b branch mouse_disconnect 
+01f8 6fe0c938 fetch 1 ,mem_device_flag 
+01f9 c000012a beq mode_24g_device ,p_mouse_24g_hibernate_set 
+01fa 2020431b branch mouse_disconnect 
 
 p_mouse_start_discovery:
-01cf 6fe1478c fetch 2 ,mem_ui_state_map 
-01d0 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-01d1 2040c581 call mouse_stop_le_adv ,true 
-01d2 6fe1478c fetch 2 ,mem_ui_state_map 
-01d3 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-01d4 2040c322 call mouse_cancel_reconnect ,true 
-01d5 20204554 branch mouse_start_discovery + 1 
+01fb 6fe1478c fetch 2 ,mem_ui_state_map 
+01fc 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+01fd 2040c581 call mouse_stop_le_adv ,true 
+01fe 6fe1478c fetch 2 ,mem_ui_state_map 
+01ff 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+0200 2040c322 call mouse_cancel_reconnect ,true 
+0201 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-01d6 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-01d7 245a7861 ncall ui_timer_init ,blank 
-01d8 704be200 jam 0 ,mem_power_on_flag 
-01d9 20207851 branch ui_timer_check + 1 
+0202 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0203 245a7861 ncall ui_timer_init ,blank 
+0204 704be200 jam 0 ,mem_power_on_flag 
+0205 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-01da 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-01db 1fe20c00 copy pdata ,contr 
-01dc efe08006 ifetch 1 ,contr 
-01dd 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-01de 1fe1040f and pdata ,0x0f ,temp 
-01df 1ff1fe00 rshift4 pdata ,pdata 
-01e0 c00481e2 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-01e1 20204d93 branch hid_rx_process + 7 
+0206 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0207 1fe20c00 copy pdata ,contr 
+0208 efe08006 ifetch 1 ,contr 
+0209 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+020a 1fe1040f and pdata ,0x0f ,temp 
+020b 1ff1fe00 rshift4 pdata ,pdata 
+020c c004820e beq hid_type_set_idle ,p_hid_rx_process_handshake 
+020d 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-01e2 da200001 arg 1 ,rega 
-01e3 20404dc0 call hid_malloc_tx_buff 
-01e4 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-01e5 e7e10005 istore 2 ,contw 
-01e6 58000000 setarg 0 
-01e7 e7e08005 istore 1 ,contw 
-01e8 70095001 jam 1 ,mem_ui_data_txbuff_length 
-01e9 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-01ea 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-01eb 67e0c4e2 store 1 ,mem_hid_control_state 
-01ec 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-01ed 20207871 branch ui_ipc_send_event 
+020e da200001 arg 1 ,rega 
+020f 20404dc0 call hid_malloc_tx_buff 
+0210 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+0211 e7e10005 istore 2 ,contw 
+0212 58000000 setarg 0 
+0213 e7e08005 istore 1 ,contw 
+0214 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0215 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+0216 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0217 67e0c4e2 store 1 ,mem_hid_control_state 
+0218 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0219 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-01ee 6fe0c3dd fetch 1 ,mem_le_md_count 
-01ef 1fe0fe01 pincrease 1 
-01f0 67e0c3dd store 1 ,mem_le_md_count 
-01f1 c006165a beq le_md_max_count ,le_slave_cont 
-01f2 2040191b call le_acknowledge 
-01f3 2040196a call le_prepare_tx 
-01f4 6fe082bd fetch 1 ,mem_le_tx_phy 
-01f5 2040168b call le_enable_phy_by_pdata 
-01f6 20401838 call le_transmit 
-01f7 20201655 branch le_slave_match + 10 
+021a 6fe0c3dd fetch 1 ,mem_le_md_count 
+021b 1fe0fe01 pincrease 1 
+021c 67e0c3dd store 1 ,mem_le_md_count 
+021d c006165a beq le_md_max_count ,le_slave_cont 
+021e 2040191b call le_acknowledge 
+021f 2040196a call le_prepare_tx 
+0220 6fe082bd fetch 1 ,mem_le_tx_phy 
+0221 2040168b call le_enable_phy_by_pdata 
+0222 20401838 call le_transmit 
+0223 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-01f8 efe10006 ifetch 2 ,contr 
-01f9 c00201fb beq le_l2cap_cid_att ,p_le_parse_att 
-01fa 202019e4 branch le_parse_l2cap + 10 
+0224 efe10006 ifetch 2 ,contr 
+0225 c0020227 beq le_l2cap_cid_att ,p_le_parse_att 
+0226 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-01fb efe18006 ifetch 3 ,contr 
-01fc 67e1c436 store 3 ,mem_le_att_opcode 
-01fd c0050200 beq attop_read_request ,p_le_parse_att_read_request 
-01fe c009020f beq attop_write_request ,p_le_parse_att_write_request 
-01ff 20201cd3 branch le_parse_att + 2 
+0227 efe18006 ifetch 3 ,contr 
+0228 67e1c436 store 3 ,mem_le_att_opcode 
+0229 c005022c beq attop_read_request ,p_le_parse_att_read_request 
+022a c009023b beq attop_write_request ,p_le_parse_att_write_request 
+022b 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_read_request:
-0200 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0201 c31d9de7 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
-0202 20401e8d call le_check_encrypt_state 
-0203 68494437 fetcht 2 ,mem_le_att_handle 
-0204 6fe0c3c0 fetch 1 ,mem_le_configuration 
-0205 c281820a bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+022c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+022d c31d9de7 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
+022e 20401e8d call le_check_encrypt_state 
+022f 68494437 fetcht 2 ,mem_le_att_handle 
+0230 6fe0c3c0 fetch 1 ,mem_le_configuration 
+0231 c2818236 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-0206 6fe14437 fetch 2 ,mem_le_att_handle 
-0207 c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
-0208 68494437 fetcht 2 ,mem_le_att_handle 
-0209 20201deb branch le_send_att_read_response 
+0232 6fe14437 fetch 2 ,mem_le_att_handle 
+0233 c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
+0234 68494437 fetcht 2 ,mem_le_att_handle 
+0235 20201deb branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-020a 6fe143d1 fetch 2 ,mem_le_pairing_handle 
-020b 98467c00 isub temp ,null 
-020c 24228206 nbranch p_le_send_att_read_response ,zero 
-020d 24340206 nbranch p_le_send_att_read_response ,user 
-020e 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+0236 6fe143d1 fetch 2 ,mem_le_pairing_handle 
+0237 98467c00 isub temp ,null 
+0238 24228232 nbranch p_le_send_att_read_response ,zero 
+0239 24340232 nbranch p_le_send_att_read_response ,user 
+023a 20201e10 branch le_send_att_read_response_error_insufficient_auth 
 
 p_le_parse_att_write_request:
-020f 18c22200 copy contr ,rega 
-0210 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0211 1fe0a5fd add pdata ,-3 ,regb 
-0212 20401a25 call le_writeatt_cb 
-0213 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0214 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-0215 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0216 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-0217 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-0218 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-0219 5800001a setarg 0x001a 
-021a 68494437 fetcht 2 ,mem_le_att_handle 
-021b 98467c00 isub temp ,null 
-021c 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-021d 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-021e 20201ec9 branch le_send_att_error_response 
+023b 18c22200 copy contr ,rega 
+023c 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+023d 1fe0a5fd add pdata ,-3 ,regb 
+023e 20401a25 call le_writeatt_cb 
+023f 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+0240 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+0241 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0242 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+0243 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0244 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+0245 5800001a setarg 0x001a 
+0246 68494437 fetcht 2 ,mem_le_att_handle 
+0247 98467c00 isub temp ,null 
+0248 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0249 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+024a 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-021f 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0220 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-0221 202026bc branch g24_lpm_wait + 1 
+024b 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+024c 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+024d 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-0222 78547c00 disable user 
-0223 58000000 setarg 0 
-0224 67e348d1 store 6 ,mem_mouse_x 
-0225 20404240 call mouse_check_sensor_data 
-0226 2040408e call mouse_dpi_config 
-0227 20203f75 branch mouse_motion + 5 
+024e 78547c00 disable user 
+024f 58000000 setarg 0 
+0250 67e348d1 store 6 ,mem_mouse_x 
+0251 20404240 call mouse_check_sensor_data 
+0252 2040408e call mouse_dpi_config 
+0253 20203f75 branch mouse_motion + 5 
+
+p_mouse_sensor_poweron:
+0254 20403f65 call mouse_sensor_spi_init 
+0255 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0256 c005825b beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+0257 20404232 call mouse_sensor_reset 
+0258 da604aa3 arg mem_sensor_poweron_init ,regc 
+0259 2040422b call mouse_sensor_wr_seq 
+025a 2020408e branch mouse_dpi_config 
+
+p_mouse_ka8g2_sensor_init:
+025b 20400262 call p_mouse_ka8g2_sensor_reset 
+025c da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+025d 2040422b call mouse_sensor_wr_seq 
+025e 2020408e branch mouse_dpi_config 
+
+p_mouse_sensor_reset:
+025f 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0260 c0058262 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+0261 20204232 branch mouse_sensor_reset 
+
+p_mouse_ka8g2_sensor_reset:
+0262 58009706 setarg 0x9706 
+0263 20405b0c call twspi_write 
+0264 20002ee0 nop 12000 
+0265 20600000 rtn 
+
+p_mouse_sensor_powerdown:
+0266 204041a7 call mouse_init_sunt 
+0267 20403f65 call mouse_sensor_spi_init 
+0268 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0269 c005826c beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+026a 58000806 setarg 0x0806 
+026b 20205b0c branch twspi_write 
+
+p_mouse_ka8g2_sensor_powerdown:
+026c 58001f06 setarg 0x1f06 
+026d 20205b0c branch twspi_write 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(revision 782)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(working copy)
@@ -14,6 +14,7 @@
 	beq patch19_4,p_mouse_adc_read_start
 	beq patch19_6,p_mouse_motion
 	beq patch1a_0,p_mouse_seting_dpi
+	beq patch1a_4,p_mouse_sensor_poweron
 	beq patch1a_6,p_mouse_priority_bb_event
 	beq patch1b_1,p_mouse_bb_event_timer
 	beq patch1b_2,p_mouse_start_discovery
@@ -176,18 +177,20 @@
 	call enable_authrom
 	call mouse_setting_config
 	call mouse_init_sunt
-
 	rtn wake
 	call mouse_dpi_config
 	call mouse_usb_check_enable
 	call mouse_drawing_optima_init
 	call p_mouse_cb_fuction
-	branch mouse_init+7
+	call p_mouse_sensor_powerdown
+	branch mouse_init+8
 
 p_mouse_cb_fuction:
 	setarg p_mouse_24g_package_data
 	store 2,mem_cb_24g_transmit_data
-	branch mouse_cb_fuction+2
+	setarg p_mouse_24g_search_dongle
+	store 2,mem_cb_24g_search_receiver
+	branch mouse_cb_fuction+4
 
 p_mouse_24g_package_data:		// 250Hz
 	rtnmark0 mark_24g
@@ -223,6 +226,51 @@
 	rtn blank
 	branch g24_transmit_by_interrupt_enable
 
+p_mouse_24g_search_dongle:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_24G_SEARCH_DONGLE
+	fetch 1,mem_mouse_long_mult_flag
+	rtn blank
+	fetch 1,mem_24g_abort_pac
+	rtn blank
+	fetch 1,mem_mouse_search_dongle_interval
+	increase 1,pdata
+	and_into 3,pdata
+	store 1,mem_mouse_search_dongle_interval
+	nrtn blank	//400ms
+	jam 0,mem_mouse_search_dongle_ch
+p_mouse_24g_search_dongle_loop:
+	fetch 1,mem_mouse_search_dongle_ch
+	increase 1,pdata
+	store 1,mem_mouse_search_dongle_ch
+	sub pdata,G24_CH_NUMBER,null
+	nbranch p_mouse_24g_search_dongle_loop_end,positive
+	call g24_reconn_data_prep
+	call g24_transmit_receive_ack
+	nbranch p_mouse_24g_search_dongle_loop_retry,sync
+	nbranch p_mouse_24g_search_dongle_loop_retry,user3
+	call mouse_24g_search_dongle_success
+p_mouse_24g_search_dongle_loop_end:
+	call g24_txbuf_clear
+	fetch 1,mem_mouse_search_dongle_count
+	increase 1,pdata
+	store 1,mem_mouse_search_dongle_count
+	beq G24_CH_POLL_COUNT,p_mouse_24g_search_dongle_check
+	rtn	
+
+p_mouse_24g_search_dongle_loop_retry:
+	call g24_ch
+	branch p_mouse_24g_search_dongle_loop
+
+p_mouse_24g_search_dongle_check:
+	jam 0,mem_mouse_search_dongle_count
+	fetch 1,mem_mouse_search_dongle_action
+	rtnbit1 G24_DISCONN_STATE
+	set1 G24_DISCONN_STATE,pdata
+	store 1,mem_mouse_search_dongle_action
+	fetch 2,mem_mouse_24g_search_dongle_time_init		
+	store 2,mem_mouse_no_data_timer
+	branch p_mouse_sensor_powerdown
 
 p_g24_transmit_no_interrupt:
 	call g24_txdata_prep
@@ -275,7 +323,9 @@
 	setarg PAN_REG_CONFIG
 	call twspi_read
 	bbit1 3,mouse_app_enter_hibernate+3
-	branch mouse_app_enter_hibernate+1
+	call p_mouse_sensor_reset
+	call p_mouse_sensor_powerdown
+	branch mouse_app_enter_hibernate+3
 
 p_mouse_setgpio_hibernate:
 	call mouse_set_sdio_high
@@ -356,7 +406,7 @@
 	setarg 0
 	store 7,mem_mouse_key
 	jam 1,mem_sensor_shutdown_flag
-	call mouse_sensor_powerdown
+	call p_mouse_sensor_powerdown
 	branch p_g24_long_sleep
 
 p_g24_nodata_transmit:
@@ -754,4 +804,41 @@
 	call mouse_dpi_config
 	branch mouse_motion+5
 
+p_mouse_sensor_poweron:
+	call mouse_sensor_spi_init
+	fetch 1,mem_config_sensor_type
+	beq KA8G2,p_mouse_ka8g2_sensor_init
+	call mouse_sensor_reset
+	arg mem_sensor_poweron_init,regc
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+	
+p_mouse_ka8g2_sensor_init:
+	call p_mouse_ka8g2_sensor_reset
+	arg mem_ka8g2_sensor_poweron_init,regc
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+
+p_mouse_sensor_reset:
+	fetch 1,mem_config_sensor_type
+	beq KA8G2,p_mouse_ka8g2_sensor_reset
+	branch mouse_sensor_reset
+p_mouse_ka8g2_sensor_reset:
+	setarg 0x9706		// reset to factory settings
+	call twspi_write
+	nop 12000
+	rtn
+
+p_mouse_sensor_powerdown:
+	call mouse_init_sunt
+	call mouse_sensor_spi_init
+	fetch 1,mem_config_sensor_type
+	beq KA8G2,p_mouse_ka8g2_sensor_powerdown
+	setarg 0x0806
+	branch twspi_write
+p_mouse_ka8g2_sensor_powerdown:
+	setarg 0x1f06		
+	branch twspi_write
+
+
 
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/sched/mouse.dat	(revision 782)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/sched/mouse.dat	(working copy)
@@ -319,18 +319,18 @@
 mem_mouse_dpi_seting:
 03##mem_320x_dpi_0  	1200/1300
 04##mem_320x_dpi_1  	1600
-01##mem_320x_dpi_2   	800
+01##mem_320x_dpi_2   800
 02##mem_320x_dpi_3  	1000
 
 20##mem_3212_dpi_0	1200
 2a##mem_3212_dpi_1	1600
 3f ##mem_3212_dpi_2	2400
-15##mem_3212_dpi_3   	800
+15##mem_3212_dpi_3   800
 
-06##mem_ka8g2_dpi_0	1200
-0c##mem_ka8g2_dpi_1	2400
-10##mem_ka8g2_dpi_2	3000
-04##mem_ka8g2_dpi_3	800
+14##mem_ka8g2_dpi_0	1200
+1b##mem_ka8g2_dpi_1	1600
+11##mem_ka8g2_dpi_2	1000
+0e##mem_ka8g2_dpi_3	800
 
 mem_sensor_3212_init:
 09 5a
@@ -429,12 +429,27 @@
 09 00
 ff ff
 
+mem_sensor_ka8g2_init:
+09 a5
+46 34
+60 07
+69 04
+7d 20
+7e 00
+09 00
+ff ff
+
 mem_sensor_poweron_init:
 09 5a
 0b f3
 09 00
 ff ff
 
+mem_ka8g2_sensor_poweron_init:
+09 a5
+0b f3
+09 00
+ff ff	
 
 mem_ui_led_struct_ptr:mem_mouse_led_type
 mem_ui_led_struct_num:01
