Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/format/app_mouse.format	(revision 401)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/format/app_mouse.format	(working copy)
@@ -323,6 +323,8 @@
 
 1 mem_sensor_shutdown_flag
 
+1 mem_mouse_reuse_2ice_gpio
+
 1 mem_mouse_logo_led_gpio
 1 mem_mouse_logo_led_on_check_count
 2 mem_mouse_logo_led_on_timer
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/eeprom.dat	(revision 401)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/eeprom.dat	(working copy)
@@ -2,144 +2,64 @@
 02
 aa
 55
-0e
-06
+92
+03
 c2
 84
 00
-10
+0d
 c0
 00
 00
-22
+0e
 c0
 45
 80
-9c
+5d
 c0
 4f
 80
-7a
+5b
 c0
 57
 00
-26
+12
 c0
 61
 80
-32
-c0
-63
-81
-59
+1a
 c0
 64
 80
-a7
+68
 c0
 65
 00
-b4
+78
 c0
 67
 00
-ce
+8e
 c0
 68
 00
-e7
-c0
-69
-81
-4a
-c0
-6a
-01
-4c
+a7
 c0
 6b
 00
-c2
+86
 c0
 6c
 80
-f8
+b8
 20
 20
 13
 7c
-c0
-11
-00
-14
-c0
-11
-80
-1a
-c0
-6e
-81
-45
 20
 20
 13
 7c
-1f
-e2
-22
-00
-6f
-e0
-c9
-17
-d8
-40
-00
-3e
-20
-40
-60
-93
-1a
-22
-7e
-00
-20
-20
-5c
-c2
-1f
-e2
-22
-00
-18
-42
-24
-00
-6f
-e0
-c9
-17
-d8
-40
-00
-3e
-20
-40
-60
-93
-1a
-22
-7e
-00
-1a
-42
-04
-00
-20
-20
-5c
-c9
 20
 80
 00
@@ -163,47 +83,31 @@
 20
 40
 00
-5a
-20
-40
-41
-a7
-20
-40
-40
-8e
-20
-75
-80
-00
-20
-40
 3d
-8a
-20
-40
-47
-28
 20
 40
 00
-55
+16
 20
-40
-01
-4e
+20
+3b
+c2
 6f
-e0
-c9
-2a
-c3
-83
-80
+f1
+01
+20
+79
+3f
+fe
+0e
+67
+f2
 00
+4c
 20
 20
-3b
-cb
+5c
+af
 6f
 e4
 4b
@@ -219,7 +123,7 @@
 c0
 00
 00
-39
+21
 20
 40
 3d
@@ -255,7 +159,7 @@
 20
 40
 00
-50
+38
 1f
 e1
 7e
@@ -279,7 +183,7 @@
 20
 40
 00
-47
+2f
 20
 34
 48
@@ -319,7 +223,7 @@
 c2
 00
 00
-4b
+33
 20
 60
 00
@@ -344,26 +248,6 @@
 60
 00
 00
-58
-00
-48
-66
-67
-e1
-48
-9b
-58
-00
-01
-5d
-67
-e1
-48
-9d
-20
-20
-3b
-d3
 20
 75
 80
@@ -387,7 +271,7 @@
 20
 40
 00
-64
+47
 68
 48
 c9
@@ -399,7 +283,7 @@
 20
 40
 00
-74
+57
 20
 20
 3b
@@ -432,10 +316,10 @@
 40
 60
 93
-df
+6f
 e0
-00
-03
+cb
+e2
 d8
 40
 00
@@ -468,175 +352,39 @@
 20
 3f
 54
-6f
-e0
+68
+48
 c9
 17
-d8
-40
-00
-00
 20
 40
 60
-93
-df
-e0
-00
-03
-d8
-40
-00
-00
+7f
+68
+48
+cb
+e2
 20
 20
 60
-93
-20
-75
-80
-00
+7f
 70
-45
-f7
-09
-58
-00
-05
-0e
-67
-e1
-45
-f8
-58
 00
+80
 00
-08
-67
-e1
-45
-fa
+20
+20
+13
+b7
 70
-44
-cf
-7f
-58
-00
-00
-24
-67
-e1
+8a
+8b
+e6
+20
 40
-b5
-67
-e1
-40
-b9
-58
-00
-02
-00
-67
-e1
-40
-b7
-67
-e1
-40
-bb
-58
-00
-00
-20
-67
-e1
-40
-c3
-67
-e1
-40
-bf
-58
-00
-20
-00
-67
-e1
-40
-c1
-58
-00
-04
-80
-67
-e1
-40
-c6
-58
-00
-0c
-00
-67
-e1
-40
-c8
-58
-00
-0c
-3f
-67
-e1
-41
-7e
-58
-00
-03
-33
-e7
-e1
-00
-05
-58
-04
-10
-9d
-67
-e1
-c1
-83
-20
-40
-7f
-dc
-58
-00
-00
-00
-67
-e1
-41
-e6
-1c
-43
-7e
-00
-67
-e2
-40
-9c
-20
-60
-00
-00
-70
-8a
-8b
-e6
-20
-40
-12
-6a
-20
+12
+6a
+20
 40
 12
 71
@@ -684,6 +432,14 @@
 40
 40
 15
+6f
+e0
+c9
+10
+c0
+7f
+80
+71
 68
 48
 c9
@@ -700,14 +456,10 @@
 40
 60
 42
-20
-40
-3e
-40
-d8
-40
-00
-13
+68
+48
+cb
+e2
 20
 40
 3f
@@ -721,9 +473,17 @@
 00
 3f
 20
-20
+40
 60
 93
+20
+40
+00
+c8
+20
+20
+3e
+36
 68
 48
 c9
@@ -756,30 +516,30 @@
 40
 60
 93
+6f
+e0
+80
+a1
+79
+3f
+fe
+03
+67
+e0
+80
+a1
+68
+48
+c9
+20
 20
 40
-00
-be
+60
+42
 20
 20
 3e
 44
-d8
-40
-00
-13
-20
-40
-3f
-56
-d8
-40
-00
-03
-20
-20
-3f
-56
 1a
 62
 7e
@@ -787,11 +547,7 @@
 c0
 1e
 00
-c6
-c0
-1d
-00
-cb
+89
 20
 20
 43
@@ -816,18 +572,6 @@
 20
 48
 4e
-6f
-e0
-c8
-a5
-24
-3a
-01
-0f
-20
-20
-48
-35
 78
 54
 7c
@@ -871,7 +615,7 @@
 24
 34
 00
-dc
+9c
 20
 40
 47
@@ -879,7 +623,7 @@
 20
 40
 00
-df
+9f
 20
 20
 45
@@ -890,7 +634,7 @@
 28
 70
 4b
-e3
+e4
 00
 20
 60
@@ -899,7 +643,7 @@
 6f
 e0
 cb
-e3
+e4
 1f
 e0
 fe
@@ -907,7 +651,7 @@
 67
 e0
 cb
-e3
+e4
 1f
 e6
 7c
@@ -923,7 +667,7 @@
 67
 e1
 4b
-e4
+e5
 20
 60
 00
@@ -935,7 +679,7 @@
 20
 40
 00
-ea
+aa
 20
 20
 40
@@ -986,8 +730,8 @@
 c1
 20
 3a
-01
-30
+00
+cf
 67
 e0
 cb
@@ -1022,172 +766,40 @@
 be
 20
 40
-01
-2d
-20
-40
-40
-7c
-20
-40
-44
+00
 cc
 20
 40
-44
-dc
+00
+c1
 20
-40
-44
-ff
 20
-40
-45
-04
+44
+bd
+6f
+e1
+4b
+e5
 20
-40
-45
-12
+7a
+00
+00
+68
+48
+cb
+e3
 20
 40
-45
-1f
-20
+60
+69
+da
+60
+4b
+e5
+da
 40
-45
-15
-20
-40
-45
-2a
-20
-40
-45
-2d
-20
-40
-45
-32
-20
-40
-45
-35
-20
-40
-40
-22
-20
-40
-45
-47
-20
-40
-01
-22
-20
-20
-01
-1a
-70
-48
-a5
-00
-20
-40
-26
-52
-5f
-ff
-ff
-ff
-67
-e2
-48
-5c
-58
-00
-00
-00
-67
-e3
-c8
-d0
-70
-4b
-e1
-01
-20
-40
-01
-4e
-20
-40
-3e
-33
-20
-40
-01
-29
-20
-20
-26
-b5
-6f
-e0
-c9
-2a
-c3
-83
-80
-00
-da
-60
-4a
-b2
-da
-40
-01
-1f
-20
-20
-31
-91
-6f
-e0
-c9
-38
-c0
-00
-01
-0f
-20
-20
-43
-1b
-6f
-e1
-4b
-e4
-20
-7a
-00
-00
-68
-48
-cb
-e2
-20
-40
-60
-69
-da
-60
-4b
-e4
-da
-40
-01
-29
+00
+c8
 20
 20
 31
@@ -1199,11 +811,11 @@
 67
 e1
 4b
-e4
+e5
 68
 48
 cb
-e2
+e3
 20
 20
 60
@@ -1214,8 +826,8 @@
 a8
 da
 40
-01
-30
+00
+cf
 20
 20
 31
@@ -1270,12 +882,12 @@
 03
 20
 41
-01
-3f
+00
+de
 24
 41
-01
-43
+00
+e2
 20
 20
 48
@@ -1304,259 +916,11 @@
 60
 00
 00
-6f
-e0
-cb
-e1
-24
-5a
-01
-48
-20
-20
-21
-d2
-79
-20
-00
-26
-20
-60
-00
-00
-20
-40
-01
-52
-20
-20
-41
-a9
-20
-40
-01
-52
-20
-20
-42
-38
-20
-40
-41
-a7
-20
-40
-01
-52
-58
-00
-08
-06
-20
-20
-5b
-0c
-20
-40
-3f
-6a
-6f
-f1
-00
-50
-79
-20
-7e
-02
-67
-f1
-00
-50
-70
-44
-84
-77
-20
-40
-3f
-69
-20
-20
-5b
-08
-20
-40
-42
-32
-20
-40
-01
-4e
-20
-40
-3e
-33
-20
-20
-32
-17
-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
-01
-73
-20
-40
-25
-9a
-20
-40
-26
-5b
-24
-2c
-01
-79
-24
-37
-81
-79
-20
-40
-48
-b5
-20
-40
-25
-97
-6f
-e0
-cb
-a3
-1f
-e0
-fe
-01
-67
-e0
-cb
-a3
-c0
-08
-01
-7b
-20
-60
-00
-00
-20
-40
-22
-cb
-20
-20
-01
-69
-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
-01
-4e
-72
-e4
-aa
-55
-40
+dd
+b6
+aa
+55
+40
 00
 00
 40
@@ -1584,9 +948,9 @@
 40
 00
 00
-88
+08
 46
-59
+41
 02
 00
 00
@@ -1596,7 +960,6 @@
 00
 00
 00
-0c
 00
 00
 00
@@ -1619,7 +982,8 @@
 00
 00
 00
-20
+00
+00
 00
 00
 00
@@ -1638,7 +1002,7 @@
 7a
 41
 88
-1f
+16
 ce
 aa
 55
@@ -1673,20 +1037,6 @@
 55
 01
 00
-7a
-41
-88
-aa
-55
-01
-00
-7c
-41
-ce
-aa
-55
-01
-00
 d0
 44
 00
@@ -1742,8 +1092,8 @@
 00
 0d
 49
-0b
 0c
+0b
 0a
 08
 ff
@@ -1777,10 +1127,11 @@
 ff
 aa
 55
-01
+02
 00
 e2
 4b
+03
 09
 aa
 55
@@ -1819,7 +1170,7 @@
 00
 b3
 4b
-03
+00
 01
 aa
 55
@@ -1930,7 +1281,7 @@
 00
 a1
 44
-32
+05
 aa
 55
 06
@@ -2017,38 +1368,30 @@
 00
 a8
 40
+10
 16
-b0
 c8
 12
 23
 51
 aa
 55
-14
+0c
 00
 fc
 45
-13
+0b
 42
-6c
-75
-65
-74
-6f
-6f
-74
-68
+54
+33
+2e
+30
 20
 4d
 6f
 75
 73
 65
-20
-33
-2e
-30
 aa
 55
 05
@@ -2144,17 +1487,17 @@
 80
 0c
 09
+42
+54
+35
+2e
+32
+20
 4d
 6f
 75
 73
 65
-20
-31
-33
-30
-38
-61
 aa
 55
 0e
@@ -2164,17 +1507,17 @@
 1f
 0c
 09
+42
+54
+35
+2e
+32
+20
 4d
 6f
 75
 73
 65
-20
-31
-33
-30
-38
-61
 aa
 55
 0c
@@ -2182,17 +1525,17 @@
 f7
 42
 0b
+42
+54
+35
+2e
+32
+20
 4d
 6f
 75
 73
 65
-20
-31
-33
-30
-38
-61
 aa
 55
 08
@@ -2256,8 +1599,8 @@
 00
 7a
 43
-8e
-b1
+10
+16
 3a
 0e
 8e
@@ -2296,7 +1639,7 @@
 00
 d1
 43
-22
+2d
 00
 aa
 55
@@ -2496,236 +1839,867 @@
 00
 ff
 ff
-09
-5a
-06
-02
-09
-69
-0d
-48
-0e
-9f
-0f
-ba
-09
-00
+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
+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
+32
+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
+95
+01
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
 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
-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
-32
-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
-86
-06
 ff
 ff
 ff
@@ -8188,5 +8162,31 @@
 ff
 ff
 ff
-4f
-23
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+a6
+ee
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/memmap.format	(revision 401)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/memmap.format	(working copy)
@@ -2203,9 +2203,10 @@
 0x4bd5 mem_customer_key_release
 0x4bde mem_mouse_set_high_impedance_bit_set
 0x4be1 mem_sensor_shutdown_flag
-0x4be2 mem_mouse_logo_led_gpio
-0x4be3 mem_mouse_logo_led_on_check_count
-0x4be4 mem_mouse_logo_led_on_timer
+0x4be2 mem_mouse_reuse_2ice_gpio
+0x4be3 mem_mouse_logo_led_gpio
+0x4be4 mem_mouse_logo_led_on_check_count
+0x4be5 mem_mouse_logo_led_on_timer
 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/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/program.lis	(revision 401)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/program.lis	(working copy)
@@ -1,498 +1,303 @@
               include "bt_format "
               org 0x0000
-0000 c2840010 bbit1 8 ,pf_patch_ext 
-0001 c0000022 beq patch00_0 ,p_soft_reset 
-0002 c045809c beq patch11_3 ,p_initialize_radio_cont 
-0003 c04f807a beq patch13_7 ,p_init_param 
-0004 c0570026 beq patch15_6 ,p_app_init 
-0005 c0618032 beq patch18_3 ,p_mouse_start_work 
-0006 c0638159 beq patch18_7 ,p_mouse_app_enter_hibernate 
-0007 c06480a7 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0008 c06500b4 beq patch19_2 ,p_mouse_lpm_before_common 
-0009 c06700ce beq patch19_6 ,p_mouse_motion 
-000a c06800e7 beq patch1a_0 ,p_mouse_seting_dpi 
-000b c069814a beq patch1a_3 ,p_mouse_init_sunt 
-000c c06a014c beq patch1a_4 ,p_mouse_sensor_poweron 
-000d c06b00c2 beq patch1a_6 ,p_mouse_priority_bb_event 
-000e c06c80f8 beq patch1b_1 ,p_mouse_bb_event_timer 
-000f 2020137c branch loop 
+0000 c284000d bbit1 8 ,pf_patch_ext 
+0001 c000000e beq patch00_0 ,p_soft_reset 
+0002 c045805d beq patch11_3 ,p_initialize_radio_cont 
+0003 c04f805b beq patch13_7 ,p_init_param 
+0004 c0570012 beq patch15_6 ,p_app_init 
+0005 c061801a beq patch18_3 ,p_mouse_start_work 
+0006 c0648068 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0007 c0650078 beq patch19_2 ,p_mouse_lpm_before_common 
+0008 c067008e beq patch19_6 ,p_mouse_motion 
+0009 c06800a7 beq patch1a_0 ,p_mouse_seting_dpi 
+000a c06b0086 beq patch1a_6 ,p_mouse_priority_bb_event 
+000b c06c80b8 beq patch1b_1 ,p_mouse_bb_event_timer 
+000c 2020137c branch loop 
 
 pf_patch_ext:
-0010 c0110014 beq patch24_2 ,p_spid_write_reg 
-0011 c011801a beq patch24_3 ,p_spid_read_reg 
-0012 c06e8145 beq patch3b_5 ,p_g24_dispatch 
-0013 2020137c branch loop 
-
-p_spid_write_reg:
-0014 1fe22200 copy pdata ,rega 
-0015 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0016 d840003e arg gpcfg_output_low ,temp 
-0017 20406093 call gpio_config_function_int 
-0018 1a227e00 copy rega ,pdata 
-0019 20205cc2 branch spid_write_reg + 3 
-
-p_spid_read_reg:
-001a 1fe22200 copy pdata ,rega 
-001b 18422400 copy temp ,regb 
-001c 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-001d d840003e arg gpcfg_output_low ,temp 
-001e 20406093 call gpio_config_function_int 
-001f 1a227e00 copy rega ,pdata 
-0020 1a420400 copy regb ,temp 
-0021 20205cc9 branch spid_read_reg + 3 
+000d 2020137c branch loop 
 
 p_soft_reset:
-0022 20800000 clear_stack 
-0023 204030f3 call app_param_init 
-0024 20403bfd call mouse_xtal_init 
-0025 20200804 branch soft_reset + 3 
+000e 20800000 clear_stack 
+000f 204030f3 call app_param_init 
+0010 20403bfd call mouse_xtal_init 
+0011 20200804 branch soft_reset + 3 
 
 p_app_init:
 
 p_mouse_init:
-0026 20406df3 call enable_authrom 
-0027 2040005a call p_mouse_setting_config 
-0028 204041a7 call mouse_init_sunt 
-0029 2040408e call mouse_dpi_config 
-002a 20758000 rtn wake 
-002b 20403d8a call mouse_usb_check_enable 
-002c 20404728 call mouse_drawing_optima_init 
-002d 20400055 call p_mouse_cb_fuction 
-002e 2040014e call p_mouse_sensor_powerdown 
-002f 6fe0c92a fetch 1 ,mem_usb_addr 
-0030 c3838000 rtnbit1 7 
-0031 20203bcb branch mouse_init_wireless 
+0012 20406df3 call enable_authrom 
+0013 2040003d call p_mouse_setting_config 
+0014 20400016 call p_lpm_write_ice_disable 
+0015 20203bc2 branch mouse_init + 1 
+
+p_lpm_write_ice_disable:
+0016 6ff10120 fetch 2 ,core_ucode_flag 
+0017 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+0018 67f2004c store 4 ,core_lpm_reg 
+0019 20205caf branch lpm_write2_ctrl_option 
 
 p_mouse_start_work:
-0032 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0033 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-0034 6fe0c938 fetch 1 ,mem_device_flag 
-0035 c0000039 beq mode_24g_device ,p_mouse_24g_start_mode 
-0036 20403d65 call mouse_wakeup_from_power_check 
-0037 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
-0038 20203d59 branch mouse_start_reconnect_device 
+001a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+001b c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+001c 6fe0c938 fetch 1 ,mem_device_flag 
+001d c0000021 beq mode_24g_device ,p_mouse_24g_start_mode 
+001e 20403d65 call mouse_wakeup_from_power_check 
+001f 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
+0020 20203d59 branch mouse_start_reconnect_device 
 
 p_mouse_24g_start_mode:
-0039 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-003a c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-003b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-003c c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-003d c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-003e 20400050 call p_mouse_key_check_once 
-003f 1fe17e07 and pdata ,0x07 ,pdata 
-0040 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
-0041 98467c00 isub temp ,null 
-0042 2022c827 branch mouse_24g_start_pair_mode ,zero 
-0043 2020480c branch mouse_24g_reconn_general_dongle 
+0021 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0022 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+0023 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0024 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+0025 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+0026 20400038 call p_mouse_key_check_once 
+0027 1fe17e07 and pdata ,0x07 ,pdata 
+0028 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0029 98467c00 isub temp ,null 
+002a 2022c827 branch mouse_24g_start_pair_mode ,zero 
+002b 2020480c branch mouse_24g_reconn_general_dongle 
 
 p_mouse_24g_reconn_dongle_start:
-0044 20400047 call p_g24_factory_check 
-0045 20344812 branch mouse_24g_start_auto_pair_next ,user 
-0046 20204806 branch mouse_24g_reconn_dongle_start 
+002c 2040002f call p_g24_factory_check 
+002d 20344812 branch mouse_24g_start_auto_pair_next ,user 
+002e 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_g24_factory_check:
-0047 df200002 arg 2 ,loopcnt 
-0048 d8c04993 arg mem_mouse_24g_addr ,contr 
+002f df200002 arg 2 ,loopcnt 
+0030 d8c04993 arg mem_mouse_24g_addr ,contr 
 
 p_pdata_0xff_check:
-0049 20407e54 call enable_user 
-004a 5800ffff setarg 0xffff 
+0031 20407e54 call enable_user 
+0032 5800ffff setarg 0xffff 
 
 p_pdata_0xff_check_loop:
-004b e8410006 ifetcht 2 ,contr 
-004c 98467c00 isub temp ,null 
-004d 2442fe56 ncall disable_user ,zero 
-004e c200004b loop p_pdata_0xff_check_loop 
-004f 20600000 rtn 
+0033 e8410006 ifetcht 2 ,contr 
+0034 98467c00 isub temp ,null 
+0035 2442fe56 ncall disable_user ,zero 
+0036 c2000033 loop p_pdata_0xff_check_loop 
+0037 20600000 rtn 
 
 p_mouse_key_check_once:
-0050 20404121 call mouse_check_key_gpio_once 
-0051 20404115 call mouse_check_key_gpio 
-0052 d8400000 arg 0 ,temp 
-0053 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
-0054 20600000 rtn 
-
-p_mouse_cb_fuction:
-0055 58004866 setarg mouse_24g_package_data 
-0056 67e1489b store 2 ,mem_cb_24g_transmit_data 
-0057 5800015d setarg p_mouse_24g_search_dongle 
-0058 67e1489d store 2 ,mem_cb_24g_search_receiver 
-0059 20203bd3 branch mouse_cb_fuction_next 
+0038 20404121 call mouse_check_key_gpio_once 
+0039 20404115 call mouse_check_key_gpio 
+003a d8400000 arg 0 ,temp 
+003b 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
+003c 20600000 rtn 
 
 p_mouse_setting_config:
-005a 20758000 rtn wake 
-005b 20402607 call g24_transmit_init 
-005c 204022ff call g24_chmap_param_init 
-005d 20403f1e call mouse_gpio_init 
-005e 20403d13 call mouse_param_init 
-005f 20400064 call p_mouse_sensor_set_angle 
-0060 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0061 20406050 call gpio_config_input 
-0062 20400074 call p_ice_gpio_set_float 
-0063 20203bf5 branch mouse_setting_config_next 
+003d 20758000 rtn wake 
+003e 20402607 call g24_transmit_init 
+003f 204022ff call g24_chmap_param_init 
+0040 20403f1e call mouse_gpio_init 
+0041 20403d13 call mouse_param_init 
+0042 20400047 call p_mouse_sensor_set_angle 
+0043 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0044 20406050 call gpio_config_input 
+0045 20400057 call p_ice_gpio_set_float 
+0046 20203bf5 branch mouse_setting_config_next 
 
 p_mouse_sensor_set_angle:
-0064 6fe0c924 fetch 1 ,mem_sensor_angle_default 
-0065 67e0c928 store 1 ,mem_config_sensor_angle 
-0066 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0067 c17f8000 rtneq gpio_disable 
-0068 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0069 d840003e arg gpcfg_output_low ,temp 
-006a 20406093 call gpio_config_function_int 
-006b dfe00003 arg 3 ,pdata 
-006c d840003e arg gpcfg_output_low ,temp 
-006d 20406093 call gpio_config_function_int 
-006e 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-006f 20403f56 call mouse_gpio_config_input_pu 
-0070 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0071 20406059 call gpio_get_bit 
-0072 2440c2aa ncall mouse_sensor_switch_angle ,true 
-0073 20203f54 branch mouse_gpio_config_input_pd 
+0047 6fe0c924 fetch 1 ,mem_sensor_angle_default 
+0048 67e0c928 store 1 ,mem_config_sensor_angle 
+0049 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+004a c17f8000 rtneq gpio_disable 
+004b 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+004c d840003e arg gpcfg_output_low ,temp 
+004d 20406093 call gpio_config_function_int 
+004e 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
+004f d840003e arg gpcfg_output_low ,temp 
+0050 20406093 call gpio_config_function_int 
+0051 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0052 20403f56 call mouse_gpio_config_input_pu 
+0053 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0054 20406059 call gpio_get_bit 
+0055 2440c2aa ncall mouse_sensor_switch_angle ,true 
+0056 20203f54 branch mouse_gpio_config_input_pd 
 
 p_ice_gpio_set_float:
-0074 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0075 d8400000 arg gpcfg_high_impedance ,temp 
-0076 20406093 call gpio_config_function_int 
-0077 dfe00003 arg 3 ,pdata 
-0078 d8400000 arg gpcfg_high_impedance ,temp 
-0079 20206093 branch gpio_config_function_int 
+0057 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+0058 2040607f call gpio_set_high_impedance 
+0059 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+005a 2020607f branch gpio_set_high_impedance 
 
 p_init_param:
-007a 20758000 rtn wake 
-007b 7045f709 jam bluetooth_core_specification_5_0 ,mem_lmp_version 
-007c 5800050e setarg company_id_yichip 
-007d 67e145f8 store 2 ,mem_lmp_compid 
-007e 58000008 setarg 0x08 
-007f 67e145fa store 2 ,mem_lmp_subversion 
-0080 7044cf7f jam 0x7f ,mem_seqi 
-0081 58000024 setarg 0x24 
-0082 67e140b5 store 2 ,mem_iscan_window 
-0083 67e140b9 store 2 ,mem_pscan_window 
-0084 58000200 setarg 0x200 
-0085 67e140b7 store 2 ,mem_iscan_interval 
-0086 67e140bb store 2 ,mem_pscan_interval 
-0087 58000020 setarg 0x20 
-0088 67e140c3 store 2 ,mem_inq_window 
-0089 67e140bf store 2 ,mem_page_window 
-008a 58002000 setarg 0x2000 
-008b 67e140c1 store 2 ,mem_page_to 
-008c 58000480 setarg 0x480 
-008d 67e140c6 store 2 ,mem_rx_window_init 
-008e 58000c00 setarg 0xc00 
-008f 67e140c8 store 2 ,mem_rx_window_sniff 
-0090 58000c3f setarg 0xc3f 
-0091 67e1417e store 2 ,mem_lpm_xtalcnt + 1 
-0092 58000333 setarg 0x333 
-0093 e7e10005 istore 2 ,contw 
-0094 5804109d setarg 0x04109d 
-0095 67e1c183 store 3 ,mem_lpm_ctrl3 + 1 
-0096 20407fdc call clear_wake 
-0097 58000000 setarg 0 
-0098 67e141e6 store 2 ,mem_tx_len 
-0099 1c437e00 rshift clkn_bt ,pdata 
-009a 67e2409c store 4 ,mem_last_clkn 
-009b 20600000 rtn 
+005b 70008000 jam 0 ,mem_lmo_tid2 
+005c 202013b7 branch init_param_next + 1 
 
 p_initialize_radio_cont:
-009c 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-009d 2040126a call initialize_syn_afc_cfg1 
-009e 20401271 call initialize_rf_ldo_cfg1 
-009f 20401277 call initialize_rc_cal 
-00a0 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-00a1 708a0305 jam 5 ,core_clkpll_cfg0 
-00a2 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-00a3 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-00a4 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-00a5 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-00a6 2020125d branch initialize_radio_cont + 8 
+005d 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+005e 2040126a call initialize_syn_afc_cfg1 
+005f 20401271 call initialize_rf_ldo_cfg1 
+0060 20401277 call initialize_rc_cal 
+0061 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0062 708a0305 jam 5 ,core_clkpll_cfg0 
+0063 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0064 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0065 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0066 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0067 2020125d branch initialize_radio_cont + 8 
 
 p_mouse_setgpio_hibernate:
-00a7 204042e9 call mouse_set_sdio_high 
-00a8 20407fdc call clear_wake 
-00a9 20404015 call mouse_before_hibernate_wheel_gpio_set 
-00aa 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00ab 20406069 call gpio_out_active 
-00ac 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00ad 20406042 call gpio_clr_wake 
-00ae 20403e40 call mouse_lpm_before_common 
-00af d8400013 arg 19 ,temp 
-00b0 20403f56 call mouse_gpio_config_input_pu 
-00b1 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-00b2 d840003f arg gpcfg_output_high ,temp 
-00b3 20206093 branch gpio_config_function_int 
+0068 204042e9 call mouse_set_sdio_high 
+0069 20407fdc call clear_wake 
+006a 20404015 call mouse_before_hibernate_wheel_gpio_set 
+006b 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+006c c07f8071 beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
+006d 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+006e 20406069 call gpio_out_active 
+006f 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0070 20406042 call gpio_clr_wake 
+
+p_mouse_setgpio_hibernate_skip_public_gpio:
+0071 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0072 20403f56 call mouse_gpio_config_input_pu 
+0073 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0074 d840003f arg gpcfg_output_high ,temp 
+0075 20406093 call gpio_config_function_int 
+0076 204000c8 call p_mouse_logo_led_on_timeout 
+0077 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-00b4 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-00b5 20406050 call gpio_config_input 
-00b6 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-00b7 20406050 call gpio_config_input 
-00b8 20403f88 call mouse_wheel_check 
-00b9 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-00ba d840003f arg gpcfg_output_high ,temp 
-00bb 20406093 call gpio_config_function_int 
-00bc 204000be call p_ice_gpio_set_input_pu 
-00bd 20203e44 branch mouse_lpm_before_common_next 
-
-p_ice_gpio_set_input_pu:
-00be d8400013 arg 19 ,temp 
-00bf 20403f56 call mouse_gpio_config_input_pu 
-00c0 d8400003 arg 3 ,temp 
-00c1 20203f56 branch mouse_gpio_config_input_pu 
+0078 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+0079 20406050 call gpio_config_input 
+007a 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+007b 20406050 call gpio_config_input 
+007c 20403f88 call mouse_wheel_check 
+007d 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+007e d840003f arg gpcfg_output_high ,temp 
+007f 20406093 call gpio_config_function_int 
+0080 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
+0081 793ffe03 set0 3 ,pdata 
+0082 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
+0083 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0084 20406042 call gpio_clr_wake 
+0085 20203e44 branch mouse_lpm_before_common_next 
 
 p_mouse_priority_bb_event:
-00c2 1a627e00 copy regc ,pdata 
-00c3 c01e00c6 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-00c4 c01d00cb beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-00c5 20204336 branch mouse_priority_bb_event + 2 
+0086 1a627e00 copy regc ,pdata 
+0087 c01e0089 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0088 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_success:
-00c6 6fe2483c fetch 4 ,mem_24g_addr 
-00c7 67e24891 store 4 ,mem_24g_receiver_addr 
-00c8 67e24993 store 4 ,mem_mouse_24g_addr 
-00c9 204048c6 call mouse_device_poweron_timer_init 
-00ca 2020484e branch mouse_24g_attempt_success 
-
-p_mouse_24g_attempt_fail:
-00cb 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-00cc 243a010f nbranch p_mouse_24g_hibernate_set ,blank 
-00cd 20204835 branch mouse_24g_attempt_fail_next 
+0089 6fe2483c fetch 4 ,mem_24g_addr 
+008a 67e24891 store 4 ,mem_24g_receiver_addr 
+008b 67e24993 store 4 ,mem_mouse_24g_addr 
+008c 204048c6 call mouse_device_poweron_timer_init 
+008d 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_motion:
-00ce 78547c00 disable user 
-00cf 58000000 setarg 0 
-00d0 67e348d1 store 6 ,mem_mouse_x 
-00d1 20404240 call mouse_check_sensor_data 
-00d2 20403f7e call mouse_zwheel 
-00d3 20403f83 call mouse_t_zwheel 
-00d4 204040dc call mouse_key 
-00d5 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00d6 1fe17e1f and_into 0x1f ,pdata 
-00d7 67e0c8d0 store 1 ,mem_mouse_key 
-00d8 243400dc nbranch p_mouse_motion_nodata ,user 
-00d9 2040471a call mouse_drawing_optima 
-00da 204000df call p_mouse_logo_led_on_check 
-00db 20204544 branch mouse_no_data_timer_init 
+008e 78547c00 disable user 
+008f 58000000 setarg 0 
+0090 67e348d1 store 6 ,mem_mouse_x 
+0091 20404240 call mouse_check_sensor_data 
+0092 20403f7e call mouse_zwheel 
+0093 20403f83 call mouse_t_zwheel 
+0094 204040dc call mouse_key 
+0095 6fe0c8d0 fetch 1 ,mem_mouse_key 
+0096 1fe17e1f and_into 0x1f ,pdata 
+0097 67e0c8d0 store 1 ,mem_mouse_key 
+0098 2434009c nbranch p_mouse_motion_nodata ,user 
+0099 2040471a call mouse_drawing_optima 
+009a 2040009f call p_mouse_logo_led_on_check 
+009b 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_motion_nodata:
-00dc 20404728 call mouse_drawing_optima_init 
-00dd 704be300 jam 0 ,mem_mouse_logo_led_on_check_count 
-00de 20600000 rtn 
+009c 20404728 call mouse_drawing_optima_init 
+009d 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
+009e 20600000 rtn 
 
 p_mouse_logo_led_on_check:
-00df 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_on_check_count 
-00e0 1fe0fe01 increase 1 ,pdata 
-00e1 67e0cbe3 store 1 ,mem_mouse_logo_led_on_check_count 
-00e2 1fe67c08 sub pdata ,low_voltage_led_count ,null 
-00e3 20610000 rtn positive 
+009f 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
+00a0 1fe0fe01 increase 1 ,pdata 
+00a1 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
+00a2 1fe67c08 sub pdata ,low_voltage_led_count ,null 
+00a3 20610000 rtn positive 
 
 p_mouse_logo_led_on:
-00e4 58000258 setarg 0x0258 
-00e5 67e14be4 store 2 ,mem_mouse_logo_led_on_timer 
-00e6 20600000 rtn 
+00a4 58000258 setarg 0x0258 
+00a5 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00a6 20600000 rtn 
 
 p_mouse_seting_dpi:
-00e7 2040408f call mouse_setting_dpi_4_level 
-00e8 204000ea call p_mouse_dpi_led_blink_delay 
-00e9 20204098 branch mouse_seting_sensor_type 
+00a7 2040408f call mouse_setting_dpi_4_level 
+00a8 204000aa call p_mouse_dpi_led_blink_delay 
+00a9 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00ea 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00eb c17f8000 rtneq gpio_disable 
-00ec 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00ed 247a0000 nrtn blank 
-00ee 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00ef 247a0000 nrtn blank 
-00f0 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00f1 247a0000 nrtn blank 
-00f2 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00f3 247a0000 nrtn blank 
-00f4 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00f5 203a0130 branch p_mouse_dpi_led_blink_init ,blank 
-00f6 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00f7 20600000 rtn 
+00aa 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00ab c17f8000 rtneq gpio_disable 
+00ac 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00ad 247a0000 nrtn blank 
+00ae 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00af 247a0000 nrtn blank 
+00b0 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00b1 247a0000 nrtn blank 
+00b2 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00b3 247a0000 nrtn blank 
+00b4 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00b5 203a00cf branch p_mouse_dpi_led_blink_init ,blank 
+00b6 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00b7 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00f8 20403e9b call mouse_adc_read 
-00f9 20404956 call mouse_low_voltage_led_timer 
-00fa 2040232b call g24_pair_timeout_timer 
-00fb 20402556 call g24_reconn_timeout_timer 
-00fc 204047cd call mouse_24g_long_sleep_param_update_timer 
-00fd 204048be call mouse_device_poweron_timer 
-00fe 2040012d call p_mouse_dpi_led_blink_delay_timer 
-00ff 2040407c call mouse_dpi_key_check_long_press 
-0100 204044cc call mouse_bt_discovery_check 
-0101 204044dc call mouse_commbination_key_process 
-0102 204044ff call mouse_check_discovery_timeout_timer 
-0103 20404504 call mouse_check_direct_timeout_timer 
-0104 20404512 call mouse_le_enable_att_list_timer 
-0105 2040451f call mouse_le_battery_updata_timer 
-0106 20404515 call mouse_le_send_smp_security_request_timer 
-0107 2040452a call mouse_check_hid_handshake_timer 
-0108 2040452d call mouse_bt_check_sniff_req_timeout_timer 
-0109 20404532 call mouse_check_reconnect_delay_long_sleep 
-010a 20404535 call mouse_current_mult_update_timer 
-010b 20404022 call mouse_wheel_trigger_timer 
-010c 20404547 call mouse_store_information_delay_timer 
-010d 20400122 call p_mouse_logo_led_on_timer 
-010e 2020011a branch p_mouse_check_no_data_timeout_timer 
-
-p_mouse_24g_hibernate_set:
-010f 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
-0110 20402652 call g24_transmit_next_packet 
-0111 5fffffff setarg -1 
-0112 67e2485c store 4 ,mem_24g_enter_hibernate 
-0113 58000000 setarg 0 
-0114 67e3c8d0 store 7 ,mem_mouse_key 
-0115 704be101 jam 1 ,mem_sensor_shutdown_flag 
-0116 2040014e call p_mouse_sensor_powerdown 
-0117 20403e33 call mouse_setgpio_hibernate 
-0118 20400129 call p_mouse_logo_led_on_timeout 
-0119 202026b5 branch g24_long_sleep 
-
-p_mouse_check_no_data_timeout_timer:
-011a 6fe0c92a fetch 1 ,mem_usb_addr 
-011b c3838000 rtnbit1 7 
-011c da604ab2 arg mem_mouse_no_data_timer ,regc 
-011d da40011f arg p_mouse_check_no_data_timeout ,regb 
-011e 20203191 branch timer_single_step_2b 
-
-p_mouse_check_no_data_timeout:
-011f 6fe0c938 fetch 1 ,mem_device_flag 
-0120 c000010f beq mode_24g_device ,p_mouse_24g_hibernate_set 
-0121 2020431b branch mouse_disconnect 
+00b8 20403e9b call mouse_adc_read 
+00b9 20404956 call mouse_low_voltage_led_timer 
+00ba 2040232b call g24_pair_timeout_timer 
+00bb 20402556 call g24_reconn_timeout_timer 
+00bc 204047cd call mouse_24g_long_sleep_param_update_timer 
+00bd 204048be call mouse_device_poweron_timer 
+00be 204000cc call p_mouse_dpi_led_blink_delay_timer 
+00bf 204000c1 call p_mouse_logo_led_on_timer 
+00c0 202044bd branch mouse_bb_event_timer + 8 
 
 p_mouse_logo_led_on_timer:
-0122 6fe14be4 fetch 2 ,mem_mouse_logo_led_on_timer 
-0123 207a0000 rtn blank 
-0124 6848cbe2 fetcht 1 ,mem_mouse_logo_led_gpio 
-0125 20406069 call gpio_out_active 
-0126 da604be4 arg mem_mouse_logo_led_on_timer ,regc 
-0127 da400129 arg p_mouse_logo_led_on_timeout ,regb 
-0128 20203191 branch timer_single_step_2b 
+00c1 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
+00c2 207a0000 rtn blank 
+00c3 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00c4 20406069 call gpio_out_active 
+00c5 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
+00c6 da4000c8 arg p_mouse_logo_led_on_timeout ,regb 
+00c7 20203191 branch timer_single_step_2b 
 
 p_mouse_logo_led_on_timeout:
-0129 58000000 setarg 0 
-012a 67e14be4 store 2 ,mem_mouse_logo_led_on_timer 
-012b 6848cbe2 fetcht 1 ,mem_mouse_logo_led_gpio 
-012c 20206065 branch gpio_out_inactive 
+00c8 58000000 setarg 0 
+00c9 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00ca 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00cb 20206065 branch gpio_out_inactive 
 
 p_mouse_dpi_led_blink_delay_timer:
-012d da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-012e da400130 arg p_mouse_dpi_led_blink_init ,regb 
-012f 2020318a branch timer_single_step 
+00cc da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00cd da4000cf arg p_mouse_dpi_led_blink_init ,regb 
+00ce 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-0130 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0131 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-0132 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-0133 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0134 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-0135 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0136 67e14930 store 2 ,mem_mouse_on_time 
-0137 67e14932 store 2 ,mem_mouse_off_time 
-0138 da200000 arg 0 ,rega 
-0139 6848c992 fetcht 1 ,mem_mouse_dpi 
-013a 18408402 increase 2 ,temp 
-013b 18467c03 sub temp ,3 ,null 
-013c 2041013f call p_mouse_dpi_led_blink_init_level_4 ,positive 
-013d 24410143 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-013e 202048ff branch mouse_dpi_led_blink_init_end 
+00cf 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00d0 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00d1 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00d2 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00d3 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00d4 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00d5 67e14930 store 2 ,mem_mouse_on_time 
+00d6 67e14932 store 2 ,mem_mouse_off_time 
+00d7 da200000 arg 0 ,rega 
+00d8 6848c992 fetcht 1 ,mem_mouse_dpi 
+00d9 18408402 increase 2 ,temp 
+00da 18467c03 sub temp ,3 ,null 
+00db 204100de call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00dc 244100e2 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00dd 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-013f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0140 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-0141 18408401 increase 1 ,temp 
-0142 20600000 rtn 
+00de 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00df c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00e0 18408401 increase 1 ,temp 
+00e1 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-0143 184085fd increase -3 ,temp 
-0144 20600000 rtn 
-
-p_g24_dispatch:
-0145 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0146 245a0148 ncall p_mouse_enable_g24_mark ,blank 
-0147 202021d2 branch g24_dispatch + 1 
-
-p_mouse_enable_g24_mark:
-0148 79200026 set1 mark_24g ,mark 
-0149 20600000 rtn 
-
-p_mouse_init_sunt:
-014a 20400152 call p_mouse_sensor_spi_init 
-014b 202041a9 branch mouse_init_sunt + 2 
-
-p_mouse_sensor_poweron:
-014c 20400152 call p_mouse_sensor_spi_init 
-014d 20204238 branch mouse_sensor_poweron + 2 
-
-p_mouse_sensor_powerdown:
-014e 204041a7 call mouse_init_sunt 
-014f 20400152 call p_mouse_sensor_spi_init 
-0150 58000806 setarg 0x0806 
-0151 20205b0c branch twspi_write 
-
-p_mouse_sensor_spi_init:
-0152 20403f6a call mouse_spid_init_pin 
-0153 6ff10050 fetch 2 ,core_clkoff 
-0154 79207e02 set1 clock_off_debug_uart ,pdata 
-0155 67f10050 store 2 ,core_clkoff 
-0156 70448477 jam 0x77 ,mem_spi_init_clk 
-0157 20403f69 call mouse_spi_init 
-0158 20205b08 branch twspi_enable 
-
-p_mouse_app_enter_hibernate:
-0159 20404232 call mouse_sensor_reset 
-015a 2040014e call p_mouse_sensor_powerdown 
-015b 20403e33 call mouse_setgpio_hibernate 
-015c 20203217 branch app_enter_hibernate 
-
-p_mouse_24g_search_dongle:
-015d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-015e c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
-015f 6fe0caae fetch 1 ,mem_mouse_long_mult_flag 
-0160 207a0000 rtn blank 
-0161 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0162 207a0000 rtn blank 
-0163 6fe0cba1 fetch 1 ,mem_mouse_search_dongle_interval 
-0164 1fe0fe01 increase 1 ,pdata 
-0165 1fe17e03 and_into 3 ,pdata 
-0166 67e0cba1 store 1 ,mem_mouse_search_dongle_interval 
-0167 247a0000 nrtn blank 
-0168 704ba200 jam 0 ,mem_mouse_search_dongle_ch 
-
-p_mouse_24g_search_dongle_loop:
-0169 6fe0cba2 fetch 1 ,mem_mouse_search_dongle_ch 
-016a 1fe0fe01 increase 1 ,pdata 
-016b 67e0cba2 store 1 ,mem_mouse_search_dongle_ch 
-016c 1fe67c08 sub pdata ,g24_ch_number ,null 
-016d 24210173 nbranch p_mouse_24g_search_dongle_loop_end ,positive 
-016e 2040259a call g24_reconn_data_prep 
-016f 2040265b call g24_transmit_receive_ack 
-0170 242c0179 nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
-0171 24378179 nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
-0172 204048b5 call mouse_24g_search_dongle_success 
-
-p_mouse_24g_search_dongle_loop_end:
-0173 20402597 call g24_txbuf_clear 
-0174 6fe0cba3 fetch 1 ,mem_mouse_search_dongle_count 
-0175 1fe0fe01 increase 1 ,pdata 
-0176 67e0cba3 store 1 ,mem_mouse_search_dongle_count 
-0177 c008017b beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
-0178 20600000 rtn 
-
-p_mouse_24g_search_dongle_loop_retry:
-0179 204022cb call g24_ch 
-017a 20200169 branch p_mouse_24g_search_dongle_loop 
-
-p_mouse_24g_search_dongle_check:
-017b 704ba300 jam 0 ,mem_mouse_search_dongle_count 
-017c 6fe0cba4 fetch 1 ,mem_mouse_search_dongle_action 
-017d c3800000 rtnbit1 g24_disconn_state 
-017e 79207e00 set1 g24_disconn_state ,pdata 
-017f 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
-0180 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
-0181 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-0182 2020014e branch p_mouse_sensor_powerdown 
+00e2 184085fd increase -3 ,temp 
+00e3 20600000 rtn 
               org 0x800
 
 start:
@@ -4348,6 +4153,8 @@
 13b3 d8a00870 arg mem_sp_state_start ,contw 
 13b4 98a67200 isub contw ,loopcnt 
 13b5 20407d26 call clear_mem 
+
+init_param_next:
 13b6 44cfc013 bpatch patch13_7 ,mem_patch13 
 13b7 20758000 rtn wake 
 13b8 7045f709 jam bluetooth_core_specification_5_0 ,mem_lmp_version 
@@ -18077,8 +17884,6 @@
 3bd0 67e1489b store 2 ,mem_cb_24g_transmit_data 
 3bd1 5800488f setarg mouse_24g_search_dongle 
 3bd2 67e1489d store 2 ,mem_cb_24g_search_receiver 
-
-mouse_cb_fuction_next:
 3bd3 58003e40 setarg mouse_lpm_before_common 
 3bd4 67e1489f store 2 ,mem_cb_24g_lpm_before 
 3bd5 5800439f setarg mouse_le 
Index: program/app_mouse.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/program/app_mouse.prog	(revision 401)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/program/app_mouse.prog	(working copy)
@@ -23,7 +23,6 @@
 	store 2,mem_cb_24g_transmit_data
 	setarg mouse_24g_search_dongle
 	store 2,mem_cb_24g_search_receiver
-mouse_cb_fuction_next:
 	setarg mouse_lpm_before_common
 	store 2,mem_cb_24g_lpm_before
 	setarg mouse_le
Index: program/bt.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/program/bt.prog	(revision 401)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/program/bt.prog	(working copy)
@@ -3903,6 +3903,7 @@
 	isub contw,loopcnt
 	call clear_mem
 
+init_param_next:
 	bpatch patch13_7,mem_patch13
 	rtn wake
 	jam BLUETOOTH_CORE_SPECIFICATION_5_0,mem_lmp_version
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/program/patch.prog	(revision 401)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/program/patch.prog	(working copy)
@@ -5,42 +5,17 @@
 	beq patch13_7,p_init_param
 	beq patch15_6,p_app_init
 	beq patch18_3,p_mouse_start_work
-	beq patch18_7,p_mouse_app_enter_hibernate
 	beq patch19_1,p_mouse_setgpio_hibernate
 	beq patch19_2,p_mouse_lpm_before_common
 	beq patch19_6,p_mouse_motion
 	beq patch1a_0,p_mouse_seting_dpi
-	beq patch1a_3,p_mouse_init_sunt
-	beq patch1a_4,p_mouse_sensor_poweron
 	beq patch1a_6,p_mouse_priority_bb_event
 	beq patch1b_1,p_mouse_bb_event_timer
 	branch loop
 
 pf_patch_ext:
-	beq patch24_2,p_spid_write_reg
-	beq patch24_3,p_spid_read_reg
-	beq patch3b_5,p_g24_dispatch
 	branch loop
 
-p_spid_write_reg:
-	copy pdata,rega
-	fetch 1,mem_select_sensor_angle_gpio
-	arg gpcfg_output_low,temp
- 	call gpio_config_function_int
-	copy rega,pdata
- 	branch spid_write_reg+3
-
-p_spid_read_reg:
-	copy pdata,rega
-	copy temp,regb
-	fetch 1,mem_select_sensor_angle_gpio
-	arg gpcfg_output_low,temp
- 	call gpio_config_function_int
- 	copy rega,pdata
- 	copy regb,temp
-	branch spid_read_reg+3
-
-
 p_soft_reset:
 	clear_stack
 	call app_param_init
@@ -52,17 +27,15 @@
 p_mouse_init:
 	call enable_authrom
 	call p_mouse_setting_config
-	call mouse_init_sunt
-	call mouse_dpi_config
-	rtn wake
-	call mouse_usb_check_enable
-	call mouse_drawing_optima_init
-	call p_mouse_cb_fuction
-	call p_mouse_sensor_powerdown
-	fetch 1,mem_usb_addr
-	rtnbit1 7
-	branch mouse_init_wireless
+	call p_lpm_write_ice_disable
+	branch mouse_init+1
 
+p_lpm_write_ice_disable:
+	fetch 2,core_ucode_flag
+	set0 lpmreg_ice_mode_bit,pdata
+	store 4,core_lpm_reg
+	branch lpm_write2_ctrl_option
+	
 p_mouse_start_work:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING, mouse_24g_first_start_auto_pair_mode
@@ -112,13 +85,6 @@
 	storet 3,mem_mouse_lkey_press_status
 	rtn
 
-p_mouse_cb_fuction:
-	setarg mouse_24g_package_data
-	store 2,mem_cb_24g_transmit_data
-	setarg p_mouse_24g_search_dongle
-	store 2,mem_cb_24g_search_receiver
-	branch mouse_cb_fuction_next
-
 p_mouse_setting_config:
 	rtn wake
 	call g24_transmit_init
@@ -143,7 +109,7 @@
 	fetch 1,mem_select_sensor_angle_gpio
 	arg gpcfg_output_low,temp
  	call gpio_config_function_int
- 	arg 3,pdata
+ 	fetch 1,mem_mouse_reuse_2ice_gpio
 	arg gpcfg_output_low,temp
  	call gpio_config_function_int
 
@@ -155,88 +121,46 @@
 	branch mouse_gpio_config_input_pd	
 
 p_ice_gpio_set_float:
- 	fetch 1,mem_select_sensor_angle_gpio
-	arg gpcfg_high_impedance,temp
- 	call gpio_config_function_int
- 	arg 3,pdata
-	arg gpcfg_high_impedance,temp
- 	branch gpio_config_function_int
-
+ 	fetcht 1,mem_select_sensor_angle_gpio
+	call gpio_set_high_impedance
+	fetcht 1,mem_mouse_reuse_2ice_gpio
+	branch gpio_set_high_impedance
+ 	
 p_init_param:
-	rtn wake
-	jam BLUETOOTH_CORE_SPECIFICATION_5_0,mem_lmp_version
-	setarg COMPANY_ID_YICHIP
-	store 2,mem_lmp_compid
-	setarg 0x08
-	store 2,mem_lmp_subversion	
-	jam 0x7f ,mem_seqi
+	jam 0,mem_lmo_tid2			// classic can't reconnect
+	branch init_param_next+1
 	
-	setarg 0x24
-	store 2,mem_iscan_window
-	store 2,mem_pscan_window
-	setarg 0x200
-	store 2,mem_iscan_interval
-	store 2,mem_pscan_interval
-	setarg 0x20
-	store 2,mem_inq_window
-	store 2,mem_page_window
-	setarg 0x2000
-	store 2,mem_page_to
-	setarg 0x480
-	store 2,mem_rx_window_init
-	setarg 0xc00
-	store 2,mem_rx_window_sniff
-
-	setarg 0xc3f
-	store 2,mem_lpm_xtalcnt+1
-	setarg 0x333
-	istore 2,contw
-	setarg 0x04109d
-	store 3,mem_lpm_ctrl3+1
-	
-	call clear_wake
-	setarg 0
-	store 2,mem_tx_len
-	rshift clkn_bt,pdata
-	store 4,mem_last_clkn
-	rtn
-
- 	
-
 p_initialize_radio_cont:
 	jam 0xe6,core_syn_aac_cfg1
-
 	call initialize_syn_afc_cfg1
 	call initialize_rf_ldo_cfg1
 	call initialize_rc_cal
-	
 	jam 0x09,core_rx_bq_cfg0
-
 	jam 5,core_clkpll_cfg0
 	jam 0x94,core_rx_iqadc_cfg
-
 	jam 0x0b,core_rf_ldo_cfg2
 	jam 0x05,core_rf_ldo_cfg3
 	jam 0x90,core_syn_pfd_lkd_cfg
-
 	branch initialize_radio_cont+8
 
-
 p_mouse_setgpio_hibernate:
 	call mouse_set_sdio_high
 	call clear_wake
 	call mouse_before_hibernate_wheel_gpio_set
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,p_mouse_setgpio_hibernate_skip_public_gpio
 	fetcht 1,mem_matrix_public_gpio		// enable b4/b5/dpi wakeup
 	call gpio_out_active
 	fetcht 1,mem_matrix_public_gpio
 	call gpio_clr_wake
-	call mouse_lpm_before_common
-	arg 19,temp
+p_mouse_setgpio_hibernate_skip_public_gpio:
+	fetcht 1,mem_mouse_reuse_2ice_gpio
 	call mouse_gpio_config_input_pu
-
 	fetch 1,mem_mouse_sensor_sdio_gpio
 	arg gpcfg_output_high,temp
-	branch gpio_config_function_int
+	call gpio_config_function_int
+	call p_mouse_logo_led_on_timeout
+	branch mouse_setgpio_hibernate+3
 
 p_mouse_lpm_before_common:
 	fetcht 1,mem_whee_a_data_gpio		//reinit gpio pu after disable wheel wakeup
@@ -249,20 +173,18 @@
 	arg gpcfg_output_high,temp
  	call gpio_config_function_int
 
- 	call p_ice_gpio_set_input_pu
-	branch mouse_lpm_before_common_next
+ 	fetch 1,mem_gpio_wakeup_low+2		//clear ice wakeup
+	set0 3,pdata
+	store 1,mem_gpio_wakeup_low+2
 
-p_ice_gpio_set_input_pu: 
-	arg 19,temp
-	call mouse_gpio_config_input_pu
-	arg 3,temp
-	branch mouse_gpio_config_input_pu
+	fetcht 1,mem_mouse_sensor_sdio_gpio	//clear sdio wakeup
+	call gpio_clr_wake
 
+	branch mouse_lpm_before_common_next
 
 p_mouse_priority_bb_event:
 	copy regc,pdata
 	beq BT_EVT_24G_ATTEMPT_SUCCESS,p_mouse_24g_attempt_success
-	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
 	branch mouse_priority_bb_event+2
 
 p_mouse_24g_attempt_success:
@@ -272,11 +194,6 @@
 	call mouse_device_poweron_timer_init
 	branch mouse_24g_attempt_success
 
-p_mouse_24g_attempt_fail:
-	fetch 1,mem_24g_attempt_fail_flag
-	nbranch p_mouse_24g_hibernate_set,blank
-	branch mouse_24g_attempt_fail_next
-
 p_mouse_motion:
 	disable user
 	setarg 0
@@ -331,7 +248,6 @@
 	store 1,mem_mouse_dpi_led_delay_count  //delay 1s led blink
 	rtn
 
-
 p_mouse_bb_event_timer:
 	call mouse_adc_read
 	call mouse_low_voltage_led_timer
@@ -342,52 +258,9 @@
 	//led
 	call mouse_device_poweron_timer
 	call p_mouse_dpi_led_blink_delay_timer
-	
-	call mouse_dpi_key_check_long_press
-	call mouse_bt_discovery_check
-	call mouse_commbination_key_process
-	call mouse_check_discovery_timeout_timer
-	//ble
-	call mouse_check_direct_timeout_timer
-	call mouse_le_enable_att_list_timer
-	call mouse_le_battery_updata_timer
-	call mouse_le_send_smp_security_request_timer
-	//bt
-	call mouse_check_hid_handshake_timer
-	call mouse_bt_check_sniff_req_timeout_timer
-	call mouse_check_reconnect_delay_long_sleep		//delete 3.0,reconnect fail
-	call mouse_current_mult_update_timer
-	call mouse_wheel_trigger_timer
-	call mouse_store_information_delay_timer
 	call p_mouse_logo_led_on_timer
-	branch p_mouse_check_no_data_timeout_timer
-
-
-p_mouse_24g_hibernate_set:
-	jam 0,mem_24g_attempt_fail_flag
-	call g24_transmit_next_packet
-	setarg -1
-	store 4,mem_24g_enter_hibernate
-	setarg 0
-	store 7,mem_mouse_key
-	jam 1,mem_sensor_shutdown_flag
-	call p_mouse_sensor_powerdown
-	call mouse_setgpio_hibernate
-	call p_mouse_logo_led_on_timeout
-	branch g24_long_sleep
-
-p_mouse_check_no_data_timeout_timer:
-	fetch 1,mem_usb_addr
-	rtnbit1 7
-	arg mem_mouse_no_data_timer,regc
-	arg p_mouse_check_no_data_timeout,regb
-	branch timer_single_step_2B
-
-p_mouse_check_no_data_timeout:
-	fetch 1,mem_device_flag
-	beq MODE_24G_DEVICE,p_mouse_24g_hibernate_set
-	branch mouse_disconnect
-
+	branch mouse_bb_event_timer+8	
+	
 p_mouse_logo_led_on_timer:
 	fetch 2,mem_mouse_logo_led_on_timer
 	rtn blank
@@ -402,7 +275,6 @@
 	fetcht 1,mem_mouse_logo_led_gpio
 	branch gpio_out_inactive
 
-	
 p_mouse_dpi_led_blink_delay_timer:
 	arg mem_mouse_dpi_led_delay_count,regc
 	arg p_mouse_dpi_led_blink_init,regb
@@ -437,94 +309,4 @@
 /////////////////////////////////////////////////////////////////////////////////////////////////
 
 
-p_g24_dispatch:
-	fetch 1,mem_sensor_shutdown_flag
-	ncall p_mouse_enable_g24_mark,blank
-	branch g24_dispatch+1
-
-p_mouse_enable_g24_mark:
-	set1 mark_24g,mark
-	rtn
-
-
-////////////////////////////////////modify spi sclk start///////////////////////////////////
-p_mouse_init_sunt:
-	call p_mouse_sensor_spi_init
-	branch mouse_init_sunt+2
-
-p_mouse_sensor_poweron:
-	call p_mouse_sensor_spi_init
-	branch mouse_sensor_poweron+2
-
-p_mouse_sensor_powerdown:
-	call mouse_init_sunt
-	call p_mouse_sensor_spi_init
-	setarg 0x0806
-	branch twspi_write
-
-p_mouse_sensor_spi_init:
-	call mouse_spid_init_pin
-	
-	fetch 2,core_clkoff
-	set1 CLOCK_OFF_DEBUG_UART,pdata
-	store 2,core_clkoff	//after select sensor angle,before tw_spi enable
 	
-	jam 0x77,mem_spi_init_clk
-	call mouse_spi_init
-	branch twspi_enable
-
-p_mouse_app_enter_hibernate:
-	call mouse_sensor_reset
-	call p_mouse_sensor_powerdown
-	call mouse_setgpio_hibernate
-	branch app_enter_hibernate
-
-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		//3min
-	store 2,mem_mouse_no_data_timer
-	branch p_mouse_sensor_powerdown
-
-////////////////////////////////////modify spi sclk end///////////////////////////////////
-	
- 	
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/sched/mouse.dat	(revision 401)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/sched/mouse.dat	(working copy)
@@ -1,16 +1,12 @@
 mem_device_option:08	#08 mouse
 
-mem_lpm_config:88 1f ce	#4khz
+mem_lpm_config:88 16 ce	#4khz
 mem_fcomp_div:18
 
 mem_rf_init_data:ff
 mem_rf_init_ptr:mem_rf_init_data
 mem_lpm_xtalcnt:70
 
-mem_lpm_xtal_ib:88
-mem_lpm_padding:ce
-
-
 mem_dig_aon_vsel:00
 #hw agc
 mem_gain_fix:ff
@@ -123,8 +119,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:0a
 mem_matrix_public_gpio:08
 mem_sensor_motion_gpio:ff
@@ -154,7 +150,7 @@
 
 
 mem_usb_offline_check_gpio:ff
-
+mem_mouse_reuse_2ice_gpio:03
 mem_mouse_logo_led_gpio:09
 
 
@@ -171,7 +167,7 @@
 mem_lpm_mode:01
 
 
-mem_mouse_bluetooth_type:03	#03 bt3.0+ble   #02 ble   #01 bt3.0
+mem_mouse_bluetooth_type:00	#03 bt3.0+ble   #02 ble   #01 bt3.0
 mem_device_number:01  #max device number   value:01,02,03
 
 mem_device_flag:
@@ -208,8 +204,8 @@
 mem_store_information_delay_timer_init:02
 
 #adc start
-mem_adc_config_flag_init:02 		#0 vinlpm 1 hvin 2 gpio
-mem_adc_channel:32 			#gpio5
+mem_adc_config_flag_init:02 		#00-vinlpm   01-hvin   02-gpio
+mem_adc_channel:05 		#00-gpio4   01-gpio5   02-gpio6  03-gpio7    04-gpio9  05-gpio10  06-gpio11  07-gpio12
 mem_mouse_vdd_full_vol:96 00
 5a 00#mem_mouse_vdd_empty_vol
 64 00#mem_mouse_vdd_low_vol
@@ -230,9 +226,9 @@
 mem_lpm_mult_init:20
 
 mem_app_connection_options:06
-mem_lap:16 b0 c8 12 23 51
+mem_lap:10 16 c8 12 23 51
 mem_local_name_length:
-'Bluetooth Mouse 3.0
+'BT3.0 Mouse
 mem_sniff_param_interval:
 0e 00 
 01 00 ##mem_sniff_param_attempt:01 00
@@ -268,16 +264,16 @@
 #microsoft swift pair
 06 ff 06 00 03 00 80
 #name
-'\09Mouse 1308a
+'\09BT5.2 Mouse
 
 mem_le_scan_data_len:1f
 mem_le_scan_data:
 #name
-'\09Mouse 1308a
+'\09BT5.2 Mouse
 
 
 mem_le_name_len:
-'Mouse 1308a
+'BT5.2 Mouse
 
 
 mem_le_interval_min:
@@ -296,7 +292,7 @@
 mem_le_adv_channel_map:07 
 mem_local_rx_max_octets:fb 00 48 08 fb 00 48 08  # 1b
 
-mem_le_lap:8e b1 3a 0e 8e ed
+mem_le_lap:10 16 3a 0e 8e ed
 
 
 mem_le_keyboard_handle:15 00
@@ -304,7 +300,7 @@
 mem_le_multimedia_handle:1d 00
 mem_le_systemctrl_handle:21 00
 mem_le_battery_level_handle:30 00
-mem_le_pairing_handle:22 00
+mem_le_pairing_handle:2d 00
 
 mem_le_battery_level_updata_timer_init:96 #15s
 
@@ -456,6 +452,8 @@
 mem_24g_pair_ch:4e
 mem_24g_fast_conn_enable:01
 mem_24g_fast_conn_addr:0f 0f 0f 0f
+mem_24g_short_sleep_set:0c f8 00
+mem_24g_long_sleep_set:00 77 01
 mem_24g_enter_hibernate:00 48 60
 mem_rssi_buff_index:07
 mem_rssi_signal_buf_ptr:mem_mouse_rssi_signal_buf
