Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/format/app_mouse.format	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/format/app_mouse.format	(working copy)
@@ -394,14 +394,13 @@
 3 mem_24g_short_sleep_set_init
 2 mem_retransmit
 1 mem_sleep_miss
-4 mem_sleep_time_temp
+1 mem_long_sleep_flag
 4 mem_sleep_miss_temp
 0 mem_mouse_end
 
 16 mem_mouse_rssi_signal_buf_patch
 16 mem_mouse_rssi_signal_buf_temp
 
-1 mem_soft_agc_en
 1 mem_xtal_cache
 
 //uart start 
@@ -423,6 +422,12 @@
 1 mem_low_power_led_flag
 1 mem_24g_low_power_stop_blink
 1 mem_24g_low_power_led_off
+//le conn param update
+1 mem_mouse_le_send_conn_param_update
+1 mem_mouse_le_send_conn_param_update_timer
+
+//tx power
+1 mem_normal_tx_power
 )
 
 
Index: format/bt.format
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/format/bt.format	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/format/bt.format	(working copy)
@@ -408,13 +408,12 @@
 
 0x83 TX_POWER_F3DB
 0x85 TX_POWER_F5DB
+0x91 TX_POWER_F17DB
 0x94 TX_POWER_F20DB
 0x9e TX_POWER_F30DB
 0xa8 TX_POWER_F40DB
 0xb2 TX_POWER_F50DB
 0xbc TX_POWER_F60DB
-
-0xaa TX_POWER_FAST_CONN
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/eeprom.dat	(revision 1416)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-2a
+aa
 19
 c2
 84
@@ -11,111 +11,111 @@
 c0
 00
 03
-08
+0f
 c0
-41
+01
 83
-62
+3b
 c0
-42
+41
 03
-69
+7c
 c0
-42
+41
+83
 83
-6d
 c0
 45
 03
-82
+8a
 c0
 45
 83
-55
-c0
-46
-03
-88
+6f
 c0
 57
 00
-2c
+2e
 c0
 61
 80
-92
+94
 c0
 62
 00
-a7
+ac
 c0
 63
 80
-ae
+b3
 c0
 64
 80
-b4
+b9
 c0
 65
 00
-f5
+f9
 c0
 66
 00
-aa
+af
 c0
 67
 00
-68
+69
 c0
 67
 82
-83
+8a
 c0
 68
 02
-55
+5c
 c0
 68
 81
-ba
+bf
 c0
 6a
 01
-a5
+aa
 c0
 6b
 00
-88
+89
 c0
 6c
-80
-fe
+81
+01
 c0
 6f
 00
-81
+82
 c0
 70
 83
-38
+52
 c0
 71
 03
-34
+4e
 c0
 6d
 05
-94
+ab
+c0
+6d
+85
+d5
 c0
 4f
 83
-c6
+bc
 c0
 74
 06
-36
+56
 20
 20
 13
@@ -123,59 +123,67 @@
 c0
 10
 00
-86
+87
 c0
 19
 83
-a2
+91
 c0
 1a
 03
-a7
+96
 c0
 43
 83
-c2
+b1
+c0
+54
+03
+b5
 c0
 6e
 84
-40
+32
 c0
 6f
 03
-f4
+ea
 c0
 70
 83
-d4
+ca
 c0
 71
-04
-f4
+05
+02
 c0
 74
 85
-1b
+29
 c0
 75
 04
-44
+40
 c0
 76
 04
-ad
+ac
+c0
+0d
+06
+48
 c0
 50
 83
-c8
+be
 c0
 51
 83
-d2
+c8
 c0
 60
 06
-0c
+22
 20
 20
 13
@@ -184,10 +192,6 @@
 3f
 80
 34
-24
-55
-85
-c0
 20
 40
 6d
@@ -195,7 +199,7 @@
 20
 40
 00
-3c
+39
 20
 40
 41
@@ -206,22 +210,6 @@
 00
 20
 40
-02
-b3
-6f
-e1
-c8
-ad
-67
-e1
-cc
-64
-20
-40
-04
-f0
-20
-40
 40
 8e
 20
@@ -235,11 +223,11 @@
 20
 40
 00
-63
+64
 20
 40
 01
-b1
+b6
 20
 20
 3b
@@ -266,8 +254,16 @@
 ff
 20
 40
-00
-60
+04
+fe
+20
+40
+3f
+1e
+20
+40
+05
+d8
 20
 40
 3d
@@ -275,47 +271,67 @@
 20
 40
 00
-4b
+50
+20
+40
+02
+ba
 20
 40
 01
-21
+70
 20
 40
-02
-7b
+01
+63
 20
 40
-02
-c0
-6f
-e4
-4b
-ab
-c3
-0c
-3b
-f5
+01
+24
 20
 40
 02
-c3
+82
+20
+40
+00
+4a
 20
 20
 3b
 f5
 6f
 e0
-c9
-17
 c1
-7f
-80
+e8
+67
+e0
+cc
+a9
+20
+60
+00
+00
+6f
+e0
+cc
+a9
+67
+e0
+c1
+e8
+20
+60
+00
 00
 6f
 e0
 c9
 17
+c1
+7f
+80
+00
 d8
 40
 00
@@ -335,7 +351,7 @@
 20
 20
 80
-5a
+5e
 6f
 e0
 c9
@@ -359,11 +375,11 @@
 20
 20
 80
-5c
+60
 20
 20
 00
-5e
+62
 70
 49
 28
@@ -388,22 +404,10 @@
 60
 00
 00
-6f
-e0
-cc
-40
-24
-5a
-01
-5e
-20
-20
-3f
-1e
 58
 00
 02
-c6
+ca
 67
 e1
 48
@@ -411,7 +415,7 @@
 58
 00
 02
-e2
+e9
 67
 e1
 48
@@ -459,7 +463,7 @@
 20
 40
 01
-b8
+bd
 6f
 e0
 c8
@@ -475,26 +479,26 @@
 24
 34
 00
-7c
+7d
 20
 40
 00
-79
+7a
 20
 40
 01
-a2
+a7
 20
 20
 45
 44
 70
 4c
-a8
+a4
 00
 70
 4c
-a9
+a5
 00
 20
 60
@@ -507,14 +511,14 @@
 6f
 e0
 cc
-a9
+a5
 24
 7a
 00
 00
 70
 4c
-a9
+a5
 64
 20
 60
@@ -531,11 +535,11 @@
 20
 40
 01
-f0
+f7
 20
 40
 02
-04
+0b
 20
 20
 46
@@ -555,35 +559,39 @@
 c0
 1e
 05
-52
+62
 c0
 1c
 85
-4b
+5b
 c0
 1d
 05
-5d
+73
 c0
 19
-05
-f8
-c0
-22
-05
-ff
+06
+0c
 c0
 0a
-85
-ee
+86
+06
 c0
 0a
-05
-eb
+06
+03
+c0
+22
+06
+13
+c0
+20
+06
+1d
 c0
 00
 86
-32
+52
 20
 20
 43
@@ -603,7 +611,7 @@
 c0
 00
 00
-97
+99
 20
 20
 3d
@@ -623,7 +631,7 @@
 20
 34
 00
-a1
+a6
 6f
 e4
 4b
@@ -631,11 +639,11 @@
 c2
 98
 00
-a4
+a9
 c3
 18
 80
-a4
+a9
 20
 40
 41
@@ -644,10 +652,22 @@
 21
 7e
 07
+68
+48
+cb
+cb
+98
+46
+7c
+00
 20
+22
+c8
+27
 20
-47
-ff
+20
+00
+a9
 6f
 e0
 cc
@@ -655,7 +675,7 @@
 24
 5a
 01
-26
+29
 20
 20
 48
@@ -667,7 +687,7 @@
 24
 5a
 01
-26
+29
 20
 20
 48
@@ -679,7 +699,7 @@
 24
 5a
 01
-26
+29
 20
 20
 3d
@@ -695,7 +715,7 @@
 20
 40
 03
-a7
+96
 20
 20
 3e
@@ -715,11 +735,11 @@
 20
 40
 01
-ac
+b1
 20
 40
 01
-b1
+b6
 20
 20
 3e
@@ -735,11 +755,11 @@
 20
 40
 01
-6b
+70
 20
 40
 01
-5e
+63
 20
 40
 40
@@ -764,14 +784,10 @@
 e0
 c9
 20
-d8
-40
-00
-3f
 20
 40
-60
-93
+01
+f1
 d8
 40
 00
@@ -799,19 +815,19 @@
 20
 40
 00
-ca
+ce
 20
 40
 00
-d5
+d9
 20
 40
 00
-e2
+e6
 20
 20
 00
-e9
+ed
 6f
 e0
 c9
@@ -827,11 +843,11 @@
 c0
 01
 80
-d0
+d4
 c0
 01
 00
-d2
+d6
 20
 60
 00
@@ -903,7 +919,7 @@
 c2
 00
 00
-d9
+dd
 20
 60
 00
@@ -964,26 +980,26 @@
 e0
 c9
 13
-d8
-40
-00
-80
 20
 40
-60
-93
+3f
+54
 6f
 e0
 c9
 14
-d8
+20
+20
+3f
+54
+20
 40
-00
-80
+7f
+dc
 20
 20
-60
-93
+15
+b1
 68
 48
 c9
@@ -1008,14 +1024,10 @@
 e0
 c9
 1f
-d8
-40
-00
-3f
 20
 40
-60
-93
+01
+f1
 20
 20
 3e
@@ -1027,7 +1039,7 @@
 20
 40
 01
-9f
+a4
 20
 40
 23
@@ -1047,15 +1059,15 @@
 20
 40
 01
-71
+76
 20
 40
 01
-2f
+32
 20
 40
 01
-61
+66
 20
 40
 40
@@ -1067,7 +1079,7 @@
 20
 40
 01
-74
+79
 20
 40
 44
@@ -1075,11 +1087,11 @@
 20
 40
 01
-91
+96
 20
 40
 01
-97
+9c
 20
 40
 45
@@ -1091,13 +1103,17 @@
 20
 40
 05
-91
+a5
 20
 40
 45
 15
 20
 40
+05
+a8
+20
+40
 45
 2a
 20
@@ -1119,11 +1135,11 @@
 20
 40
 01
-18
+1c
 20
 20
 01
-8b
+90
 da
 60
 49
@@ -1131,7 +1147,7 @@
 da
 40
 01
-1b
+1f
 20
 20
 31
@@ -1144,18 +1160,14 @@
 e0
 ca
 c5
-24
-3a
-01
-1f
 20
-60
+7a
 00
 00
 20
 40
 03
-26
+2d
 20
 20
 46
@@ -1231,7 +1243,7 @@
 c0
 00
 81
-3f
+42
 6f
 e0
 cc
@@ -1239,7 +1251,7 @@
 24
 3a
 01
-37
+3a
 70
 4c
 41
@@ -1255,7 +1267,7 @@
 20
 3a
 01
-3c
+3f
 1f
 e0
 ff
@@ -1267,7 +1279,7 @@
 20
 20
 01
-46
+49
 70
 4c
 45
@@ -1279,7 +1291,7 @@
 20
 20
 01
-52
+55
 da
 60
 4c
@@ -1287,7 +1299,7 @@
 da
 40
 01
-42
+45
 20
 20
 31
@@ -1307,7 +1319,7 @@
 c0
 00
 81
-52
+55
 70
 4c
 4d
@@ -1319,15 +1331,15 @@
 c0
 00
 01
-4c
+4f
 c0
 00
 81
-4e
+51
 c0
 01
 01
-50
+53
 20
 60
 00
@@ -1339,7 +1351,7 @@
 20
 20
 01
-51
+54
 68
 48
 cc
@@ -1347,7 +1359,7 @@
 20
 20
 01
-51
+54
 68
 48
 cc
@@ -1367,23 +1379,31 @@
 c0
 00
 01
-58
+5b
 c0
 00
 81
-5a
+5f
 c0
 01
 01
-5c
+61
 20
 60
 00
 00
-68
-48
-cc
-48
+68
+48
+cc
+48
+18
+46
+7c
+ff
+20
+62
+80
+00
 20
 20
 60
@@ -1394,28 +1414,28 @@
 49
 20
 20
-60
-7f
+01
+5c
 68
 48
 cc
 4a
 20
 20
-60
-7f
+01
+5c
 20
 40
 01
-58
+5b
 20
 40
 01
-5a
+5f
 20
 20
 01
-5c
+61
 6f
 e0
 cb
@@ -1455,7 +1475,7 @@
 20
 21
 01
-6f
+74
 68
 48
 cb
@@ -1466,8 +1486,8 @@
 40
 c0
 00
-e0
-7f
+81
+5c
 20
 20
 60
@@ -1487,7 +1507,7 @@
 da
 40
 02
-66
+6d
 20
 20
 31
@@ -1499,7 +1519,7 @@
 c0
 00
 01
-7a
+7f
 6f
 e4
 4b
@@ -1515,7 +1535,7 @@
 20
 20
 01
-7d
+82
 6f
 e4
 4b
@@ -1551,7 +1571,7 @@
 20
 22
 81
-84
+89
 20
 20
 44
@@ -1559,7 +1579,7 @@
 20
 40
 01
-89
+8e
 6f
 e0
 cb
@@ -1579,7 +1599,7 @@
 da
 40
 05
-71
+87
 20
 20
 44
@@ -1591,7 +1611,7 @@
 da
 40
 01
-8e
+93
 20
 20
 31
@@ -1603,7 +1623,7 @@
 c0
 00
 05
-88
+9c
 20
 20
 43
@@ -1611,22 +1631,22 @@
 da
 40
 01
-94
+99
 da
 60
 4c
-a9
+a5
 20
 20
 31
 8a
 70
 4c
-a8
+a4
 01
 70
 4c
-aa
+a6
 0a
 20
 60
@@ -1635,11 +1655,11 @@
 da
 40
 01
-9a
+9f
 da
 60
 4c
-aa
+a6
 20
 20
 31
@@ -1667,7 +1687,7 @@
 6f
 e0
 cc
-a8
+a4
 20
 3a
 49
@@ -1699,7 +1719,7 @@
 c0
 05
 81
-a9
+ae
 20
 20
 42
@@ -1707,7 +1727,7 @@
 20
 40
 01
-af
+b4
 da
 60
 4b
@@ -1723,7 +1743,7 @@
 c0
 05
 81
-af
+b4
 20
 20
 42
@@ -1751,7 +1771,7 @@
 c0
 05
 81
-b6
+bb
 20
 20
 42
@@ -1767,7 +1787,7 @@
 20
 40
 01
-ba
+bf
 20
 20
 40
@@ -1787,10 +1807,6 @@
 20
 40
 01
-c3
-20
-40
-01
 c8
 20
 40
@@ -1803,7 +1819,11 @@
 20
 40
 01
-df
+d7
+20
+40
+01
+e4
 20
 20
 41
@@ -1815,7 +1835,7 @@
 20
 40
 01
-ec
+f1
 20
 40
 41
@@ -1835,7 +1855,7 @@
 20
 40
 01
-ec
+f1
 20
 40
 41
@@ -1855,7 +1875,7 @@
 20
 40
 01
-ec
+f1
 20
 40
 41
@@ -1899,7 +1919,7 @@
 c0
 7f
 81
-db
+e0
 20
 20
 41
@@ -1911,7 +1931,7 @@
 20
 40
 01
-ee
+f4
 68
 48
 c9
@@ -1951,7 +1971,7 @@
 c0
 7f
 81
-e8
+ed
 20
 20
 41
@@ -1963,7 +1983,7 @@
 20
 40
 01
-ee
+f4
 68
 48
 c9
@@ -1972,6 +1992,10 @@
 20
 41
 64
+c1
+7f
+80
+00
 d8
 40
 00
@@ -1980,6 +2004,10 @@
 20
 60
 93
+c1
+7f
+80
+00
 d8
 40
 00
@@ -2018,8 +2046,8 @@
 0f
 20
 40
-01
-f9
+02
+00
 20
 20
 40
@@ -2047,7 +2075,7 @@
 c0
 7f
 82
-00
+07
 20
 20
 40
@@ -2059,7 +2087,7 @@
 20
 40
 01
-ee
+f4
 68
 48
 c9
@@ -2083,7 +2111,7 @@
 24
 3a
 02
-0d
+14
 6f
 e0
 cc
@@ -2091,11 +2119,11 @@
 20
 40
 01
-ec
+f1
 20
 40
 02
-1d
+24
 68
 48
 cc
@@ -2119,7 +2147,7 @@
 20
 40
 01
-ee
+f4
 70
 4c
 3f
@@ -2135,11 +2163,11 @@
 20
 40
 02
-36
+3d
 20
 40
 02
-21
+28
 68
 48
 cc
@@ -2183,7 +2211,7 @@
 20
 40
 02
-2c
+33
 67
 e0
 cc
@@ -2195,7 +2223,7 @@
 20
 3a
 02
-28
+2f
 6f
 e0
 cc
@@ -2259,11 +2287,11 @@
 c0
 03
 82
-41
+48
 c0
 00
 02
-43
+4a
 20
 60
 00
@@ -2303,11 +2331,11 @@
 c0
 03
 82
-41
+48
 c0
 00
 02
-43
+4a
 20
 60
 00
@@ -2363,7 +2391,7 @@
 c0
 7f
 82
-52
+59
 20
 40
 41
@@ -2391,7 +2419,7 @@
 20
 20
 02
-4f
+56
 20
 40
 40
@@ -2399,7 +2427,7 @@
 20
 40
 02
-58
+5f
 20
 20
 40
@@ -2451,7 +2479,7 @@
 20
 3a
 02
-66
+6d
 67
 e0
 cb
@@ -2511,11 +2539,11 @@
 20
 41
 02
-75
+7c
 24
 41
 02
-79
+80
 20
 20
 48
@@ -2559,7 +2587,7 @@
 c2
 83
 82
-81
+88
 70
 4c
 3a
@@ -2599,7 +2627,7 @@
 c2
 9e
 82
-8f
+96
 18
 42
 7e
@@ -2631,7 +2659,7 @@
 24
 3a
 02
-ac
+b3
 6f
 e4
 4b
@@ -2639,7 +2667,7 @@
 c2
 8e
 02
-a0
+a7
 18
 42
 7e
@@ -2651,11 +2679,11 @@
 c0
 00
 02
-9c
+a3
 c0
 01
 02
-9a
+a1
 20
 60
 00
@@ -2667,7 +2695,7 @@
 20
 20
 02
-8c
+93
 58
 00
 00
@@ -2675,7 +2703,7 @@
 20
 20
 02
-8c
+93
 58
 00
 00
@@ -2683,7 +2711,7 @@
 20
 20
 02
-8c
+93
 58
 00
 00
@@ -2691,7 +2719,7 @@
 20
 20
 02
-8c
+93
 18
 42
 7e
@@ -2703,15 +2731,15 @@
 c0
 00
 02
-9c
+a3
 c0
 01
 02
-9e
+a5
 c0
 01
 82
-9a
+a1
 20
 60
 00
@@ -2727,15 +2755,15 @@
 c0
 00
 02
-9e
+a5
 c0
 00
 82
-9a
+a1
 c0
 01
 82
-98
+9f
 20
 60
 00
@@ -2747,7 +2775,7 @@
 c2
 8e
 02
-a6
+ad
 18
 42
 7e
@@ -2759,47 +2787,23 @@
 c0
 00
 02
-98
+9f
 c0
 00
 82
-9a
+a1
 20
 60
 00
 00
-58
-01
-77
-00
-67
-e1
-cc
-4e
-20
-40
-26
-13
-70
-48
-c6
-1e
 6f
 e4
 4b
 ab
-c4
+c3
 0c
-00
-00
-20
-40
-26
-0b
-70
-48
-c6
-0f
+02
+c3
 58
 00
 bb
@@ -2810,36 +2814,48 @@
 4e
 58
 00
-48
-00
+6c
+10
 67
 e1
 c8
 ad
+67
+e1
+cc
+64
+70
+48
+c6
+0f
 20
 60
 00
 00
 58
+01
+77
 00
-e2
-90
 67
 e1
-c8
-ad
-20
-60
-00
-00
+cc
+4e
 58
-00
-17
-70
+01
+0b
+60
 67
 e1
 c8
 ad
+67
+e1
+cc
+64
+70
+48
+c6
+1e
 20
 60
 00
@@ -2857,13 +2873,25 @@
 00
 00
 6f
+e0
+cc
+6a
+70
+4c
+6a
+00
+24
+5a
+00
+f7
+6f
 e4
 4b
 ab
 c3
 0a
 82
-cd
+d4
 6f
 e0
 cb
@@ -2883,7 +2911,7 @@
 c2
 80
 82
-dc
+e3
 68
 48
 c7
@@ -3023,7 +3051,7 @@
 24
 21
 02
-f8
+ff
 20
 40
 25
@@ -3031,15 +3059,15 @@
 20
 40
 04
-1f
+12
 24
 2c
-02
-fe
+03
+05
 24
 37
-82
-fe
+83
+05
 20
 40
 48
@@ -3063,7 +3091,7 @@
 c0
 08
 03
-00
+07
 20
 60
 00
@@ -3075,7 +3103,7 @@
 20
 20
 02
-ee
+f5
 70
 4b
 a3
@@ -3107,7 +3135,7 @@
 20
 20
 01
-b1
+b6
 20
 80
 00
@@ -3115,7 +3143,7 @@
 24
 55
 83
-31
+38
 20
 40
 30
@@ -3123,11 +3151,11 @@
 24
 55
 83
-3c
+56
 58
 00
 4c
-72
+6f
 67
 e1
 48
@@ -3151,7 +3179,7 @@
 c0
 0c
 03
-14
+1b
 70
 80
 42
@@ -3159,7 +3187,7 @@
 6f
 e0
 cc
-93
+8f
 67
 e0
 c1
@@ -3279,11 +3307,87 @@
 67
 e0
 cc
-93
+8f
 20
 60
 00
 00
+20
+40
+70
+6c
+20
+40
+75
+97
+20
+40
+6e
+a7
+20
+40
+1b
+92
+20
+40
+08
+3a
+20
+40
+03
+42
+20
+20
+08
+1a
+20
+40
+03
+44
+20
+20
+31
+09
+20
+40
+03
+46
+20
+20
+78
+50
+6f
+e0
+c4
+8c
+20
+7a
+00
+00
+6f
+e1
+44
+8d
+1f
+e2
+24
+00
+1a
+40
+a4
+02
+ef
+e0
+80
+12
+c1
+7f
+80
+00
+20
+20
+78
+13
 18
 42
 7e
@@ -3339,7 +3443,7 @@
 c0
 04
 03
-44
+5e
 58
 00
 00
@@ -3351,7 +3455,7 @@
 70
 4c
 63
-8c
+fa
 20
 40
 12
@@ -3468,6 +3572,34 @@
 20
 12
 5d
+6f
+e0
+c1
+ea
+67
+e0
+89
+64
+20
+40
+11
+50
+70
+8a
+0a
+00
+6f
+e0
+89
+64
+67
+e0
+c1
+ea
+20
+60
+00
+00
 70
 89
 00
@@ -3496,114 +3628,18 @@
 20
 11
 7d
-20
-40
-11
-90
-58
-00
-76
-76
-67
-f1
-09
-68
-20
-60
-00
-00
-6f
-e0
-c9
-38
-c0
-80
-11
-a7
 6f
 e0
-cc
-92
-24
-3a
-03
-79
-20
-00
-01
-2c
-20
-40
-4c
-a7
-d8
+c1
+e8
 c0
-41
-eb
-98
+48
+83
+8e
 c0
-8c
-00
-ef
-e0
-80
-06
-67
-f0
-89
-61
-70
-89
-60
-2e
-20
-20
-11
-b3
-6f
-f0
-89
-60
-1f
-e1
-fe
-01
-67
-f0
-89
-60
-70
-89
-61
-04
-20
-20
-11
-b3
-70
-4c
-92
-00
-20
-60
-00
-00
-70
-4c
-92
-01
-20
-60
-00
-00
-6f
-e0
-cc
-92
-24
-3a
-03
-85
+4a
+12
+44
 20
 20
 12
@@ -3620,110 +3656,6 @@
 20
 12
 2a
-6f
-f0
-89
-a2
-2f
-ef
-fe
-06
-79
-20
-fe
-07
-67
-e0
-c1
-e9
-6f
-f0
-89
-a3
-1f
-e1
-04
-0f
-18
-43
-84
-00
-1f
-f1
-fe
-00
-98
-40
-84
-00
-18
-4f
-a2
-03
-6f
-e0
-c1
-e9
-20
-40
-03
-9d
-1f
-e6
-7e
-00
-9a
-20
-fe
-00
-1f
-e0
-ff
-f7
-1f
-e1
-7f
-ff
-2f
-ef
-fe
-08
-24
-20
-83
-9b
-58
-00
-00
-00
-67
-e0
-80
-19
-20
-60
-00
-00
-2f
-ef
-fe
-07
-24
-60
-80
-00
-d8
-40
-ff
-00
-98
-41
-fe
-00
-20
-60
-00
-00
 da
 20
 09
@@ -3868,6 +3800,34 @@
 20
 78
 51
+18
+42
+7e
+00
+c2
+80
+16
+a5
+c2
+80
+83
+b9
+20
+20
+16
+90
+20
+40
+16
+94
+70
+8a
+6d
+89
+20
+60
+00
+00
 70
 00
 80
@@ -3979,7 +3939,7 @@
 c5
 16
 83
-e8
+de
 19
 31
 7e
@@ -4019,7 +3979,7 @@
 c2
 00
 03
-ea
+e0
 19
 31
 7e
@@ -4051,7 +4011,7 @@
 20
 20
 03
-e6
+dc
 6f
 e0
 c8
@@ -4084,26 +4044,14 @@
 40
 16
 c8
-6f
-f0
-89
-60
-79
-20
-7e
-03
-67
-f0
-89
-60
 20
 40
 21
 d5
 c5
 97
-84
-04
+83
+f7
 78
 3c
 fc
@@ -4175,7 +4123,7 @@
 20
 40
 02
-45
+4c
 6f
 e0
 c8
@@ -4207,7 +4155,7 @@
 20
 40
 04
-30
+21
 6f
 e1
 4c
@@ -4265,33 +4213,25 @@
 11
 8f
 20
+00
+01
+2c
+20
 40
 11
 a6
 20
 40
 03
-ff
+f2
 20
 57
-84
-2d
+a2
+3f
 20
 60
 00
 00
-70
-8a
-0a
-00
-70
-8a
-0b
-00
-20
-20
-12
-9c
 68
 48
 c8
@@ -4306,8 +4246,8 @@
 00
 24
 21
-26
-9c
+04
+31
 18
 40
 84
@@ -4323,7 +4263,7 @@
 c0
 07
 84
-3c
+2d
 6f
 e0
 c8
@@ -4356,6 +4296,10 @@
 60
 00
 00
+20
+20
+22
+cb
 c5
 13
 a4
@@ -4372,6 +4316,46 @@
 20
 26
 1d
+6f
+e2
+48
+91
+68
+4a
+48
+8d
+98
+46
+7c
+00
+20
+22
+84
+3b
+20
+20
+04
+3e
+70
+41
+ea
+00
+70
+41
+e8
+91
+20
+60
+00
+00
+70
+41
+ea
+ff
+20
+60
+00
+00
 20
 40
 26
@@ -4379,11 +4363,15 @@
 24
 34
 04
-91
+8f
 20
 40
 04
 78
+20
+40
+04
+36
 6f
 e0
 cb
@@ -4391,7 +4379,7 @@
 24
 3a
 04
-4d
+4a
 6f
 e4
 48
@@ -4431,7 +4419,7 @@
 24
 22
 84
-72
+55
 68
 49
 4c
@@ -4443,7 +4431,7 @@
 20
 22
 84
-68
+6c
 6f
 e2
 4c
@@ -4451,7 +4439,27 @@
 20
 3a
 04
+6c
 68
+4a
+4c
+6b
+28
+4f
+fe
+1f
+20
+20
+84
+67
+6f
+e2
+4c
+59
+98
+40
+fe
+00
 68
 4a
 4c
@@ -4463,11 +4471,11 @@
 60
 4a
 4c
-6e
+6b
 24
 21
 04
-6b
+6f
 6f
 e1
 c8
@@ -4492,18 +4500,6 @@
 21
 04
 76
-67
-e2
-4c
-6a
-20
-40
-04
-6f
-6f
-e2
-4c
-6a
 20
 40
 7d
@@ -4515,11 +4511,31 @@
 20
 20
 03
-40
+5a
+df
+ff
+ff
+ff
+98
+46
+5e
+00
+6f
+e2
+4c
+59
+9d
+e6
+7e
+00
+20
+20
+04
+5a
 20
 40
 04
-6f
+73
 6f
 e1
 c8
@@ -4527,7 +4543,7 @@
 20
 20
 04
-62
+64
 18
 46
 04
@@ -4543,7 +4559,7 @@
 20
 20
 04
-62
+64
 58
 00
 00
@@ -4551,27 +4567,11 @@
 67
 e2
 4c
-6e
+6b
 20
 60
 00
 00
-6f
-e2
-4c
-59
-68
-4a
-4c
-6e
-98
-40
-fe
-00
-20
-20
-04
-58
 70
 4c
 69
@@ -4580,22 +4580,22 @@
 60
 00
 00
-70
-48
-a6
-00
 58
 00
 00
 00
 67
+e0
+c8
+a6
+67
 e1
 4c
 67
 20
 40
 04
-1f
+12
 6f
 e0
 c8
@@ -4607,15 +4607,15 @@
 24
 2c
 04
-10
+03
 24
 37
 84
-10
+03
 20
 40
 04
-b8
+b7
 20
 40
 26
@@ -4660,26 +4660,18 @@
 e0
 c9
 13
-d8
-40
-00
-40
 20
 40
-60
-93
+3f
+56
 6f
 e0
 c9
 14
-d8
-40
-00
-40
 20
 20
-60
-93
+3f
+56
 6f
 e0
 c8
@@ -4687,7 +4679,7 @@
 20
 5a
 04
-9f
+9e
 6f
 e0
 c8
@@ -4716,10 +4708,14 @@
 4c
 69
 00
+70
+4c
+6a
+01
 20
 40
 04
-f0
+fe
 6f
 e0
 cb
@@ -4791,7 +4787,7 @@
 20
 20
 04
-46
+42
 6f
 e0
 cb
@@ -4843,7 +4839,7 @@
 c0
 00
 84
-ec
+fa
 6f
 e0
 cc
@@ -4851,7 +4847,7 @@
 20
 3a
 04
-ec
+fa
 1b
 22
 7e
@@ -4891,9 +4887,33 @@
 6f
 e2
 4c
+6b
+24
+7a
+00
+00
+6f
+e2
+4c
 59
 68
 4a
+4c
+4e
+18
+43
+84
+00
+98
+46
+7c
+00
+20
+21
+04
+fe
+68
+4a
 cc
 5d
 98
@@ -4919,7 +4939,7 @@
 20
 22
 84
-d0
+d5
 18
 40
 84
@@ -4976,10 +4996,6 @@
 46
 04
 00
-18
-40
-85
-d8
 1a
 22
 7e
@@ -4991,7 +5007,7 @@
 20
 21
 04
-e5
+ee
 1f
 e6
 7e
@@ -5008,6 +5024,26 @@
 40
 84
 00
+6f
+e1
+cc
+64
+da
+20
+18
+00
+9a
+20
+fe
+00
+98
+46
+7c
+00
+24
+21
+04
+f8
 60
 49
 c8
@@ -5028,6 +5064,26 @@
 46
 04
 00
+6f
+e1
+cc
+64
+da
+20
+18
+00
+9a
+26
+7e
+00
+98
+46
+7c
+00
+20
+21
+04
+f8
 60
 49
 c8
@@ -5115,19 +5171,19 @@
 c0
 00
 85
-02
+10
 c0
 01
 05
-04
+12
 c0
 01
 85
-0a
+18
 c0
 02
 05
-10
+1e
 20
 60
 00
@@ -5139,7 +5195,7 @@
 20
 20
 05
-11
+1f
 6f
 e0
 c8
@@ -5147,7 +5203,7 @@
 20
 3a
 05
-08
+16
 6f
 e2
 48
@@ -5163,7 +5219,7 @@
 20
 20
 05
-11
+1f
 70
 47
 c6
@@ -5175,7 +5231,7 @@
 20
 3a
 05
-11
+1f
 6f
 e2
 48
@@ -5187,7 +5243,7 @@
 20
 20
 05
-13
+21
 70
 47
 c6
@@ -5227,7 +5283,7 @@
 20
 40
 04
-1f
+12
 20
 20
 23
@@ -5247,7 +5303,7 @@
 20
 3a
 05
-23
+31
 6f
 e1
 48
@@ -5271,15 +5327,15 @@
 20
 40
 04
-1f
+12
 24
 2c
 05
-3c
+4a
 24
 37
 85
-3c
+4a
 20
 40
 26
@@ -5315,7 +5371,7 @@
 20
 42
 85
-38
+46
 6f
 e0
 c8
@@ -5384,46 +5440,62 @@
 e1
 48
 89
-6f
-e0
-c8
-8a
 2f
 ef
 fe
-01
+09
 6f
 e0
 c8
 8b
 c0
-00
-a5
-ad
-c0
-01
-25
-af
-c0
-01
-a5
-b1
-c0
 02
 05
-49
+53
+20
+20
+25
+a8
+20
+20
+a5
+75
+20
+20
+23
+39
+6f
+e0
+cc
+40
+20
+3a
+48
+c6
 20
 20
-25
-6e
+01
+2e
+6f
+e0
+cc
+40
+20
+3a
+48
+cc
 20
 20
-a5
-75
+01
+29
 20
+40
+04
+3e
 20
-23
-39
+40
+00
+4d
 20
 40
 45
@@ -5436,18 +5508,10 @@
 40
 46
 f4
-6f
-e0
-cc
-40
-c0
-00
-48
-59
 20
 40
-01
-2b
+05
+55
 20
 20
 48
@@ -5468,34 +5532,66 @@
 40
 25
 7e
-6f
-e0
-cc
+20
 40
-c0
-00
 05
-5a
+55
 20
 40
-01
-2b
+45
+44
 20
+40
+42
+ca
+70
+4a
+ae
+00
+70
+48
+a1
+00
+70
+48
+8b
+00
+6f
+e2
+48
+91
+6f
+e2
+48
+8d
+98
+46
+7c
+00
 20
-05
-5b
+62
+80
+00
 20
 40
-48
-c6
+04
+3e
 20
 40
-45
-44
+00
+4d
 20
 20
 48
-4e
+22
+20
+40
+04
+3e
+20
+40
+00
+4d
 6f
 e0
 c8
@@ -5503,7 +5599,7 @@
 24
 3a
 05
-88
+9c
 6f
 e0
 c8
@@ -5511,15 +5607,15 @@
 c0
 01
 05
-64
+7c
 c0
 02
 05
-7c
+90
 c0
 01
 85
-81
+95
 20
 20
 48
@@ -5531,11 +5627,11 @@
 c2
 97
 85
-6d
+85
 c2
 98
 05
-6d
+85
 c3
 1d
 48
@@ -5555,23 +5651,15 @@
 20
 22
 85
-71
+87
 20
 20
 48
 06
-6f
-e0
-cc
-40
-c0
-00
-48
-11
 20
 40
-01
-26
+05
+58
 20
 20
 48
@@ -5604,18 +5692,10 @@
 40
 49
 8e
-6f
-e0
-cc
-40
-c0
-00
-48
-2d
 20
 40
-01
-26
+05
+58
 20
 20
 48
@@ -5627,7 +5707,7 @@
 c3
 17
 85
-86
+9a
 6f
 e0
 cb
@@ -5635,7 +5715,7 @@
 c0
 00
 85
-86
+9a
 20
 20
 48
@@ -5647,15 +5727,15 @@
 c3
 17
 85
-86
+9a
 c2
 89
 85
-86
+9a
 c2
 89
 05
-86
+9a
 20
 20
 48
@@ -5699,11 +5779,11 @@
 20
 40
 01
-b1
+b6
 20
 20
 04
-96
+94
 6f
 e4
 4b
@@ -5716,6 +5796,18 @@
 20
 45
 1f
+da
+60
+4c
+a8
+da
+40
+43
+6c
+20
+20
+31
+8a
 6f
 e1
 47
@@ -5759,7 +5851,7 @@
 c2
 85
 85
-a7
+be
 6f
 e4
 4b
@@ -5767,7 +5859,7 @@
 c3
 04
 05
-a7
+be
 68
 49
 49
@@ -5880,18 +5972,22 @@
 40
 49
 8e
-6f
-e0
-cc
-40
-24
-3a
-01
-26
 20
 20
-48
-cc
+05
+58
+58
+00
+00
+00
+67
+e1
+4a
+c2
+20
+20
+45
+77
 6f
 e4
 4c
@@ -5915,7 +6011,7 @@
 24
 21
 05
-d2
+ea
 d8
 c0
 4c
@@ -5966,8 +6062,8 @@
 5f
 20
 40
-05
-e8
+06
+00
 6f
 e0
 cc
@@ -6071,7 +6167,7 @@
 24
 5a
 01
-2b
+2e
 20
 20
 43
@@ -6084,46 +6180,30 @@
 e1
 4a
 f2
-70
-4a
-c6
-00
-58
-00
-00
-06
 67
-e1
-43
-72
+e0
+cc
+a7
 67
-e1
-43
-74
-6f
-e4
-4b
-ab
-c2
-8d
-c3
-66
-58
-00
-00
-07
+e0
+cc
+a8
+67
+e0
+ca
+c6
 20
 20
 43
-64
+66
 6f
 e0
 ca
 c7
 c0
 00
-85
-fc
+86
+10
 70
 4b
 76
@@ -6139,7 +6219,7 @@
 70
 4b
 76
-05
+0a
 20
 20
 43
@@ -6149,29 +6229,17 @@
 82
 c1
 1f
-e6
-7c
-0c
-24
-21
-43
-84
-67
-e1
-43
-72
-67
-e1
+e6
+7c
+0c
+24
+21
 43
-74
+84
 6f
 e0
 82
 c3
-20
-3a
-43
-9a
 68
 48
 cb
@@ -6190,12 +6258,32 @@
 c3
 67
 e0
-cb
-8a
+c1
+77
 20
 20
 43
 86
+6f
+e0
+cc
+a7
+24
+7a
+00
+00
+70
+4c
+a7
+01
+70
+4c
+a8
+1e
+20
+60
+00
+00
 ef
 e1
 00
@@ -6203,7 +6291,7 @@
 c0
 02
 06
-0f
+25
 20
 20
 19
@@ -6219,11 +6307,11 @@
 c0
 05
 06
-14
+2a
 c0
 09
 06
-23
+39
 20
 20
 1c
@@ -6251,7 +6339,7 @@
 c2
 81
 86
-1e
+34
 6f
 e1
 44
@@ -6279,11 +6367,11 @@
 24
 22
 86
-1a
+30
 24
 34
 06
-1a
+30
 20
 20
 1e
@@ -6348,6 +6436,46 @@
 20
 1e
 10
+78
+54
+7c
+00
+20
+40
+59
+e6
+6f
+e0
+80
+49
+20
+7a
+00
+00
+c2
+83
+d7
+30
+c0
+03
+86
+4f
+20
+20
+57
+01
+20
+40
+58
+5d
+70
+00
+73
+78
+20
+60
+00
+00
 20
 40
 45
@@ -6359,7 +6487,7 @@
 24
 5a
 01
-2b
+2e
 20
 20
 43
@@ -6391,7 +6519,7 @@
 c0
 04
 86
-3e
+5e
 20
 20
 4d
@@ -6444,15 +6572,15 @@
 20
 78
 71
-74
-56
+0f
+29
 aa
 55
 40
 00
 00
 40
-01
+09
 00
 00
 00
@@ -6468,8 +6596,8 @@
 00
 00
 00
-38
-1c
+0c
+0c
 00
 80
 00
@@ -6479,7 +6607,7 @@
 98
 d6
 53
-46
+4e
 06
 01
 00
@@ -6487,7 +6615,7 @@
 00
 00
 00
-00
+04
 01
 00
 18
@@ -6505,7 +6633,7 @@
 00
 00
 0a
-00
+01
 00
 00
 01
@@ -6539,7 +6667,7 @@
 00
 e8
 41
-01
+0a
 aa
 55
 01
@@ -6579,18 +6707,15 @@
 00
 aa
 55
-01
+05
 00
 ea
 41
 ff
-aa
-55
-01
+04
 00
-ee
-41
 00
+08
 aa
 55
 01
@@ -7329,7 +7454,7 @@
 00
 99
 48
-72
+6f
 4c
 aa
 55
@@ -7476,9 +7601,9 @@
 00
 72
 43
-07
+06
 00
-07
+09
 00
 20
 00
@@ -7669,133 +7794,8 @@
 d8
 40
 01
-92
-33
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+56
+2f
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-27
-dd
+96
+96
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/flash.dat	(revision 1416)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-2a
+aa
 19
 c2
 84
@@ -11,111 +11,111 @@
 c0
 00
 03
-08
+0f
 c0
-41
+01
 83
-62
+3b
 c0
-42
+41
 03
-69
+7c
 c0
-42
+41
+83
 83
-6d
 c0
 45
 03
-82
+8a
 c0
 45
 83
-55
-c0
-46
-03
-88
+6f
 c0
 57
 00
-2c
+2e
 c0
 61
 80
-92
+94
 c0
 62
 00
-a7
+ac
 c0
 63
 80
-ae
+b3
 c0
 64
 80
-b4
+b9
 c0
 65
 00
-f5
+f9
 c0
 66
 00
-aa
+af
 c0
 67
 00
-68
+69
 c0
 67
 82
-83
+8a
 c0
 68
 02
-55
+5c
 c0
 68
 81
-ba
+bf
 c0
 6a
 01
-a5
+aa
 c0
 6b
 00
-88
+89
 c0
 6c
-80
-fe
+81
+01
 c0
 6f
 00
-81
+82
 c0
 70
 83
-38
+52
 c0
 71
 03
-34
+4e
 c0
 6d
 05
-94
+ab
+c0
+6d
+85
+d5
 c0
 4f
 83
-c6
+bc
 c0
 74
 06
-36
+56
 20
 20
 13
@@ -123,59 +123,67 @@
 c0
 10
 00
-86
+87
 c0
 19
 83
-a2
+91
 c0
 1a
 03
-a7
+96
 c0
 43
 83
-c2
+b1
+c0
+54
+03
+b5
 c0
 6e
 84
-40
+32
 c0
 6f
 03
-f4
+ea
 c0
 70
 83
-d4
+ca
 c0
 71
-04
-f4
+05
+02
 c0
 74
 85
-1b
+29
 c0
 75
 04
-44
+40
 c0
 76
 04
-ad
+ac
+c0
+0d
+06
+48
 c0
 50
 83
-c8
+be
 c0
 51
 83
-d2
+c8
 c0
 60
 06
-0c
+22
 20
 20
 13
@@ -184,10 +192,6 @@
 3f
 80
 34
-24
-55
-85
-c0
 20
 40
 6d
@@ -195,7 +199,7 @@
 20
 40
 00
-3c
+39
 20
 40
 41
@@ -206,22 +210,6 @@
 00
 20
 40
-02
-b3
-6f
-e1
-c8
-ad
-67
-e1
-cc
-64
-20
-40
-04
-f0
-20
-40
 40
 8e
 20
@@ -235,11 +223,11 @@
 20
 40
 00
-63
+64
 20
 40
 01
-b1
+b6
 20
 20
 3b
@@ -266,8 +254,16 @@
 ff
 20
 40
-00
-60
+04
+fe
+20
+40
+3f
+1e
+20
+40
+05
+d8
 20
 40
 3d
@@ -275,47 +271,67 @@
 20
 40
 00
-4b
+50
+20
+40
+02
+ba
 20
 40
 01
-21
+70
 20
 40
-02
-7b
+01
+63
 20
 40
-02
-c0
-6f
-e4
-4b
-ab
-c3
-0c
-3b
-f5
+01
+24
 20
 40
 02
-c3
+82
+20
+40
+00
+4a
 20
 20
 3b
 f5
 6f
 e0
-c9
-17
 c1
-7f
-80
+e8
+67
+e0
+cc
+a9
+20
+60
+00
+00
+6f
+e0
+cc
+a9
+67
+e0
+c1
+e8
+20
+60
+00
 00
 6f
 e0
 c9
 17
+c1
+7f
+80
+00
 d8
 40
 00
@@ -335,7 +351,7 @@
 20
 20
 80
-5a
+5e
 6f
 e0
 c9
@@ -359,11 +375,11 @@
 20
 20
 80
-5c
+60
 20
 20
 00
-5e
+62
 70
 49
 28
@@ -388,22 +404,10 @@
 60
 00
 00
-6f
-e0
-cc
-40
-24
-5a
-01
-5e
-20
-20
-3f
-1e
 58
 00
 02
-c6
+ca
 67
 e1
 48
@@ -411,7 +415,7 @@
 58
 00
 02
-e2
+e9
 67
 e1
 48
@@ -459,7 +463,7 @@
 20
 40
 01
-b8
+bd
 6f
 e0
 c8
@@ -475,26 +479,26 @@
 24
 34
 00
-7c
+7d
 20
 40
 00
-79
+7a
 20
 40
 01
-a2
+a7
 20
 20
 45
 44
 70
 4c
-a8
+a4
 00
 70
 4c
-a9
+a5
 00
 20
 60
@@ -507,14 +511,14 @@
 6f
 e0
 cc
-a9
+a5
 24
 7a
 00
 00
 70
 4c
-a9
+a5
 64
 20
 60
@@ -531,11 +535,11 @@
 20
 40
 01
-f0
+f7
 20
 40
 02
-04
+0b
 20
 20
 46
@@ -555,35 +559,39 @@
 c0
 1e
 05
-52
+62
 c0
 1c
 85
-4b
+5b
 c0
 1d
 05
-5d
+73
 c0
 19
-05
-f8
-c0
-22
-05
-ff
+06
+0c
 c0
 0a
-85
-ee
+86
+06
 c0
 0a
-05
-eb
+06
+03
+c0
+22
+06
+13
+c0
+20
+06
+1d
 c0
 00
 86
-32
+52
 20
 20
 43
@@ -603,7 +611,7 @@
 c0
 00
 00
-97
+99
 20
 20
 3d
@@ -623,7 +631,7 @@
 20
 34
 00
-a1
+a6
 6f
 e4
 4b
@@ -631,11 +639,11 @@
 c2
 98
 00
-a4
+a9
 c3
 18
 80
-a4
+a9
 20
 40
 41
@@ -644,10 +652,22 @@
 21
 7e
 07
+68
+48
+cb
+cb
+98
+46
+7c
+00
 20
+22
+c8
+27
 20
-47
-ff
+20
+00
+a9
 6f
 e0
 cc
@@ -655,7 +675,7 @@
 24
 5a
 01
-26
+29
 20
 20
 48
@@ -667,7 +687,7 @@
 24
 5a
 01
-26
+29
 20
 20
 48
@@ -679,7 +699,7 @@
 24
 5a
 01
-26
+29
 20
 20
 3d
@@ -695,7 +715,7 @@
 20
 40
 03
-a7
+96
 20
 20
 3e
@@ -715,11 +735,11 @@
 20
 40
 01
-ac
+b1
 20
 40
 01
-b1
+b6
 20
 20
 3e
@@ -735,11 +755,11 @@
 20
 40
 01
-6b
+70
 20
 40
 01
-5e
+63
 20
 40
 40
@@ -764,14 +784,10 @@
 e0
 c9
 20
-d8
-40
-00
-3f
 20
 40
-60
-93
+01
+f1
 d8
 40
 00
@@ -799,19 +815,19 @@
 20
 40
 00
-ca
+ce
 20
 40
 00
-d5
+d9
 20
 40
 00
-e2
+e6
 20
 20
 00
-e9
+ed
 6f
 e0
 c9
@@ -827,11 +843,11 @@
 c0
 01
 80
-d0
+d4
 c0
 01
 00
-d2
+d6
 20
 60
 00
@@ -903,7 +919,7 @@
 c2
 00
 00
-d9
+dd
 20
 60
 00
@@ -964,26 +980,26 @@
 e0
 c9
 13
-d8
-40
-00
-80
 20
 40
-60
-93
+3f
+54
 6f
 e0
 c9
 14
-d8
+20
+20
+3f
+54
+20
 40
-00
-80
+7f
+dc
 20
 20
-60
-93
+15
+b1
 68
 48
 c9
@@ -1008,14 +1024,10 @@
 e0
 c9
 1f
-d8
-40
-00
-3f
 20
 40
-60
-93
+01
+f1
 20
 20
 3e
@@ -1027,7 +1039,7 @@
 20
 40
 01
-9f
+a4
 20
 40
 23
@@ -1047,15 +1059,15 @@
 20
 40
 01
-71
+76
 20
 40
 01
-2f
+32
 20
 40
 01
-61
+66
 20
 40
 40
@@ -1067,7 +1079,7 @@
 20
 40
 01
-74
+79
 20
 40
 44
@@ -1075,11 +1087,11 @@
 20
 40
 01
-91
+96
 20
 40
 01
-97
+9c
 20
 40
 45
@@ -1091,13 +1103,17 @@
 20
 40
 05
-91
+a5
 20
 40
 45
 15
 20
 40
+05
+a8
+20
+40
 45
 2a
 20
@@ -1119,11 +1135,11 @@
 20
 40
 01
-18
+1c
 20
 20
 01
-8b
+90
 da
 60
 49
@@ -1131,7 +1147,7 @@
 da
 40
 01
-1b
+1f
 20
 20
 31
@@ -1144,18 +1160,14 @@
 e0
 ca
 c5
-24
-3a
-01
-1f
 20
-60
+7a
 00
 00
 20
 40
 03
-26
+2d
 20
 20
 46
@@ -1231,7 +1243,7 @@
 c0
 00
 81
-3f
+42
 6f
 e0
 cc
@@ -1239,7 +1251,7 @@
 24
 3a
 01
-37
+3a
 70
 4c
 41
@@ -1255,7 +1267,7 @@
 20
 3a
 01
-3c
+3f
 1f
 e0
 ff
@@ -1267,7 +1279,7 @@
 20
 20
 01
-46
+49
 70
 4c
 45
@@ -1279,7 +1291,7 @@
 20
 20
 01
-52
+55
 da
 60
 4c
@@ -1287,7 +1299,7 @@
 da
 40
 01
-42
+45
 20
 20
 31
@@ -1307,7 +1319,7 @@
 c0
 00
 81
-52
+55
 70
 4c
 4d
@@ -1319,15 +1331,15 @@
 c0
 00
 01
-4c
+4f
 c0
 00
 81
-4e
+51
 c0
 01
 01
-50
+53
 20
 60
 00
@@ -1339,7 +1351,7 @@
 20
 20
 01
-51
+54
 68
 48
 cc
@@ -1347,7 +1359,7 @@
 20
 20
 01
-51
+54
 68
 48
 cc
@@ -1367,23 +1379,31 @@
 c0
 00
 01
-58
+5b
 c0
 00
 81
-5a
+5f
 c0
 01
 01
-5c
+61
 20
 60
 00
 00
-68
-48
-cc
-48
+68
+48
+cc
+48
+18
+46
+7c
+ff
+20
+62
+80
+00
 20
 20
 60
@@ -1394,28 +1414,28 @@
 49
 20
 20
-60
-7f
+01
+5c
 68
 48
 cc
 4a
 20
 20
-60
-7f
+01
+5c
 20
 40
 01
-58
+5b
 20
 40
 01
-5a
+5f
 20
 20
 01
-5c
+61
 6f
 e0
 cb
@@ -1455,7 +1475,7 @@
 20
 21
 01
-6f
+74
 68
 48
 cb
@@ -1466,8 +1486,8 @@
 40
 c0
 00
-e0
-7f
+81
+5c
 20
 20
 60
@@ -1487,7 +1507,7 @@
 da
 40
 02
-66
+6d
 20
 20
 31
@@ -1499,7 +1519,7 @@
 c0
 00
 01
-7a
+7f
 6f
 e4
 4b
@@ -1515,7 +1535,7 @@
 20
 20
 01
-7d
+82
 6f
 e4
 4b
@@ -1551,7 +1571,7 @@
 20
 22
 81
-84
+89
 20
 20
 44
@@ -1559,7 +1579,7 @@
 20
 40
 01
-89
+8e
 6f
 e0
 cb
@@ -1579,7 +1599,7 @@
 da
 40
 05
-71
+87
 20
 20
 44
@@ -1591,7 +1611,7 @@
 da
 40
 01
-8e
+93
 20
 20
 31
@@ -1603,7 +1623,7 @@
 c0
 00
 05
-88
+9c
 20
 20
 43
@@ -1611,22 +1631,22 @@
 da
 40
 01
-94
+99
 da
 60
 4c
-a9
+a5
 20
 20
 31
 8a
 70
 4c
-a8
+a4
 01
 70
 4c
-aa
+a6
 0a
 20
 60
@@ -1635,11 +1655,11 @@
 da
 40
 01
-9a
+9f
 da
 60
 4c
-aa
+a6
 20
 20
 31
@@ -1667,7 +1687,7 @@
 6f
 e0
 cc
-a8
+a4
 20
 3a
 49
@@ -1699,7 +1719,7 @@
 c0
 05
 81
-a9
+ae
 20
 20
 42
@@ -1707,7 +1727,7 @@
 20
 40
 01
-af
+b4
 da
 60
 4b
@@ -1723,7 +1743,7 @@
 c0
 05
 81
-af
+b4
 20
 20
 42
@@ -1751,7 +1771,7 @@
 c0
 05
 81
-b6
+bb
 20
 20
 42
@@ -1767,7 +1787,7 @@
 20
 40
 01
-ba
+bf
 20
 20
 40
@@ -1787,10 +1807,6 @@
 20
 40
 01
-c3
-20
-40
-01
 c8
 20
 40
@@ -1803,7 +1819,11 @@
 20
 40
 01
-df
+d7
+20
+40
+01
+e4
 20
 20
 41
@@ -1815,7 +1835,7 @@
 20
 40
 01
-ec
+f1
 20
 40
 41
@@ -1835,7 +1855,7 @@
 20
 40
 01
-ec
+f1
 20
 40
 41
@@ -1855,7 +1875,7 @@
 20
 40
 01
-ec
+f1
 20
 40
 41
@@ -1899,7 +1919,7 @@
 c0
 7f
 81
-db
+e0
 20
 20
 41
@@ -1911,7 +1931,7 @@
 20
 40
 01
-ee
+f4
 68
 48
 c9
@@ -1951,7 +1971,7 @@
 c0
 7f
 81
-e8
+ed
 20
 20
 41
@@ -1963,7 +1983,7 @@
 20
 40
 01
-ee
+f4
 68
 48
 c9
@@ -1972,6 +1992,10 @@
 20
 41
 64
+c1
+7f
+80
+00
 d8
 40
 00
@@ -1980,6 +2004,10 @@
 20
 60
 93
+c1
+7f
+80
+00
 d8
 40
 00
@@ -2018,8 +2046,8 @@
 0f
 20
 40
-01
-f9
+02
+00
 20
 20
 40
@@ -2047,7 +2075,7 @@
 c0
 7f
 82
-00
+07
 20
 20
 40
@@ -2059,7 +2087,7 @@
 20
 40
 01
-ee
+f4
 68
 48
 c9
@@ -2083,7 +2111,7 @@
 24
 3a
 02
-0d
+14
 6f
 e0
 cc
@@ -2091,11 +2119,11 @@
 20
 40
 01
-ec
+f1
 20
 40
 02
-1d
+24
 68
 48
 cc
@@ -2119,7 +2147,7 @@
 20
 40
 01
-ee
+f4
 70
 4c
 3f
@@ -2135,11 +2163,11 @@
 20
 40
 02
-36
+3d
 20
 40
 02
-21
+28
 68
 48
 cc
@@ -2183,7 +2211,7 @@
 20
 40
 02
-2c
+33
 67
 e0
 cc
@@ -2195,7 +2223,7 @@
 20
 3a
 02
-28
+2f
 6f
 e0
 cc
@@ -2259,11 +2287,11 @@
 c0
 03
 82
-41
+48
 c0
 00
 02
-43
+4a
 20
 60
 00
@@ -2303,11 +2331,11 @@
 c0
 03
 82
-41
+48
 c0
 00
 02
-43
+4a
 20
 60
 00
@@ -2363,7 +2391,7 @@
 c0
 7f
 82
-52
+59
 20
 40
 41
@@ -2391,7 +2419,7 @@
 20
 20
 02
-4f
+56
 20
 40
 40
@@ -2399,7 +2427,7 @@
 20
 40
 02
-58
+5f
 20
 20
 40
@@ -2451,7 +2479,7 @@
 20
 3a
 02
-66
+6d
 67
 e0
 cb
@@ -2511,11 +2539,11 @@
 20
 41
 02
-75
+7c
 24
 41
 02
-79
+80
 20
 20
 48
@@ -2559,7 +2587,7 @@
 c2
 83
 82
-81
+88
 70
 4c
 3a
@@ -2599,7 +2627,7 @@
 c2
 9e
 82
-8f
+96
 18
 42
 7e
@@ -2631,7 +2659,7 @@
 24
 3a
 02
-ac
+b3
 6f
 e4
 4b
@@ -2639,7 +2667,7 @@
 c2
 8e
 02
-a0
+a7
 18
 42
 7e
@@ -2651,11 +2679,11 @@
 c0
 00
 02
-9c
+a3
 c0
 01
 02
-9a
+a1
 20
 60
 00
@@ -2667,7 +2695,7 @@
 20
 20
 02
-8c
+93
 58
 00
 00
@@ -2675,7 +2703,7 @@
 20
 20
 02
-8c
+93
 58
 00
 00
@@ -2683,7 +2711,7 @@
 20
 20
 02
-8c
+93
 58
 00
 00
@@ -2691,7 +2719,7 @@
 20
 20
 02
-8c
+93
 18
 42
 7e
@@ -2703,15 +2731,15 @@
 c0
 00
 02
-9c
+a3
 c0
 01
 02
-9e
+a5
 c0
 01
 82
-9a
+a1
 20
 60
 00
@@ -2727,15 +2755,15 @@
 c0
 00
 02
-9e
+a5
 c0
 00
 82
-9a
+a1
 c0
 01
 82
-98
+9f
 20
 60
 00
@@ -2747,7 +2775,7 @@
 c2
 8e
 02
-a6
+ad
 18
 42
 7e
@@ -2759,47 +2787,23 @@
 c0
 00
 02
-98
+9f
 c0
 00
 82
-9a
+a1
 20
 60
 00
 00
-58
-01
-77
-00
-67
-e1
-cc
-4e
-20
-40
-26
-13
-70
-48
-c6
-1e
 6f
 e4
 4b
 ab
-c4
+c3
 0c
-00
-00
-20
-40
-26
-0b
-70
-48
-c6
-0f
+02
+c3
 58
 00
 bb
@@ -2810,36 +2814,48 @@
 4e
 58
 00
-48
-00
+6c
+10
 67
 e1
 c8
 ad
+67
+e1
+cc
+64
+70
+48
+c6
+0f
 20
 60
 00
 00
 58
+01
+77
 00
-e2
-90
 67
 e1
-c8
-ad
-20
-60
-00
-00
+cc
+4e
 58
-00
-17
-70
+01
+0b
+60
 67
 e1
 c8
 ad
+67
+e1
+cc
+64
+70
+48
+c6
+1e
 20
 60
 00
@@ -2857,13 +2873,25 @@
 00
 00
 6f
+e0
+cc
+6a
+70
+4c
+6a
+00
+24
+5a
+00
+f7
+6f
 e4
 4b
 ab
 c3
 0a
 82
-cd
+d4
 6f
 e0
 cb
@@ -2883,7 +2911,7 @@
 c2
 80
 82
-dc
+e3
 68
 48
 c7
@@ -3023,7 +3051,7 @@
 24
 21
 02
-f8
+ff
 20
 40
 25
@@ -3031,15 +3059,15 @@
 20
 40
 04
-1f
+12
 24
 2c
-02
-fe
+03
+05
 24
 37
-82
-fe
+83
+05
 20
 40
 48
@@ -3063,7 +3091,7 @@
 c0
 08
 03
-00
+07
 20
 60
 00
@@ -3075,7 +3103,7 @@
 20
 20
 02
-ee
+f5
 70
 4b
 a3
@@ -3107,7 +3135,7 @@
 20
 20
 01
-b1
+b6
 20
 80
 00
@@ -3115,7 +3143,7 @@
 24
 55
 83
-31
+38
 20
 40
 30
@@ -3123,11 +3151,11 @@
 24
 55
 83
-3c
+56
 58
 00
 4c
-72
+6f
 67
 e1
 48
@@ -3151,7 +3179,7 @@
 c0
 0c
 03
-14
+1b
 70
 80
 42
@@ -3159,7 +3187,7 @@
 6f
 e0
 cc
-93
+8f
 67
 e0
 c1
@@ -3279,11 +3307,87 @@
 67
 e0
 cc
-93
+8f
 20
 60
 00
 00
+20
+40
+70
+6c
+20
+40
+75
+97
+20
+40
+6e
+a7
+20
+40
+1b
+92
+20
+40
+08
+3a
+20
+40
+03
+42
+20
+20
+08
+1a
+20
+40
+03
+44
+20
+20
+31
+09
+20
+40
+03
+46
+20
+20
+78
+50
+6f
+e0
+c4
+8c
+20
+7a
+00
+00
+6f
+e1
+44
+8d
+1f
+e2
+24
+00
+1a
+40
+a4
+02
+ef
+e0
+80
+12
+c1
+7f
+80
+00
+20
+20
+78
+13
 18
 42
 7e
@@ -3339,7 +3443,7 @@
 c0
 04
 03
-44
+5e
 58
 00
 00
@@ -3351,7 +3455,7 @@
 70
 4c
 63
-8c
+fa
 20
 40
 12
@@ -3468,6 +3572,34 @@
 20
 12
 5d
+6f
+e0
+c1
+ea
+67
+e0
+89
+64
+20
+40
+11
+50
+70
+8a
+0a
+00
+6f
+e0
+89
+64
+67
+e0
+c1
+ea
+20
+60
+00
+00
 70
 89
 00
@@ -3496,114 +3628,18 @@
 20
 11
 7d
-20
-40
-11
-90
-58
-00
-76
-76
-67
-f1
-09
-68
-20
-60
-00
-00
-6f
-e0
-c9
-38
-c0
-80
-11
-a7
 6f
 e0
-cc
-92
-24
-3a
-03
-79
-20
-00
-01
-2c
-20
-40
-4c
-a7
-d8
+c1
+e8
 c0
-41
-eb
-98
+48
+83
+8e
 c0
-8c
-00
-ef
-e0
-80
-06
-67
-f0
-89
-61
-70
-89
-60
-2e
-20
-20
-11
-b3
-6f
-f0
-89
-60
-1f
-e1
-fe
-01
-67
-f0
-89
-60
-70
-89
-61
-04
-20
-20
-11
-b3
-70
-4c
-92
-00
-20
-60
-00
-00
-70
-4c
-92
-01
-20
-60
-00
-00
-6f
-e0
-cc
-92
-24
-3a
-03
-85
+4a
+12
+44
 20
 20
 12
@@ -3620,110 +3656,6 @@
 20
 12
 2a
-6f
-f0
-89
-a2
-2f
-ef
-fe
-06
-79
-20
-fe
-07
-67
-e0
-c1
-e9
-6f
-f0
-89
-a3
-1f
-e1
-04
-0f
-18
-43
-84
-00
-1f
-f1
-fe
-00
-98
-40
-84
-00
-18
-4f
-a2
-03
-6f
-e0
-c1
-e9
-20
-40
-03
-9d
-1f
-e6
-7e
-00
-9a
-20
-fe
-00
-1f
-e0
-ff
-f7
-1f
-e1
-7f
-ff
-2f
-ef
-fe
-08
-24
-20
-83
-9b
-58
-00
-00
-00
-67
-e0
-80
-19
-20
-60
-00
-00
-2f
-ef
-fe
-07
-24
-60
-80
-00
-d8
-40
-ff
-00
-98
-41
-fe
-00
-20
-60
-00
-00
 da
 20
 09
@@ -3868,6 +3800,34 @@
 20
 78
 51
+18
+42
+7e
+00
+c2
+80
+16
+a5
+c2
+80
+83
+b9
+20
+20
+16
+90
+20
+40
+16
+94
+70
+8a
+6d
+89
+20
+60
+00
+00
 70
 00
 80
@@ -3979,7 +3939,7 @@
 c5
 16
 83
-e8
+de
 19
 31
 7e
@@ -4019,7 +3979,7 @@
 c2
 00
 03
-ea
+e0
 19
 31
 7e
@@ -4051,7 +4011,7 @@
 20
 20
 03
-e6
+dc
 6f
 e0
 c8
@@ -4084,26 +4044,14 @@
 40
 16
 c8
-6f
-f0
-89
-60
-79
-20
-7e
-03
-67
-f0
-89
-60
 20
 40
 21
 d5
 c5
 97
-84
-04
+83
+f7
 78
 3c
 fc
@@ -4175,7 +4123,7 @@
 20
 40
 02
-45
+4c
 6f
 e0
 c8
@@ -4207,7 +4155,7 @@
 20
 40
 04
-30
+21
 6f
 e1
 4c
@@ -4265,33 +4213,25 @@
 11
 8f
 20
+00
+01
+2c
+20
 40
 11
 a6
 20
 40
 03
-ff
+f2
 20
 57
-84
-2d
+a2
+3f
 20
 60
 00
 00
-70
-8a
-0a
-00
-70
-8a
-0b
-00
-20
-20
-12
-9c
 68
 48
 c8
@@ -4306,8 +4246,8 @@
 00
 24
 21
-26
-9c
+04
+31
 18
 40
 84
@@ -4323,7 +4263,7 @@
 c0
 07
 84
-3c
+2d
 6f
 e0
 c8
@@ -4356,6 +4296,10 @@
 60
 00
 00
+20
+20
+22
+cb
 c5
 13
 a4
@@ -4372,6 +4316,46 @@
 20
 26
 1d
+6f
+e2
+48
+91
+68
+4a
+48
+8d
+98
+46
+7c
+00
+20
+22
+84
+3b
+20
+20
+04
+3e
+70
+41
+ea
+00
+70
+41
+e8
+91
+20
+60
+00
+00
+70
+41
+ea
+ff
+20
+60
+00
+00
 20
 40
 26
@@ -4379,11 +4363,15 @@
 24
 34
 04
-91
+8f
 20
 40
 04
 78
+20
+40
+04
+36
 6f
 e0
 cb
@@ -4391,7 +4379,7 @@
 24
 3a
 04
-4d
+4a
 6f
 e4
 48
@@ -4431,7 +4419,7 @@
 24
 22
 84
-72
+55
 68
 49
 4c
@@ -4443,7 +4431,7 @@
 20
 22
 84
-68
+6c
 6f
 e2
 4c
@@ -4451,7 +4439,27 @@
 20
 3a
 04
+6c
 68
+4a
+4c
+6b
+28
+4f
+fe
+1f
+20
+20
+84
+67
+6f
+e2
+4c
+59
+98
+40
+fe
+00
 68
 4a
 4c
@@ -4463,11 +4471,11 @@
 60
 4a
 4c
-6e
+6b
 24
 21
 04
-6b
+6f
 6f
 e1
 c8
@@ -4492,18 +4500,6 @@
 21
 04
 76
-67
-e2
-4c
-6a
-20
-40
-04
-6f
-6f
-e2
-4c
-6a
 20
 40
 7d
@@ -4515,11 +4511,31 @@
 20
 20
 03
-40
+5a
+df
+ff
+ff
+ff
+98
+46
+5e
+00
+6f
+e2
+4c
+59
+9d
+e6
+7e
+00
+20
+20
+04
+5a
 20
 40
 04
-6f
+73
 6f
 e1
 c8
@@ -4527,7 +4543,7 @@
 20
 20
 04
-62
+64
 18
 46
 04
@@ -4543,7 +4559,7 @@
 20
 20
 04
-62
+64
 58
 00
 00
@@ -4551,27 +4567,11 @@
 67
 e2
 4c
-6e
+6b
 20
 60
 00
 00
-6f
-e2
-4c
-59
-68
-4a
-4c
-6e
-98
-40
-fe
-00
-20
-20
-04
-58
 70
 4c
 69
@@ -4580,22 +4580,22 @@
 60
 00
 00
-70
-48
-a6
-00
 58
 00
 00
 00
 67
+e0
+c8
+a6
+67
 e1
 4c
 67
 20
 40
 04
-1f
+12
 6f
 e0
 c8
@@ -4607,15 +4607,15 @@
 24
 2c
 04
-10
+03
 24
 37
 84
-10
+03
 20
 40
 04
-b8
+b7
 20
 40
 26
@@ -4660,26 +4660,18 @@
 e0
 c9
 13
-d8
-40
-00
-40
 20
 40
-60
-93
+3f
+56
 6f
 e0
 c9
 14
-d8
-40
-00
-40
 20
 20
-60
-93
+3f
+56
 6f
 e0
 c8
@@ -4687,7 +4679,7 @@
 20
 5a
 04
-9f
+9e
 6f
 e0
 c8
@@ -4716,10 +4708,14 @@
 4c
 69
 00
+70
+4c
+6a
+01
 20
 40
 04
-f0
+fe
 6f
 e0
 cb
@@ -4791,7 +4787,7 @@
 20
 20
 04
-46
+42
 6f
 e0
 cb
@@ -4843,7 +4839,7 @@
 c0
 00
 84
-ec
+fa
 6f
 e0
 cc
@@ -4851,7 +4847,7 @@
 20
 3a
 04
-ec
+fa
 1b
 22
 7e
@@ -4891,9 +4887,33 @@
 6f
 e2
 4c
+6b
+24
+7a
+00
+00
+6f
+e2
+4c
 59
 68
 4a
+4c
+4e
+18
+43
+84
+00
+98
+46
+7c
+00
+20
+21
+04
+fe
+68
+4a
 cc
 5d
 98
@@ -4919,7 +4939,7 @@
 20
 22
 84
-d0
+d5
 18
 40
 84
@@ -4976,10 +4996,6 @@
 46
 04
 00
-18
-40
-85
-d8
 1a
 22
 7e
@@ -4991,7 +5007,7 @@
 20
 21
 04
-e5
+ee
 1f
 e6
 7e
@@ -5008,6 +5024,26 @@
 40
 84
 00
+6f
+e1
+cc
+64
+da
+20
+18
+00
+9a
+20
+fe
+00
+98
+46
+7c
+00
+24
+21
+04
+f8
 60
 49
 c8
@@ -5028,6 +5064,26 @@
 46
 04
 00
+6f
+e1
+cc
+64
+da
+20
+18
+00
+9a
+26
+7e
+00
+98
+46
+7c
+00
+20
+21
+04
+f8
 60
 49
 c8
@@ -5115,19 +5171,19 @@
 c0
 00
 85
-02
+10
 c0
 01
 05
-04
+12
 c0
 01
 85
-0a
+18
 c0
 02
 05
-10
+1e
 20
 60
 00
@@ -5139,7 +5195,7 @@
 20
 20
 05
-11
+1f
 6f
 e0
 c8
@@ -5147,7 +5203,7 @@
 20
 3a
 05
-08
+16
 6f
 e2
 48
@@ -5163,7 +5219,7 @@
 20
 20
 05
-11
+1f
 70
 47
 c6
@@ -5175,7 +5231,7 @@
 20
 3a
 05
-11
+1f
 6f
 e2
 48
@@ -5187,7 +5243,7 @@
 20
 20
 05
-13
+21
 70
 47
 c6
@@ -5227,7 +5283,7 @@
 20
 40
 04
-1f
+12
 20
 20
 23
@@ -5247,7 +5303,7 @@
 20
 3a
 05
-23
+31
 6f
 e1
 48
@@ -5271,15 +5327,15 @@
 20
 40
 04
-1f
+12
 24
 2c
 05
-3c
+4a
 24
 37
 85
-3c
+4a
 20
 40
 26
@@ -5315,7 +5371,7 @@
 20
 42
 85
-38
+46
 6f
 e0
 c8
@@ -5384,46 +5440,62 @@
 e1
 48
 89
-6f
-e0
-c8
-8a
 2f
 ef
 fe
-01
+09
 6f
 e0
 c8
 8b
 c0
-00
-a5
-ad
-c0
-01
-25
-af
-c0
-01
-a5
-b1
-c0
 02
 05
-49
+53
+20
+20
+25
+a8
+20
+20
+a5
+75
+20
+20
+23
+39
+6f
+e0
+cc
+40
+20
+3a
+48
+c6
 20
 20
-25
-6e
+01
+2e
+6f
+e0
+cc
+40
+20
+3a
+48
+cc
 20
 20
-a5
-75
+01
+29
 20
+40
+04
+3e
 20
-23
-39
+40
+00
+4d
 20
 40
 45
@@ -5436,18 +5508,10 @@
 40
 46
 f4
-6f
-e0
-cc
-40
-c0
-00
-48
-59
 20
 40
-01
-2b
+05
+55
 20
 20
 48
@@ -5468,34 +5532,66 @@
 40
 25
 7e
-6f
-e0
-cc
+20
 40
-c0
-00
 05
-5a
+55
 20
 40
-01
-2b
+45
+44
 20
+40
+42
+ca
+70
+4a
+ae
+00
+70
+48
+a1
+00
+70
+48
+8b
+00
+6f
+e2
+48
+91
+6f
+e2
+48
+8d
+98
+46
+7c
+00
 20
-05
-5b
+62
+80
+00
 20
 40
-48
-c6
+04
+3e
 20
 40
-45
-44
+00
+4d
 20
 20
 48
-4e
+22
+20
+40
+04
+3e
+20
+40
+00
+4d
 6f
 e0
 c8
@@ -5503,7 +5599,7 @@
 24
 3a
 05
-88
+9c
 6f
 e0
 c8
@@ -5511,15 +5607,15 @@
 c0
 01
 05
-64
+7c
 c0
 02
 05
-7c
+90
 c0
 01
 85
-81
+95
 20
 20
 48
@@ -5531,11 +5627,11 @@
 c2
 97
 85
-6d
+85
 c2
 98
 05
-6d
+85
 c3
 1d
 48
@@ -5555,23 +5651,15 @@
 20
 22
 85
-71
+87
 20
 20
 48
 06
-6f
-e0
-cc
-40
-c0
-00
-48
-11
 20
 40
-01
-26
+05
+58
 20
 20
 48
@@ -5604,18 +5692,10 @@
 40
 49
 8e
-6f
-e0
-cc
-40
-c0
-00
-48
-2d
 20
 40
-01
-26
+05
+58
 20
 20
 48
@@ -5627,7 +5707,7 @@
 c3
 17
 85
-86
+9a
 6f
 e0
 cb
@@ -5635,7 +5715,7 @@
 c0
 00
 85
-86
+9a
 20
 20
 48
@@ -5647,15 +5727,15 @@
 c3
 17
 85
-86
+9a
 c2
 89
 85
-86
+9a
 c2
 89
 05
-86
+9a
 20
 20
 48
@@ -5699,11 +5779,11 @@
 20
 40
 01
-b1
+b6
 20
 20
 04
-96
+94
 6f
 e4
 4b
@@ -5716,6 +5796,18 @@
 20
 45
 1f
+da
+60
+4c
+a8
+da
+40
+43
+6c
+20
+20
+31
+8a
 6f
 e1
 47
@@ -5759,7 +5851,7 @@
 c2
 85
 85
-a7
+be
 6f
 e4
 4b
@@ -5767,7 +5859,7 @@
 c3
 04
 05
-a7
+be
 68
 49
 49
@@ -5880,18 +5972,22 @@
 40
 49
 8e
-6f
-e0
-cc
-40
-24
-3a
-01
-26
 20
 20
-48
-cc
+05
+58
+58
+00
+00
+00
+67
+e1
+4a
+c2
+20
+20
+45
+77
 6f
 e4
 4c
@@ -5915,7 +6011,7 @@
 24
 21
 05
-d2
+ea
 d8
 c0
 4c
@@ -5966,8 +6062,8 @@
 5f
 20
 40
-05
-e8
+06
+00
 6f
 e0
 cc
@@ -6071,7 +6167,7 @@
 24
 5a
 01
-2b
+2e
 20
 20
 43
@@ -6084,46 +6180,30 @@
 e1
 4a
 f2
-70
-4a
-c6
-00
-58
-00
-00
-06
 67
-e1
-43
-72
+e0
+cc
+a7
 67
-e1
-43
-74
-6f
-e4
-4b
-ab
-c2
-8d
-c3
-66
-58
-00
-00
-07
+e0
+cc
+a8
+67
+e0
+ca
+c6
 20
 20
 43
-64
+66
 6f
 e0
 ca
 c7
 c0
 00
-85
-fc
+86
+10
 70
 4b
 76
@@ -6139,7 +6219,7 @@
 70
 4b
 76
-05
+0a
 20
 20
 43
@@ -6149,29 +6229,17 @@
 82
 c1
 1f
-e6
-7c
-0c
-24
-21
-43
-84
-67
-e1
-43
-72
-67
-e1
+e6
+7c
+0c
+24
+21
 43
-74
+84
 6f
 e0
 82
 c3
-20
-3a
-43
-9a
 68
 48
 cb
@@ -6190,12 +6258,32 @@
 c3
 67
 e0
-cb
-8a
+c1
+77
 20
 20
 43
 86
+6f
+e0
+cc
+a7
+24
+7a
+00
+00
+70
+4c
+a7
+01
+70
+4c
+a8
+1e
+20
+60
+00
+00
 ef
 e1
 00
@@ -6203,7 +6291,7 @@
 c0
 02
 06
-0f
+25
 20
 20
 19
@@ -6219,11 +6307,11 @@
 c0
 05
 06
-14
+2a
 c0
 09
 06
-23
+39
 20
 20
 1c
@@ -6251,7 +6339,7 @@
 c2
 81
 86
-1e
+34
 6f
 e1
 44
@@ -6279,11 +6367,11 @@
 24
 22
 86
-1a
+30
 24
 34
 06
-1a
+30
 20
 20
 1e
@@ -6348,6 +6436,46 @@
 20
 1e
 10
+78
+54
+7c
+00
+20
+40
+59
+e6
+6f
+e0
+80
+49
+20
+7a
+00
+00
+c2
+83
+d7
+30
+c0
+03
+86
+4f
+20
+20
+57
+01
+20
+40
+58
+5d
+70
+00
+73
+78
+20
+60
+00
+00
 20
 40
 45
@@ -6359,7 +6487,7 @@
 24
 5a
 01
-2b
+2e
 20
 20
 43
@@ -6391,7 +6519,7 @@
 c0
 04
 86
-3e
+5e
 20
 20
 4d
@@ -6444,15 +6572,15 @@
 20
 78
 71
-74
-56
+0f
+29
 aa
 55
 40
 00
 00
 40
-01
+09
 00
 00
 00
@@ -6468,8 +6596,8 @@
 00
 00
 00
-38
-1c
+0c
+0c
 00
 80
 00
@@ -6479,7 +6607,7 @@
 98
 d6
 53
-46
+4e
 06
 01
 00
@@ -6487,7 +6615,7 @@
 00
 00
 00
-00
+04
 01
 00
 18
@@ -6505,7 +6633,7 @@
 00
 00
 0a
-00
+01
 00
 00
 01
@@ -6539,7 +6667,7 @@
 00
 e8
 41
-01
+0a
 aa
 55
 01
@@ -6579,18 +6707,15 @@
 00
 aa
 55
-01
+05
 00
 ea
 41
 ff
-aa
-55
-01
+04
 00
-ee
-41
 00
+08
 aa
 55
 01
@@ -7329,7 +7454,7 @@
 00
 99
 48
-72
+6f
 4c
 aa
 55
@@ -7476,9 +7601,9 @@
 00
 72
 43
-07
+06
 00
-07
+09
 00
 20
 00
@@ -7669,133 +7794,8 @@
 d8
 40
 01
-92
-33
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+56
+2f
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-27
-dd
+96
+96
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/memmap.format	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/memmap.format	(working copy)
@@ -2284,27 +2284,29 @@
 0x4c64 mem_24g_short_sleep_set_init
 0x4c67 mem_retransmit
 0x4c69 mem_sleep_miss
-0x4c6a mem_sleep_time_temp
-0x4c6e mem_sleep_miss_temp
-0x4c72 mem_mouse_end
-0x4c72 mem_mouse_rssi_signal_buf_patch
-0x4c82 mem_mouse_rssi_signal_buf_temp
-0x4c92 mem_soft_agc_en
-0x4c93 mem_xtal_cache
-0x4c94 mem_device_uart_tx_gpio
-0x4c95 mem_device_uart_rx_gpio
-0x4c96 mem_device_uart_rx_buffer
-0x4c98 mem_device_uart_rx_buffer_end
-0x4c9a mem_device_uart_tx_buffer
-0x4c9c mem_device_uart_tx_buffer_end
-0x4c9e mem_device_uart_baud_rate
-0x4ca0 mem_24g_paccnt
-0x4ca1 mem_rssi_mouse
-0x4ca2 mem_clkn_bt_patch
-0x4ca6 mem_txpower_print
-0x4ca8 mem_low_power_led_flag
-0x4ca9 mem_24g_low_power_stop_blink
-0x4caa mem_24g_low_power_led_off
+0x4c6a mem_long_sleep_flag
+0x4c6b mem_sleep_miss_temp
+0x4c6f mem_mouse_end
+0x4c6f mem_mouse_rssi_signal_buf_patch
+0x4c7f mem_mouse_rssi_signal_buf_temp
+0x4c8f mem_xtal_cache
+0x4c90 mem_device_uart_tx_gpio
+0x4c91 mem_device_uart_rx_gpio
+0x4c92 mem_device_uart_rx_buffer
+0x4c94 mem_device_uart_rx_buffer_end
+0x4c96 mem_device_uart_tx_buffer
+0x4c98 mem_device_uart_tx_buffer_end
+0x4c9a mem_device_uart_baud_rate
+0x4c9c mem_24g_paccnt
+0x4c9d mem_rssi_mouse
+0x4c9e mem_clkn_bt_patch
+0x4ca2 mem_txpower_print
+0x4ca4 mem_low_power_led_flag
+0x4ca5 mem_24g_low_power_stop_blink
+0x4ca6 mem_24g_low_power_led_off
+0x4ca7 mem_mouse_le_send_conn_param_update
+0x4ca8 mem_mouse_le_send_conn_param_update_timer
+0x4ca9 mem_normal_tx_power
 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/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/program.lis	(revision 1416)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/program.lis	(working copy)
@@ -1,1546 +1,1558 @@
               include "bt_format "
               org 0x0000
 0000 c284001d bbit1 8 ,pf_patch_ext 
-0001 c0000308 beq patch00_0 ,p_soft_reset 
-0002 c0418362 beq patch10_3 ,p_set_sync_on 
-0003 c0420369 beq patch10_4 ,p_set_freq_rx 
-0004 c042836d beq patch10_5 ,p_rf_rx_enable 
-0005 c0450382 beq patch11_2 ,p_txon_next 
-0006 c0458355 beq patch11_3 ,p_initialize_radio_cont 
-0007 c0460388 beq patch11_4 ,p_save_rssi 
-0008 c057002c beq patch15_6 ,p_app_init 
-0009 c0618092 beq patch18_3 ,p_mouse_start_work 
-000a c06200a7 beq patch18_4 ,p_mouse_start_reconnect_device 
-000b c06380ae beq patch18_7 ,p_mouse_app_enter_hibernate 
-000c c06480b4 beq patch19_1 ,p_mouse_setgpio_hibernate 
-000d c06500f5 beq patch19_2 ,p_mouse_lpm_before_common 
-000e c06600aa beq patch19_4 ,p_mouse_adc_read_start 
-000f c0670068 beq patch19_6 ,p_mouse_motion 
-0010 c0678283 beq patch19_7 ,p_mouse_dpi_process 
-0011 c0680255 beq patch1a_0 ,p_mouse_seting_dpi 
-0012 c06881ba beq patch1a_1 ,p_mouse_check_key_gpio 
-0013 c06a01a5 beq patch1a_4 ,p_mouse_sensor_poweron 
-0014 c06b0088 beq patch1a_6 ,p_mouse_priority_bb_event 
-0015 c06c80fe beq patch1b_1 ,p_mouse_bb_event_timer 
-0016 c06f0081 beq patch1b_6 ,p_mouse_idle 
-0017 c0708338 beq patch1c_1 ,p_mouse_led_off 
-0018 c0710334 beq patch1c_2 ,p_mouse_led_on 
-0019 c06d0594 beq patch1b_2 ,p_mouse_start_discovery 
-001a c04f83c6 beq patch13_7 ,p_init_param 
-001b c0740636 beq patch1d_0 ,p_hid_rx_process 
+0001 c000030f beq patch00_0 ,p_soft_reset 
+0002 c001833b beq patch00_3 ,p_main_loop 
+0003 c041037c beq patch10_2 ,p_shutdown_radio 
+0004 c0418383 beq patch10_3 ,p_set_sync_on 
+0005 c045038a beq patch11_2 ,p_txon_next 
+0006 c045836f beq patch11_3 ,p_initialize_radio_cont 
+0007 c057002e beq patch15_6 ,p_app_init 
+0008 c0618094 beq patch18_3 ,p_mouse_start_work 
+0009 c06200ac beq patch18_4 ,p_mouse_start_reconnect_device 
+000a c06380b3 beq patch18_7 ,p_mouse_app_enter_hibernate 
+000b c06480b9 beq patch19_1 ,p_mouse_setgpio_hibernate 
+000c c06500f9 beq patch19_2 ,p_mouse_lpm_before_common 
+000d c06600af beq patch19_4 ,p_mouse_adc_read_start 
+000e c0670069 beq patch19_6 ,p_mouse_motion 
+000f c067828a beq patch19_7 ,p_mouse_dpi_process 
+0010 c068025c beq patch1a_0 ,p_mouse_seting_dpi 
+0011 c06881bf beq patch1a_1 ,p_mouse_check_key_gpio 
+0012 c06a01aa beq patch1a_4 ,p_mouse_sensor_poweron 
+0013 c06b0089 beq patch1a_6 ,p_mouse_priority_bb_event 
+0014 c06c8101 beq patch1b_1 ,p_mouse_bb_event_timer 
+0015 c06f0082 beq patch1b_6 ,p_mouse_idle 
+0016 c0708352 beq patch1c_1 ,p_mouse_led_off 
+0017 c071034e beq patch1c_2 ,p_mouse_led_on 
+0018 c06d05ab beq patch1b_2 ,p_mouse_start_discovery 
+0019 c06d85d5 beq patch1b_3 ,p_mouse_stop_discovery 
+001a c04f83bc beq patch13_7 ,p_init_param 
+001b c0740656 beq patch1d_0 ,p_hid_rx_process 
 001c 2020137c branch loop 
 
 pf_patch_ext:
-001d c0100086 beq patch24_0 ,p_twspi_reset 
-001e c01983a2 beq patch26_3 ,p_adc_init_data 
-001f c01a03a7 beq patch26_4 ,p_enable_adc 
-0020 c04383c2 beq patch30_7 ,p_ui_timer_check 
-0021 c06e8440 beq patch3b_5 ,p_g24_dispatch 
-0022 c06f03f4 beq patch3b_6 ,p_g24_receive_packet 
-0023 c07083d4 beq patch3c_1 ,p_g24_transmit 
-0024 c07104f4 beq patch3c_2 ,p_g24_pair_dispatch 
-0025 c074851b beq patch3d_1 ,p_g24_reconn_dispatch 
-0026 c0750444 beq patch3d_2 ,p_g24_transmit_no_interrupt 
-0027 c07604ad beq patch3d_4 ,p_g24_lpm_wait 
-0028 c05083c8 beq patch34_1 ,p_le_slave_match 
-0029 c05183d2 beq patch34_3 ,p_le_slave_unsync 
-002a c060060c beq patch38_0 ,p_le_parse_l2cap 
-002b 2020137c branch loop 
+001d c0100087 beq patch24_0 ,p_twspi_reset 
+001e c0198391 beq patch26_3 ,p_adc_init_data 
+001f c01a0396 beq patch26_4 ,p_enable_adc 
+0020 c04383b1 beq patch30_7 ,p_ui_timer_check 
+0021 c05403b5 beq patch35_0 ,p_le_enable_phy_by_pdata 
+0022 c06e8432 beq patch3b_5 ,p_g24_dispatch 
+0023 c06f03ea beq patch3b_6 ,p_g24_receive_packet 
+0024 c07083ca beq patch3c_1 ,p_g24_transmit 
+0025 c0710502 beq patch3c_2 ,p_g24_pair_dispatch 
+0026 c0748529 beq patch3d_1 ,p_g24_reconn_dispatch 
+0027 c0750440 beq patch3d_2 ,p_g24_transmit_no_interrupt 
+0028 c07604ac beq patch3d_4 ,p_g24_lpm_wait 
+0029 c00d0648 beq patch23_2 ,p_send_lmp 
+002a c05083be beq patch34_1 ,p_le_slave_match 
+002b c05183c8 beq patch34_3 ,p_le_slave_unsync 
+002c c0600622 beq patch38_0 ,p_le_parse_l2cap 
+002d 2020137c branch loop 
 
 p_app_init:
-002c 793f8034 set0 mark_adc_enable ,mark 
-002d 245585c0 ncall p_mouse_le_name_load ,wake 
-002e 20406df3 call enable_authrom 
-002f 2040003c call p_mouse_setting_config 
-0030 204041a7 call mouse_init_sunt 
-0031 20758000 rtn wake 
-0032 204002b3 call p_g24_report 
-0033 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-0034 67e1cc64 store 3 ,mem_24g_short_sleep_set_init 
-0035 204004f0 call p_send_time_long_wake 
-0036 2040408e call mouse_dpi_config 
-0037 20403d8a call mouse_usb_check_enable 
-0038 20404728 call mouse_drawing_optima_init 
-0039 20400063 call p_mouse_cb_fuction 
-003a 204001b1 call p_mouse_sensor_powerdown 
-003b 20203bc9 branch mouse_init + 8 
+002e 793f8034 set0 mark_adc_enable ,mark 
+002f 20406df3 call enable_authrom 
+0030 20400039 call p_mouse_setting_config 
+0031 204041a7 call mouse_init_sunt 
+0032 20758000 rtn wake 
+0033 2040408e call mouse_dpi_config 
+0034 20403d8a call mouse_usb_check_enable 
+0035 20404728 call mouse_drawing_optima_init 
+0036 20400064 call p_mouse_cb_fuction 
+0037 204001b6 call p_mouse_sensor_powerdown 
+0038 20203bc9 branch mouse_init + 8 
 
 p_mouse_setting_config:
-003c 20758000 rtn wake 
-003d 20402607 call g24_transmit_init 
-003e d8400358 arg 0x358 ,temp 
-003f 60494838 storet 2 ,mem_24g_rx_window 
-0040 204022ff call g24_chmap_param_init 
-0041 20400060 call p_mouse_gpio_init 
-0042 20403d13 call mouse_param_init 
-0043 2040004b call p_mouse_select_angle 
-0044 20400121 call p_mouse_device_multi_led_poweron2s_init 
-0045 2040027b call p_mouse_double_dpi_judge 
-0046 204002c0 call p_g24_short_sleep_set_8ms 
-0047 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0048 c30c3bf5 bbit0 mouse_enable_24g_250hz ,mouse_setting_config_next 
-0049 204002c3 call p_g24_short_sleep_set_4ms 
-004a 20203bf5 branch mouse_setting_config_next 
+0039 20758000 rtn wake 
+003a 20402607 call g24_transmit_init 
+003b d8400358 arg 0x358 ,temp 
+003c 60494838 storet 2 ,mem_24g_rx_window 
+003d 204022ff call g24_chmap_param_init 
+003e 204004fe call p_send_time_long_wake 
+003f 20403f1e call mouse_gpio_init 
+0040 204005d8 call p_mouse_le_name_load 
+0041 20403d13 call mouse_param_init 
+0042 20400050 call p_mouse_select_angle 
+0043 204002ba call p_mouse_g24_report_setting 
+0044 20400170 call p_mouse_logo_led_off 
+0045 20400163 call p_mouse_1io2led_all_off 
+0046 20400124 call p_mouse_device_multi_led_poweron2s_init 
+0047 20400282 call p_mouse_double_dpi_judge 
+0048 2040004a call p_mouse_store_normal_tx_power 
+0049 20203bf5 branch mouse_setting_config + 5 
+
+p_mouse_store_normal_tx_power:
+004a 6fe0c1e8 fetch 1 ,mem_tx_power 
+004b 67e0cca9 store 1 ,mem_normal_tx_power 
+004c 20600000 rtn 
+
+p_mouse_fetch_normal_tx_power:
+004d 6fe0cca9 fetch 1 ,mem_normal_tx_power 
+004e 67e0c1e8 store 1 ,mem_tx_power 
+004f 20600000 rtn 
 
 p_mouse_select_angle:
-004b 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-004c c17f8000 rtneq gpio_disable 
-004d 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-004e d8400040 arg gpcfg_pullup ,temp 
-004f 20406093 call gpio_config_function_int 
-0050 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-0051 20406059 call gpio_get_bit 
-0052 2020805a branch p_mouse_set_sensor_angle_gnd ,true 
-0053 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0054 d8400080 arg gpcfg_pulldown ,temp 
-0055 20406093 call gpio_config_function_int 
-0056 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-0057 20406059 call gpio_get_bit 
-0058 2020805c branch p_mouse_set_sensor_angle_float ,true 
-0059 2020005e branch p_mouse_set_sensor_angle_vin 
+0050 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0051 c17f8000 rtneq gpio_disable 
+0052 d8400040 arg gpcfg_pullup ,temp 
+0053 20406093 call gpio_config_function_int 
+0054 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+0055 20406059 call gpio_get_bit 
+0056 2020805e branch p_mouse_set_sensor_angle_gnd ,true 
+0057 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0058 d8400080 arg gpcfg_pulldown ,temp 
+0059 20406093 call gpio_config_function_int 
+005a 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+005b 20406059 call gpio_get_bit 
+005c 20208060 branch p_mouse_set_sensor_angle_float ,true 
+005d 20200062 branch p_mouse_set_sensor_angle_vin 
 
 p_mouse_set_sensor_angle_gnd:
-005a 70492803 jam mouse_3clk_angle ,mem_config_sensor_angle 
-005b 20600000 rtn 
+005e 70492803 jam mouse_3clk_angle ,mem_config_sensor_angle 
+005f 20600000 rtn 
 
 p_mouse_set_sensor_angle_float:
-005c 70492800 jam mouse_6clk_angle ,mem_config_sensor_angle 
-005d 20600000 rtn 
+0060 70492800 jam mouse_6clk_angle ,mem_config_sensor_angle 
+0061 20600000 rtn 
 
 p_mouse_set_sensor_angle_vin:
-005e 70492802 jam mouse_12clk_angle ,mem_config_sensor_angle 
-005f 20600000 rtn 
-
-p_mouse_gpio_init:
-0060 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-0061 245a015e ncall p_mouse_1io2led_all_off ,blank 
-0062 20203f1e branch mouse_gpio_init 
+0062 70492802 jam mouse_12clk_angle ,mem_config_sensor_angle 
+0063 20600000 rtn 
 
 p_mouse_cb_fuction:
-0063 580002c6 setarg p_mouse_24g_package_data 
-0064 67e1489b store 2 ,mem_cb_24g_transmit_data 
-0065 580002e2 setarg p_mouse_24g_search_dongle 
-0066 67e1489d store 2 ,mem_cb_24g_search_receiver 
-0067 20203bd3 branch mouse_cb_fuction + 4 
+0064 580002ca setarg p_mouse_24g_package_data 
+0065 67e1489b store 2 ,mem_cb_24g_transmit_data 
+0066 580002e9 setarg p_mouse_24g_search_dongle 
+0067 67e1489d store 2 ,mem_cb_24g_search_receiver 
+0068 20203bd3 branch mouse_cb_fuction + 4 
 
 p_mouse_motion:
-0068 78547c00 disable user 
-0069 58000000 setarg 0 
-006a 67e348d1 store 6 ,mem_mouse_x 
-006b 20404240 call mouse_check_sensor_data 
-006c 58000089 setarg 0x0089 
-006d 20405b0c call twspi_write 
-006e 2040408e call mouse_dpi_config 
-006f 20403f7e call mouse_zwheel 
-0070 20403f83 call mouse_t_zwheel 
-0071 204001b8 call p_mouse_key 
-0072 6fe0c8d0 fetch 1 ,mem_mouse_key 
-0073 1fe17e1f and_into 0x1f ,pdata 
-0074 67e0c8d0 store 1 ,mem_mouse_key 
-0075 2434007c nbranch p_mouse_low_power_led_delay_off ,user 
-0076 20400079 call p_mouse_work_state_flag 
-0077 204001a2 call p_mouse_drawing_optima 
-0078 20204544 branch mouse_no_data_timer_init 
+0069 78547c00 disable user 
+006a 58000000 setarg 0 
+006b 67e348d1 store 6 ,mem_mouse_x 
+006c 20404240 call mouse_check_sensor_data 
+006d 58000089 setarg 0x0089 
+006e 20405b0c call twspi_write 
+006f 2040408e call mouse_dpi_config 
+0070 20403f7e call mouse_zwheel 
+0071 20403f83 call mouse_t_zwheel 
+0072 204001bd call p_mouse_key 
+0073 6fe0c8d0 fetch 1 ,mem_mouse_key 
+0074 1fe17e1f and_into 0x1f ,pdata 
+0075 67e0c8d0 store 1 ,mem_mouse_key 
+0076 2434007d nbranch p_mouse_low_power_led_delay_off ,user 
+0077 2040007a call p_mouse_work_state_flag 
+0078 204001a7 call p_mouse_drawing_optima 
+0079 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_work_state_flag:
-0079 704ca800 jam 0 ,mem_low_power_led_flag 
-007a 704ca900 jam 0 ,mem_24g_low_power_stop_blink 
-007b 20600000 rtn 
+007a 704ca400 jam 0 ,mem_low_power_led_flag 
+007b 704ca500 jam 0 ,mem_24g_low_power_stop_blink 
+007c 20600000 rtn 
 
 p_mouse_low_power_led_delay_off:
-007c 20404728 call mouse_drawing_optima_init 
-007d 6fe0cca9 fetch 1 ,mem_24g_low_power_stop_blink 
-007e 247a0000 nrtn blank 
-007f 704ca964 jam 0x64 ,mem_24g_low_power_stop_blink 
-0080 20600000 rtn 
+007d 20404728 call mouse_drawing_optima_init 
+007e 6fe0cca5 fetch 1 ,mem_24g_low_power_stop_blink 
+007f 247a0000 nrtn blank 
+0080 704ca564 jam 0x64 ,mem_24g_low_power_stop_blink 
+0081 20600000 rtn 
 
 p_mouse_idle:
-0081 20404990 call mouse_low_voltage_led_no_enter_lpm 
-0082 20407936 call ui_check_paring_button 
-0083 204001f0 call p_mouse_dpi_check 
-0084 20400204 call p_mouse_dpi_another_gpio_check 
-0085 2020464f branch mouse_idle + 4 
+0082 20404990 call mouse_low_voltage_led_no_enter_lpm 
+0083 20407936 call ui_check_paring_button 
+0084 204001f7 call p_mouse_dpi_check 
+0085 2040020b call p_mouse_dpi_another_gpio_check 
+0086 2020464f branch mouse_idle + 4 
 
 p_twspi_reset:
-0086 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0087 20205af8 branch twspi_reset + 1 
+0087 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+0088 20205af8 branch twspi_reset + 1 
 
 p_mouse_priority_bb_event:
-0088 1a627e00 copy regc ,pdata 
-0089 c01e0552 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-008a c01c854b beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-008b c01d055d beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-008c c01905f8 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-008d c02205ff beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-008e c00a85ee beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-008f c00a05eb beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
-0090 c0008632 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
-0091 20204336 branch mouse_priority_bb_event + 2 
+0089 1a627e00 copy regc ,pdata 
+008a c01e0562 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+008b c01c855b beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+008c c01d0573 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+008d c019060c beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+008e c00a8606 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+008f c00a0603 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
+0090 c0220613 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+0091 c020061d beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
+0092 c0008652 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
+0093 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_start_work:
-0092 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0093 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-0094 6fe0c938 fetch 1 ,mem_device_flag 
-0095 c0000097 beq mode_24g_device ,p_mouse_24g_start_mode 
-0096 20203d57 branch mouse_start_work + 5 
+0094 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0095 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+0096 6fe0c938 fetch 1 ,mem_device_flag 
+0097 c0000099 beq mode_24g_device ,p_mouse_24g_start_mode 
+0098 20203d57 branch mouse_start_work + 5 
 
 p_mouse_24g_start_mode:
-0097 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0098 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-0099 20403d65 call mouse_wakeup_from_power_check 
-009a 203400a1 branch p_mouse_24g_reconn_dongle_start ,user 
-009b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-009c c29800a4 bbit1 mouse_enable_auto_24g_paring ,p_mouse_24g_reconn_general_dongle 
-009d c31880a4 bbit0 mouse_enable_24g_power_on_pairing ,p_mouse_24g_reconn_general_dongle 
-009e 20404110 call mouse_key_check_once 
-009f 1a217e07 and rega ,0x07 ,pdata 
-00a0 202047ff branch mouse_24g_start_mode + 9 
+0099 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+009a c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+009b 20403d65 call mouse_wakeup_from_power_check 
+009c 203400a6 branch p_mouse_24g_reconn_dongle_start ,user 
+009d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+009e c29800a9 bbit1 mouse_enable_auto_24g_paring ,p_mouse_24g_reconn_general_dongle 
+009f c31880a9 bbit0 mouse_enable_24g_power_on_pairing ,p_mouse_24g_reconn_general_dongle 
+00a0 20404110 call mouse_key_check_once 
+00a1 1a217e07 and rega ,0x07 ,pdata 
+00a2 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+00a3 98467c00 isub temp ,null 
+00a4 2022c827 branch mouse_24g_start_pair_mode ,zero 
+00a5 202000a9 branch p_mouse_24g_reconn_general_dongle 
 
 p_mouse_24g_reconn_dongle_start:
-00a1 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-00a2 245a0126 ncall p_mouse_multi_led_blink_enable ,blank 
-00a3 20204806 branch mouse_24g_reconn_dongle_start 
+00a6 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
+00a7 245a0129 ncall p_mouse_multi_led_blink_enable ,blank 
+00a8 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_reconn_general_dongle:
-00a4 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-00a5 245a0126 ncall p_mouse_multi_led_blink_enable ,blank 
-00a6 2020480c branch mouse_24g_reconn_general_dongle 
+00a9 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
+00aa 245a0129 ncall p_mouse_multi_led_blink_enable ,blank 
+00ab 2020480c branch mouse_24g_reconn_general_dongle 
 
 p_mouse_start_reconnect_device:
-00a7 6fe0cc42 fetch 1 ,mem_mouse_bt_led_recon_effect_flag 
-00a8 245a0126 ncall p_mouse_multi_led_blink_enable ,blank 
-00a9 20203d5a branch mouse_start_reconnect_device + 1 
+00ac 6fe0cc42 fetch 1 ,mem_mouse_bt_led_recon_effect_flag 
+00ad 245a0129 ncall p_mouse_multi_led_blink_enable ,blank 
+00ae 20203d5a branch mouse_start_reconnect_device + 1 
 
 p_mouse_adc_read_start:
-00aa 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-00ab 247a0000 nrtn blank 
-00ac 204003a7 call p_enable_adc 
-00ad 20203ebb branch mouse_adc_read_start + 3 
+00af 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+00b0 247a0000 nrtn blank 
+00b1 20400396 call p_enable_adc 
+00b2 20203ebb branch mouse_adc_read_start + 3 
 
 p_mouse_app_enter_hibernate:
-00ae 58000006 setarg pan_reg_config 
-00af 20405b0d call twspi_read 
-00b0 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-00b1 204001ac call p_mouse_sensor_reset 
-00b2 204001b1 call p_mouse_sensor_powerdown 
-00b3 20203e23 branch mouse_app_enter_hibernate + 3 
+00b3 58000006 setarg pan_reg_config 
+00b4 20405b0d call twspi_read 
+00b5 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+00b6 204001b1 call p_mouse_sensor_reset 
+00b7 204001b6 call p_mouse_sensor_powerdown 
+00b8 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
-00b4 204042e9 call mouse_set_sdio_high 
-00b5 20407fdc call clear_wake 
-00b6 2040016b call p_mouse_logo_led_off 
-00b7 2040015e call p_mouse_1io2led_all_off 
-00b8 20404015 call mouse_before_hibernate_wheel_gpio_set 
-00b9 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00ba 20406069 call gpio_out_active 
-00bb 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00bc 20406042 call gpio_clr_wake 
-00bd 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-00be d840003f arg gpcfg_output_high ,temp 
-00bf 20406093 call gpio_config_function_int 
-00c0 d8400003 arg 3 ,temp 
-00c1 20403f56 call mouse_gpio_config_input_pu 
-00c2 20403e40 call mouse_lpm_before_common 
-00c3 20406082 call gpio_pd_idle 
-00c4 d8400013 arg 19 ,temp 
+00b9 204042e9 call mouse_set_sdio_high 
+00ba 20407fdc call clear_wake 
+00bb 20400170 call p_mouse_logo_led_off 
+00bc 20400163 call p_mouse_1io2led_all_off 
+00bd 20404015 call mouse_before_hibernate_wheel_gpio_set 
+00be 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00bf 20406069 call gpio_out_active 
+00c0 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00c1 20406042 call gpio_clr_wake 
+00c2 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+00c3 204001f1 call p_mouse_gpio_config_output_high 
+00c4 d8400003 arg 3 ,temp 
 00c5 20403f56 call mouse_gpio_config_input_pu 
-00c6 204000ca call p_mouse_set_sensor_gpio_sleep 
-00c7 204000d5 call p_mouse_gpio_set_high_impedance 
-00c8 204000e2 call p_mouse_adc_gpio_set_before_hibernate 
-00c9 202000e9 branch p_mouse_wheel_gpio_set_before_hibernate 
+00c6 20403e40 call mouse_lpm_before_common 
+00c7 20406082 call gpio_pd_idle 
+00c8 d8400013 arg 19 ,temp 
+00c9 20403f56 call mouse_gpio_config_input_pu 
+00ca 204000ce call p_mouse_set_sensor_gpio_sleep 
+00cb 204000d9 call p_mouse_gpio_set_high_impedance 
+00cc 204000e6 call p_mouse_adc_gpio_set_before_hibernate 
+00cd 202000ed branch p_mouse_wheel_gpio_set_before_hibernate 
 
 p_mouse_set_sensor_gpio_sleep:
-00ca 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-00cb c17f8000 rtneq gpio_disable 
-00cc 6fe0c928 fetch 1 ,mem_config_sensor_angle 
-00cd c00180d0 beq mouse_3clk_angle ,p_mouse_set_sensor_gnd_low_level 
-00ce c00100d2 beq mouse_12clk_angle ,p_mouse_set_sensor_float_high_level 
-00cf 20600000 rtn 
+00ce 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+00cf c17f8000 rtneq gpio_disable 
+00d0 6fe0c928 fetch 1 ,mem_config_sensor_angle 
+00d1 c00180d4 beq mouse_3clk_angle ,p_mouse_set_sensor_gnd_low_level 
+00d2 c00100d6 beq mouse_12clk_angle ,p_mouse_set_sensor_float_high_level 
+00d3 20600000 rtn 
 
 p_mouse_set_sensor_gnd_low_level:
-00d0 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-00d1 20206069 branch gpio_out_active 
+00d4 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+00d5 20206069 branch gpio_out_active 
 
 p_mouse_set_sensor_float_high_level:
-00d2 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-00d3 1fe18480 or pdata ,0x80 ,temp 
-00d4 20206069 branch gpio_out_active 
+00d6 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+00d7 1fe18480 or pdata ,0x80 ,temp 
+00d8 20206069 branch gpio_out_active 
 
 p_mouse_gpio_set_high_impedance:
-00d5 6fe1cbde fetch 3 ,mem_mouse_set_high_impedance_bit_set 
-00d6 67e1895c store 3 ,mem_pdatatemp 
-00d7 df200014 arg 20 ,loopcnt 
-00d8 d8400000 arg 0 ,temp 
+00d9 6fe1cbde fetch 3 ,mem_mouse_set_high_impedance_bit_set 
+00da 67e1895c store 3 ,mem_pdatatemp 
+00db df200014 arg 20 ,loopcnt 
+00dc d8400000 arg 0 ,temp 
 
 p_mouse_gpio_set_high_impedance_bit_loop:
-00d9 6fe1895c fetch 3 ,mem_pdatatemp 
-00da 2feffe00 isolate1 0 ,pdata 
-00db 2040e07f call gpio_set_high_impedance ,true 
-00dc 6fe1895c fetch 3 ,mem_pdatatemp 
-00dd 1fe37e00 rshift pdata ,pdata 
-00de 67e1895c store 3 ,mem_pdatatemp 
-00df 18408401 increase 1 ,temp 
-00e0 c20000d9 loop p_mouse_gpio_set_high_impedance_bit_loop 
-00e1 20600000 rtn 
+00dd 6fe1895c fetch 3 ,mem_pdatatemp 
+00de 2feffe00 isolate1 0 ,pdata 
+00df 2040e07f call gpio_set_high_impedance ,true 
+00e0 6fe1895c fetch 3 ,mem_pdatatemp 
+00e1 1fe37e00 rshift pdata ,pdata 
+00e2 67e1895c store 3 ,mem_pdatatemp 
+00e3 18408401 increase 1 ,temp 
+00e4 c20000dd loop p_mouse_gpio_set_high_impedance_bit_loop 
+00e5 20600000 rtn 
 
 p_mouse_adc_gpio_set_before_hibernate:
-00e2 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00e3 c40a0000 rtnbit0 mouse_enable_adc 
-00e4 6fe0c8fd fetch 1 ,mem_adc_config_flag_init 
-00e5 c1810000 rtnne adc_config_gpio 
-00e6 6fe0c8fc fetch 1 ,mem_adc_channel_gpio 
-00e7 d84000c0 arg gpcfg_no_ie ,temp 
-00e8 20206093 branch gpio_config_function_int 
+00e6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00e7 c40a0000 rtnbit0 mouse_enable_adc 
+00e8 6fe0c8fd fetch 1 ,mem_adc_config_flag_init 
+00e9 c1810000 rtnne adc_config_gpio 
+00ea 6fe0c8fc fetch 1 ,mem_adc_channel_gpio 
+00eb d84000c0 arg gpcfg_no_ie ,temp 
+00ec 20206093 branch gpio_config_function_int 
 
 p_mouse_wheel_gpio_set_before_hibernate:
-00e9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00ea c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
+00ed 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00ee c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
 
 p_mouse_wheel_clr_wakeup:
-00eb 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-00ec 20406042 call gpio_clr_wake 
-00ed 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-00ee 20406042 call gpio_clr_wake 
-00ef 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-00f0 d8400080 arg gpcfg_pulldown ,temp 
-00f1 20406093 call gpio_config_function_int 
-00f2 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
-00f3 d8400080 arg gpcfg_pulldown ,temp 
-00f4 20206093 branch gpio_config_function_int 
+00ef 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+00f0 20406042 call gpio_clr_wake 
+00f1 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+00f2 20406042 call gpio_clr_wake 
+00f3 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
+00f4 20403f54 call mouse_gpio_config_input_pd 
+00f5 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+00f6 20203f54 branch mouse_gpio_config_input_pd 
+
+p_mouse_short_sleep_clear_wake:
+00f7 20407fdc call clear_wake 
+00f8 202015b1 branch lpm_write_gpio_wakeup 
 
 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 
+00f9 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+00fa 20406050 call gpio_config_input 
+00fb 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+00fc 20406050 call gpio_config_input 
+00fd 20403f88 call mouse_wheel_check 
+00fe 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+00ff 204001f1 call p_mouse_gpio_config_output_high 
+0100 20203e44 branch mouse_lpm_before_common + 4 
 
 p_mouse_bb_event_timer:
-00fe 20403e9b call mouse_adc_read 
-00ff 2040019f call p_mouse_low_power_timer 
-0100 2040232b call g24_pair_timeout_timer 
-0101 20402556 call g24_reconn_timeout_timer 
-0102 204047cd call mouse_24g_long_sleep_param_update_timer 
-0103 204048be call mouse_device_poweron_timer 
-0104 20400171 call p_mouse_dpi_led_blink_delay_timer 
-0105 2040012f call p_mouse_led_multi_timer 
-0106 20400161 call p_mouse_logo_led_on_timer 
-0107 2040407c call mouse_dpi_key_check_long_press 
-0108 204044cc call mouse_bt_discovery_check 
-0109 20400174 call p_mouse_commbination_key_process 
-010a 204044ff call mouse_check_discovery_timeout_timer 
-010b 20400191 call p_mouse_24g_low_power_stop_blink_timer 
-010c 20400197 call p_mouse_24g_low_power_led_off_timer 
-010d 20404504 call mouse_check_direct_timeout_timer 
-010e 20404512 call mouse_le_enable_att_list_timer 
-010f 20400591 call p_mouse_le_battery_updata_timer 
-0110 20404515 call mouse_le_send_smp_security_request_timer 
-0111 2040452a call mouse_check_hid_handshake_timer 
-0112 2040452d call mouse_bt_check_sniff_req_timeout_timer 
-0113 20404532 call mouse_check_reconnect_delay_long_sleep 
-0114 20404535 call mouse_current_mult_update_timer 
-0115 20404022 call mouse_wheel_trigger_timer 
-0116 20400118 call p_mouse_store_information_delay_timer 
-0117 2020018b branch p_mouse_check_no_data_timeout_timer 
+0101 20403e9b call mouse_adc_read 
+0102 204001a4 call p_mouse_low_power_timer 
+0103 2040232b call g24_pair_timeout_timer 
+0104 20402556 call g24_reconn_timeout_timer 
+0105 204047cd call mouse_24g_long_sleep_param_update_timer 
+0106 204048be call mouse_device_poweron_timer 
+0107 20400176 call p_mouse_dpi_led_blink_delay_timer 
+0108 20400132 call p_mouse_led_multi_timer 
+0109 20400166 call p_mouse_logo_led_on_timer 
+010a 2040407c call mouse_dpi_key_check_long_press 
+010b 204044cc call mouse_bt_discovery_check 
+010c 20400179 call p_mouse_commbination_key_process 
+010d 204044ff call mouse_check_discovery_timeout_timer 
+010e 20400196 call p_mouse_24g_low_power_stop_blink_timer 
+010f 2040019c call p_mouse_24g_low_power_led_off_timer 
+0110 20404504 call mouse_check_direct_timeout_timer 
+0111 20404512 call mouse_le_enable_att_list_timer 
+0112 204005a5 call p_mouse_le_battery_updata_timer 
+0113 20404515 call mouse_le_send_smp_security_request_timer 
+0114 204005a8 call p_mouse_le_send_conn_param_update_timer 
+0115 2040452a call mouse_check_hid_handshake_timer 
+0116 2040452d call mouse_bt_check_sniff_req_timeout_timer 
+0117 20404532 call mouse_check_reconnect_delay_long_sleep 
+0118 20404535 call mouse_current_mult_update_timer 
+0119 20404022 call mouse_wheel_trigger_timer 
+011a 2040011c call p_mouse_store_information_delay_timer 
+011b 20200190 branch p_mouse_check_no_data_timeout_timer 
 
 p_mouse_store_information_delay_timer:
-0118 da6049bf arg mem_store_information_delay_timer ,regc 
-0119 da40011b arg p_mouse_store_device_info_check ,regb 
-011a 2020318a branch timer_single_step 
+011c da6049bf arg mem_store_information_delay_timer ,regc 
+011d da40011f arg p_mouse_store_device_info_check ,regb 
+011e 2020318a branch timer_single_step 
 
 p_mouse_store_device_info_check:
-011b 204045f1 call mouse_store_device_info 
-011c 6fe0cac5 fetch 1 ,mem_mouse_need_soft_reset 
-011d 243a011f nbranch p_mouse_soft_reset ,blank 
-011e 20600000 rtn 
+011f 204045f1 call mouse_store_device_info 
+0120 6fe0cac5 fetch 1 ,mem_mouse_need_soft_reset 
+0121 207a0000 rtn blank 
 
 p_mouse_soft_reset:
-011f 20400326 call p_enable_rc_clock 
-0120 202046c0 branch mouse_soft_reset 
+0122 2040032d call p_enable_rc_clock 
+0123 202046c0 branch mouse_soft_reset 
 
 p_mouse_device_multi_led_poweron2s_init:
-0121 6fe0cc46 fetch 1 ,mem_mouse_multi_led_powon2s_timer_init 
-0122 67e0cc47 store 1 ,mem_mouse_multi_led_powon2s_timer 
-0123 6fe0cc44 fetch 1 ,mem_mouse_multi_led_poweron2s_flag_init 
-0124 67e0cc45 store 1 ,mem_mouse_multi_led_poweron2s_flag 
-0125 20600000 rtn 
+0124 6fe0cc46 fetch 1 ,mem_mouse_multi_led_powon2s_timer_init 
+0125 67e0cc47 store 1 ,mem_mouse_multi_led_powon2s_timer 
+0126 6fe0cc44 fetch 1 ,mem_mouse_multi_led_poweron2s_flag_init 
+0127 67e0cc45 store 1 ,mem_mouse_multi_led_poweron2s_flag 
+0128 20600000 rtn 
 
 p_mouse_multi_led_blink_enable:
-0126 704c4101 jam 1 ,mem_mouse_multi_led_blink_enable 
-0127 704c4301 jam multi_led_blink ,mem_mouse_multi_led_type 
-0128 6fe0cc4b fetch 1 ,mem_mouse_multi_led_blink_timer_init 
-0129 67e0cc4c store 1 ,mem_mouse_multi_led_blink_timer 
-012a 20600000 rtn 
+0129 704c4101 jam 1 ,mem_mouse_multi_led_blink_enable 
+012a 704c4301 jam multi_led_blink ,mem_mouse_multi_led_type 
+012b 6fe0cc4b fetch 1 ,mem_mouse_multi_led_blink_timer_init 
+012c 67e0cc4c store 1 ,mem_mouse_multi_led_blink_timer 
+012d 20600000 rtn 
 
 p_mouse_multi_led_on_enable:
-012b 704c4101 jam 1 ,mem_mouse_multi_led_blink_enable 
-012c 704c4c00 jam 0 ,mem_mouse_multi_led_blink_timer 
-012d 704c4300 jam multi_led_on ,mem_mouse_multi_led_type 
-012e 20600000 rtn 
+012e 704c4101 jam 1 ,mem_mouse_multi_led_blink_enable 
+012f 704c4c00 jam 0 ,mem_mouse_multi_led_blink_timer 
+0130 704c4300 jam multi_led_on ,mem_mouse_multi_led_type 
+0131 20600000 rtn 
 
 p_mouse_led_multi_timer:
-012f 6fe0cc41 fetch 1 ,mem_mouse_multi_led_blink_enable 
-0130 207a0000 rtn blank 
-0131 6fe0cc43 fetch 1 ,mem_mouse_multi_led_type 
-0132 c000813f beq multi_led_blink ,p_mouse_multi_led_type_blink 
+0132 6fe0cc41 fetch 1 ,mem_mouse_multi_led_blink_enable 
+0133 207a0000 rtn blank 
+0134 6fe0cc43 fetch 1 ,mem_mouse_multi_led_type 
+0135 c0008142 beq multi_led_blink ,p_mouse_multi_led_type_blink 
 
 p_mouse_multi_led_type_on:
-0133 6fe0cc45 fetch 1 ,mem_mouse_multi_led_poweron2s_flag 
-0134 243a0137 nbranch p_mouse_device_multi_led_poweron2s ,blank 
-0135 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
-0136 20600000 rtn 
+0136 6fe0cc45 fetch 1 ,mem_mouse_multi_led_poweron2s_flag 
+0137 243a013a nbranch p_mouse_device_multi_led_poweron2s ,blank 
+0138 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
+0139 20600000 rtn 
 
 p_mouse_device_multi_led_poweron2s:
-0137 6fe0cc47 fetch 1 ,mem_mouse_multi_led_powon2s_timer 
-0138 203a013c branch p_mouse_multi_led_poweron2s_and_flag_off ,blank 
-0139 1fe0ffff increase -1 
-013a 67e0cc47 store 1 ,mem_mouse_multi_led_powon2s_timer 
-013b 20200146 branch p_mouse_device_multi_led_on 
+013a 6fe0cc47 fetch 1 ,mem_mouse_multi_led_powon2s_timer 
+013b 203a013f branch p_mouse_multi_led_poweron2s_and_flag_off ,blank 
+013c 1fe0ffff increase -1 
+013d 67e0cc47 store 1 ,mem_mouse_multi_led_powon2s_timer 
+013e 20200149 branch p_mouse_device_multi_led_on 
 
 p_mouse_multi_led_poweron2s_and_flag_off:
-013c 704c4500 jam 0 ,mem_mouse_multi_led_poweron2s_flag 
-013d 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
-013e 20200152 branch p_mouse_device_multi_led_off 
+013f 704c4500 jam 0 ,mem_mouse_multi_led_poweron2s_flag 
+0140 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
+0141 20200155 branch p_mouse_device_multi_led_off 
 
 p_mouse_multi_led_type_blink:
-013f da604c4c arg mem_mouse_multi_led_blink_timer ,regc 
-0140 da400142 arg p_mouse_multi_led_type_blink_timeout ,regb 
-0141 2020318a branch timer_single_step 
+0142 da604c4c arg mem_mouse_multi_led_blink_timer ,regc 
+0143 da400145 arg p_mouse_multi_led_type_blink_timeout ,regb 
+0144 2020318a branch timer_single_step 
 
 p_mouse_multi_led_type_blink_timeout:
-0142 6fe0cc4b fetch 1 ,mem_mouse_multi_led_blink_timer_init 
-0143 67e0cc4c store 1 ,mem_mouse_multi_led_blink_timer 
-0144 6fe0cc4d fetch 1 ,mem_mouse_multi_led_state 
-0145 c0008152 beq on ,p_mouse_device_multi_led_off 
+0145 6fe0cc4b fetch 1 ,mem_mouse_multi_led_blink_timer_init 
+0146 67e0cc4c store 1 ,mem_mouse_multi_led_blink_timer 
+0147 6fe0cc4d fetch 1 ,mem_mouse_multi_led_state 
+0148 c0008155 beq on ,p_mouse_device_multi_led_off 
 
 p_mouse_device_multi_led_on:
-0146 704c4d01 jam on ,mem_mouse_multi_led_state 
-0147 6fe0c938 fetch 1 ,mem_device_flag 
-0148 c000014c beq mode_24g_device ,p_mouse_device_24g_led_on 
-0149 c000814e beq mode_bt_device1 ,p_mouse_device_bt1_led_on 
-014a c0010150 beq mode_bt_device2 ,p_mouse_device_bt2_led_on 
-014b 20600000 rtn 
+0149 704c4d01 jam on ,mem_mouse_multi_led_state 
+014a 6fe0c938 fetch 1 ,mem_device_flag 
+014b c000014f beq mode_24g_device ,p_mouse_device_24g_led_on 
+014c c0008151 beq mode_bt_device1 ,p_mouse_device_bt1_led_on 
+014d c0010153 beq mode_bt_device2 ,p_mouse_device_bt2_led_on 
+014e 20600000 rtn 
 
 p_mouse_device_24g_led_on:
-014c 6848cc48 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
-014d 20200151 branch p_mouse_device_led_on 
+014f 6848cc48 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
+0150 20200154 branch p_mouse_device_led_on 
 
 p_mouse_device_bt1_led_on:
-014e 6848cc49 fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
-014f 20200151 branch p_mouse_device_led_on 
+0151 6848cc49 fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
+0152 20200154 branch p_mouse_device_led_on 
 
 p_mouse_device_bt2_led_on:
-0150 6848cc4a fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
+0153 6848cc4a fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
 
 p_mouse_device_led_on:
-0151 20206069 branch gpio_out_active 
+0154 20206069 branch gpio_out_active 
 
 p_mouse_device_multi_led_off:
-0152 704c4d00 jam off ,mem_mouse_multi_led_state 
-0153 6fe0c938 fetch 1 ,mem_device_flag 
-0154 c0000158 beq mode_24g_device ,p_mouse_device_24g_led_off 
-0155 c000815a beq mode_bt_device1 ,p_mouse_device_bt1_led_off 
-0156 c001015c beq mode_bt_device2 ,p_mouse_device_bt2_led_off 
-0157 20600000 rtn 
+0155 704c4d00 jam off ,mem_mouse_multi_led_state 
+0156 6fe0c938 fetch 1 ,mem_device_flag 
+0157 c000015b beq mode_24g_device ,p_mouse_device_24g_led_off 
+0158 c000815f beq mode_bt_device1 ,p_mouse_device_bt1_led_off 
+0159 c0010161 beq mode_bt_device2 ,p_mouse_device_bt2_led_off 
+015a 20600000 rtn 
 
 p_mouse_device_24g_led_off:
-0158 6848cc48 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
-0159 2020607f branch gpio_set_high_impedance 
+015b 6848cc48 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
+
+p_gpio_set_high_impedance:
+015c 18467cff sub temp ,gpio_disable ,null 
+015d 20628000 rtn zero 
+015e 2020607f branch gpio_set_high_impedance 
 
 p_mouse_device_bt1_led_off:
-015a 6848cc49 fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
-015b 2020607f branch gpio_set_high_impedance 
+015f 6848cc49 fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
+0160 2020015c branch p_gpio_set_high_impedance 
 
 p_mouse_device_bt2_led_off:
-015c 6848cc4a fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
-015d 2020607f branch gpio_set_high_impedance 
+0161 6848cc4a fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
+0162 2020015c branch p_gpio_set_high_impedance 
 
 p_mouse_1io2led_all_off:
-015e 20400158 call p_mouse_device_24g_led_off 
-015f 2040015a call p_mouse_device_bt1_led_off 
-0160 2020015c branch p_mouse_device_bt2_led_off 
+0163 2040015b call p_mouse_device_24g_led_off 
+0164 2040015f call p_mouse_device_bt1_led_off 
+0165 20200161 branch p_mouse_device_bt2_led_off 
 
 p_mouse_logo_led_on_timer:
-0161 6fe0cbed fetch 1 ,mem_mouse_logo_led_gpio 
-0162 c17f8000 rtneq gpio_disable 
-0163 6fe14ab2 fetch 2 ,mem_mouse_no_data_timer 
-0164 207a0000 rtn blank 
-0165 6fe14bbe fetch 2 ,mem_mouse_no_data_timeout 
-0166 68494ab2 fetcht 2 ,mem_mouse_no_data_timer 
-0167 98460400 isub temp ,temp 
-0168 6fe14bee fetch 2 ,mem_mouse_logo_led_on_time_init 
-0169 98467e00 isub temp ,pdata 
-016a 2021016f branch p_mouse_logo_led_on ,positive 
+0166 6fe0cbed fetch 1 ,mem_mouse_logo_led_gpio 
+0167 c17f8000 rtneq gpio_disable 
+0168 6fe14ab2 fetch 2 ,mem_mouse_no_data_timer 
+0169 207a0000 rtn blank 
+016a 6fe14bbe fetch 2 ,mem_mouse_no_data_timeout 
+016b 68494ab2 fetcht 2 ,mem_mouse_no_data_timer 
+016c 98460400 isub temp ,temp 
+016d 6fe14bee fetch 2 ,mem_mouse_logo_led_on_time_init 
+016e 98467e00 isub temp ,pdata 
+016f 20210174 branch p_mouse_logo_led_on ,positive 
 
 p_mouse_logo_led_off:
-016b 6848cbed fetcht 1 ,mem_mouse_logo_led_gpio 
-016c 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-016d c000e07f beq 1 ,gpio_set_high_impedance 
-016e 20206065 branch gpio_out_inactive 
+0170 6848cbed fetcht 1 ,mem_mouse_logo_led_gpio 
+0171 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
+0172 c000815c beq 1 ,p_gpio_set_high_impedance 
+0173 20206065 branch gpio_out_inactive 
 
 p_mouse_logo_led_on:
-016f 6848cbed fetcht 1 ,mem_mouse_logo_led_gpio 
-0170 20206069 branch gpio_out_active 
+0174 6848cbed fetcht 1 ,mem_mouse_logo_led_gpio 
+0175 20206069 branch gpio_out_active 
 
 p_mouse_dpi_led_blink_delay_timer:
-0171 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-0172 da400266 arg p_mouse_dpi_led_blink_init ,regb 
-0173 2020318a branch timer_single_step 
+0176 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+0177 da40026d arg p_mouse_dpi_led_blink_init ,regb 
+0178 2020318a branch timer_single_step 
 
 p_mouse_commbination_key_process:
-0174 6fe0c938 fetch 1 ,mem_device_flag 
-0175 c000017a beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-0176 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0177 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-0178 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0179 2020017d branch p_mouse_commbination_key_start 
+0179 6fe0c938 fetch 1 ,mem_device_flag 
+017a c000017f beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+017b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+017c c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+017d 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+017e 20200182 branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-017a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-017b c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-017c 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+017f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0180 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+0181 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-017d 6048cb9d storet 1 ,mem_mouse_commbination_key 
-017e 20404115 call mouse_check_key_gpio 
-017f 1fe17e07 and pdata ,0x07 ,pdata 
-0180 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-0181 98467c00 isub temp ,null 
-0182 20228184 branch p_mouse_commbination_key_down ,zero 
-0183 202044eb branch mouse_commbination_key_up 
+0182 6048cb9d storet 1 ,mem_mouse_commbination_key 
+0183 20404115 call mouse_check_key_gpio 
+0184 1fe17e07 and pdata ,0x07 ,pdata 
+0185 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+0186 98467c00 isub temp ,null 
+0187 20228189 branch p_mouse_commbination_key_down ,zero 
+0188 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-0184 20400189 call p_mouse_combination_ui_timer 
-0185 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-0186 c1008000 rtneq commbination_key_state_down 
-0187 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-0188 20600000 rtn 
+0189 2040018e call p_mouse_combination_ui_timer 
+018a 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+018b c1008000 rtneq commbination_key_state_down 
+018c 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+018d 20600000 rtn 
 
 p_mouse_combination_ui_timer:
-0189 da400571 arg p_mouse_24g_start_pair_mode ,regb 
-018a 202044f7 branch mouse_combination_ui_timer + 1 
+018e da400587 arg p_mouse_24g_start_pair_mode ,regb 
+018f 202044f7 branch mouse_combination_ui_timer + 1 
 
 p_mouse_check_no_data_timeout_timer:
-018b da604ab2 arg mem_mouse_no_data_timer ,regc 
-018c da40018e arg p_mouse_check_no_data_timeout ,regb 
-018d 20203191 branch timer_single_step_2b 
+0190 da604ab2 arg mem_mouse_no_data_timer ,regc 
+0191 da400193 arg p_mouse_check_no_data_timeout ,regb 
+0192 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-018e 6fe0c938 fetch 1 ,mem_device_flag 
-018f c0000588 beq mode_24g_device ,p_mouse_24g_hibernate_set 
-0190 2020431b branch mouse_disconnect 
+0193 6fe0c938 fetch 1 ,mem_device_flag 
+0194 c000059c beq mode_24g_device ,p_mouse_24g_hibernate_set 
+0195 2020431b branch mouse_disconnect 
 
 p_mouse_24g_low_power_stop_blink_timer:
-0191 da400194 arg p_mouse_24g_low_power_stop_blink_timeout ,regb 
-0192 da604ca9 arg mem_24g_low_power_stop_blink ,regc 
-0193 2020318a branch timer_single_step 
+0196 da400199 arg p_mouse_24g_low_power_stop_blink_timeout ,regb 
+0197 da604ca5 arg mem_24g_low_power_stop_blink ,regc 
+0198 2020318a branch timer_single_step 
 
 p_mouse_24g_low_power_stop_blink_timeout:
-0194 704ca801 jam 0x01 ,mem_low_power_led_flag 
-0195 704caa0a jam 0x0a ,mem_24g_low_power_led_off 
-0196 20600000 rtn 
+0199 704ca401 jam 0x01 ,mem_low_power_led_flag 
+019a 704ca60a jam 0x0a ,mem_24g_low_power_led_off 
+019b 20600000 rtn 
 
 p_mouse_24g_low_power_led_off_timer:
-0197 da40019a arg p_mouse_24g_low_power_led_off_timeout ,regb 
-0198 da604caa arg mem_24g_low_power_led_off ,regc 
-0199 2020318a branch timer_single_step 
+019c da40019f arg p_mouse_24g_low_power_led_off_timeout ,regb 
+019d da604ca6 arg mem_24g_low_power_led_off ,regc 
+019e 2020318a branch timer_single_step 
 
 p_mouse_24g_low_power_led_off_timeout:
-019a 6fe0c921 fetch 1 ,mem_config_low_voltage_alarm_gpio 
-019b c17f8000 rtneq gpio_disable 
-019c 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
-019d 793f8407 set0 7 ,temp 
-019e 2020492b branch mouse_led_off 
+019f 6fe0c921 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+01a0 c17f8000 rtneq gpio_disable 
+01a1 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+01a2 793f8407 set0 7 ,temp 
+01a3 2020492b branch mouse_led_off 
 
 p_mouse_low_power_timer:
-019f 6fe0cca8 fetch 1 ,mem_low_power_led_flag 
-01a0 203a4956 branch mouse_low_voltage_led_timer ,blank 
-01a1 20600000 rtn 
+01a4 6fe0cca4 fetch 1 ,mem_low_power_led_flag 
+01a5 203a4956 branch mouse_low_voltage_led_timer ,blank 
+01a6 20600000 rtn 
 
 p_mouse_drawing_optima:
-01a2 6fe0c927 fetch 1 ,mem_config_sensor_type 
-01a3 c1018000 rtneq p3212 
-01a4 2020471a branch mouse_drawing_optima 
+01a7 6fe0c927 fetch 1 ,mem_config_sensor_type 
+01a8 c1018000 rtneq p3212 
+01a9 2020471a branch mouse_drawing_optima 
 
 p_mouse_sensor_poweron:
-01a5 20403f65 call mouse_sensor_spi_init 
-01a6 6fe0c927 fetch 1 ,mem_config_sensor_type 
-01a7 c00581a9 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-01a8 20204238 branch mouse_sensor_poweron_next 
+01aa 20403f65 call mouse_sensor_spi_init 
+01ab 6fe0c927 fetch 1 ,mem_config_sensor_type 
+01ac c00581ae beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+01ad 20204238 branch mouse_sensor_poweron_next 
 
 p_mouse_ka8g2_sensor_init:
-01a9 204001af call p_mouse_ka8g2_sensor_reset 
-01aa da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-01ab 2020423a branch mouse_sensor_poweron_end 
+01ae 204001b4 call p_mouse_ka8g2_sensor_reset 
+01af da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+01b0 2020423a branch mouse_sensor_poweron_end 
 
 p_mouse_sensor_reset:
-01ac 6fe0c927 fetch 1 ,mem_config_sensor_type 
-01ad c00581af beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-01ae 20204232 branch mouse_sensor_reset 
+01b1 6fe0c927 fetch 1 ,mem_config_sensor_type 
+01b2 c00581b4 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+01b3 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-01af 58009706 setarg 0x9706 
-01b0 20204233 branch mouse_sensor_reset_end 
+01b4 58009706 setarg 0x9706 
+01b5 20204233 branch mouse_sensor_reset_end 
 
 p_mouse_sensor_powerdown:
-01b1 204041a7 call mouse_init_sunt 
-01b2 20403f65 call mouse_sensor_spi_init 
-01b3 6fe0c927 fetch 1 ,mem_config_sensor_type 
-01b4 c00581b6 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-01b5 2020423e branch mouse_sensor_powerdown_end 
+01b6 204041a7 call mouse_init_sunt 
+01b7 20403f65 call mouse_sensor_spi_init 
+01b8 6fe0c927 fetch 1 ,mem_config_sensor_type 
+01b9 c00581bb beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+01ba 2020423e branch mouse_sensor_powerdown_end 
 
 p_mouse_ka8g2_sensor_powerdown:
-01b6 58001f06 setarg 0x1f06 
-01b7 20205b0c branch twspi_write 
+01bb 58001f06 setarg 0x1f06 
+01bc 20205b0c branch twspi_write 
 
 p_mouse_key:
-01b8 204001ba call p_mouse_check_key_gpio 
-01b9 202040dd branch mouse_key + 1 
+01bd 204001bf call p_mouse_check_key_gpio 
+01be 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-01ba 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-01bb 245a4121 ncall mouse_check_key_gpio_once ,blank 
-01bc da200000 arg 0 ,rega 
-01bd 204001c3 call p_mouse_check_lkey_gpio 
-01be 204001c8 call p_mouse_check_rkey_gpio 
-01bf 204001cd call p_mouse_check_mkey_gpio 
-01c0 204001d2 call p_mouse_check_bkkey_gpio 
-01c1 204001df call p_mouse_check_fwkey_gpio 
-01c2 2020411e branch mouse_check_key_gpio_next 
+01bf 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+01c0 245a4121 ncall mouse_check_key_gpio_once ,blank 
+01c1 da200000 arg 0 ,rega 
+01c2 204001c8 call p_mouse_check_lkey_gpio 
+01c3 204001cd call p_mouse_check_rkey_gpio 
+01c4 204001d2 call p_mouse_check_mkey_gpio 
+01c5 204001d7 call p_mouse_check_bkkey_gpio 
+01c6 204001e4 call p_mouse_check_fwkey_gpio 
+01c7 2020411e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-01c3 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-01c4 204001ec call p_mouse_gpio_config_output_high 
-01c5 20404124 call mouse_check_lkey_gpio 
-01c6 6848c918 fetcht 1 ,mem_lbutton_gpio 
-01c7 20203f56 branch mouse_gpio_config_input_pu 
+01c8 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+01c9 204001f1 call p_mouse_gpio_config_output_high 
+01ca 20404124 call mouse_check_lkey_gpio 
+01cb 6848c918 fetcht 1 ,mem_lbutton_gpio 
+01cc 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-01c8 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-01c9 204001ec call p_mouse_gpio_config_output_high 
-01ca 2040412a call mouse_check_rkey_gpio 
-01cb 6848c919 fetcht 1 ,mem_rbutton_gpio 
-01cc 20203f56 branch mouse_gpio_config_input_pu 
+01cd 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+01ce 204001f1 call p_mouse_gpio_config_output_high 
+01cf 2040412a call mouse_check_rkey_gpio 
+01d0 6848c919 fetcht 1 ,mem_rbutton_gpio 
+01d1 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-01cd 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-01ce 204001ec call p_mouse_gpio_config_output_high 
-01cf 20404130 call mouse_check_mkey_gpio 
-01d0 6848c91a fetcht 1 ,mem_mbutton_gpio 
-01d1 20203f56 branch mouse_gpio_config_input_pu 
+01d2 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+01d3 204001f1 call p_mouse_gpio_config_output_high 
+01d4 20404130 call mouse_check_mkey_gpio 
+01d5 6848c91a fetcht 1 ,mem_mbutton_gpio 
+01d6 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-01d2 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-01d3 c17f8000 rtneq gpio_disable 
-01d4 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-01d5 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-01d6 1fe22600 copy pdata ,regc 
-01d7 6848c90d fetcht 1 ,mem_bk_button_gpio 
-01d8 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-01d9 c07f81db beq gpio_disable ,p_mouse_3io6key_bk_check 
-01da 2020413e branch mouse_check_bkkey_gpio_next 
+01d7 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+01d8 c17f8000 rtneq gpio_disable 
+01d9 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+01da 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+01db 1fe22600 copy pdata ,regc 
+01dc 6848c90d fetcht 1 ,mem_bk_button_gpio 
+01dd 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+01de c07f81e0 beq gpio_disable ,p_mouse_3io6key_bk_check 
+01df 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-01db 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-01dc 204001ee call p_mouse_gpio_config_output_low 
-01dd 6848c90d fetcht 1 ,mem_bk_button_gpio 
-01de 2020414b branch mouse_3io6key_bk_check 
+01e0 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+01e1 204001f4 call p_mouse_gpio_config_output_low 
+01e2 6848c90d fetcht 1 ,mem_bk_button_gpio 
+01e3 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-01df 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-01e0 c17f8000 rtneq gpio_disable 
-01e1 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-01e2 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-01e3 1fe22600 copy pdata ,regc 
-01e4 6848c90e fetcht 1 ,mem_fw_button_gpio 
-01e5 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-01e6 c07f81e8 beq gpio_disable ,p_mouse_3io6key_fw_check 
-01e7 20204157 branch mouse_check_fwkey_gpio_next 
+01e4 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+01e5 c17f8000 rtneq gpio_disable 
+01e6 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+01e7 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+01e8 1fe22600 copy pdata ,regc 
+01e9 6848c90e fetcht 1 ,mem_fw_button_gpio 
+01ea 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+01eb c07f81ed beq gpio_disable ,p_mouse_3io6key_fw_check 
+01ec 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-01e8 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-01e9 204001ee call p_mouse_gpio_config_output_low 
-01ea 6848c90e fetcht 1 ,mem_fw_button_gpio 
-01eb 20204164 branch mouse_3io6key_fw_check 
+01ed 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+01ee 204001f4 call p_mouse_gpio_config_output_low 
+01ef 6848c90e fetcht 1 ,mem_fw_button_gpio 
+01f0 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-01ec d840003f arg gpcfg_output_high ,temp 
-01ed 20206093 branch gpio_config_function_int 
+01f1 c17f8000 rtneq gpio_disable 
+01f2 d840003f arg gpcfg_output_high ,temp 
+01f3 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-01ee d840003e arg gpcfg_output_low ,temp 
-01ef 20206093 branch gpio_config_function_int 
+01f4 c17f8000 rtneq gpio_disable 
+01f5 d840003e arg gpcfg_output_low ,temp 
+01f6 20206093 branch gpio_config_function_int 
 
 p_mouse_dpi_check:
-01f0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01f1 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-01f2 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-01f3 c17f8000 rtneq gpio_disable 
-01f4 da200000 arg 0 ,rega 
-01f5 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-01f6 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-01f7 204001f9 call p_mouse_dpi_key_check 
-01f8 2020402f branch mouse_dpi_check_next 
+01f7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01f8 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+01f9 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+01fa c17f8000 rtneq gpio_disable 
+01fb da200000 arg 0 ,rega 
+01fc 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+01fd 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+01fe 20400200 call p_mouse_dpi_key_check 
+01ff 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-01f9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01fa c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-01fb 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-01fc 1fe22600 copy pdata ,regc 
-01fd 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-01fe c07f8200 beq gpio_disable ,p_mouse_3io6key_dpi_check 
-01ff 2020403f branch mouse_dpi_key_check_next 
+0200 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0201 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+0202 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+0203 1fe22600 copy pdata ,regc 
+0204 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0205 c07f8207 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+0206 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-0200 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0201 204001ee call p_mouse_gpio_config_output_low 
-0202 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0203 20204195 branch mouse_3io6key_check 
+0207 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0208 204001f4 call p_mouse_gpio_config_output_low 
+0209 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+020a 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_another_gpio_check:
-0204 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0205 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-0206 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-0207 243a020d nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+020b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+020c c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+020d 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+020e 243a0214 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-0208 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-0209 204001ec call p_mouse_gpio_config_output_high 
-020a 2040021d call p_mouse_dpi_another_check 
-020b 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-020c 20203f56 branch mouse_gpio_config_input_pu 
+020f 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+0210 204001f1 call p_mouse_gpio_config_output_high 
+0211 20400224 call p_mouse_dpi_another_check 
+0212 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0213 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-020d 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-020e 793ffe07 set0 gpio_active_bit ,pdata 
-020f 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-0210 204001ee call p_mouse_gpio_config_output_low 
-0211 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0212 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0213 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0214 20400236 call p_mouse_check_key_connect_vin_new 
-0215 20400221 call p_mouse_dpi_another_state_check 
-0216 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0217 20203f56 branch mouse_gpio_config_input_pu 
+0214 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+0215 793ffe07 set0 gpio_active_bit ,pdata 
+0216 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+0217 204001f4 call p_mouse_gpio_config_output_low 
+0218 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0219 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+021a 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+021b 2040023d call p_mouse_check_key_connect_vin_new 
+021c 20400228 call p_mouse_dpi_another_state_check 
+021d 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+021e 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_down_new:
-0218 20403f56 call mouse_gpio_config_input_pu 
-0219 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-021a c1008000 rtneq dpi_button_state_down 
-021b 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-021c 20204069 branch mouse_dpi_process 
+021f 20403f56 call mouse_gpio_config_input_pu 
+0220 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0221 c1008000 rtneq dpi_button_state_down 
+0222 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+0223 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_check:
-021d 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-021e 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-021f 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0220 2040022c call p_mouse_check_key_connect_gnd_new 
+0224 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0225 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0226 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+0227 20400233 call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-0221 67e0cc3c store 1 ,mem_dpi_another_press_status 
-0222 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-0223 203a0228 branch p_mouse_dpi_another_up ,blank 
+0228 67e0cc3c store 1 ,mem_dpi_another_press_status 
+0229 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+022a 203a022f branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-0224 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0225 c1008000 rtneq dpi_button_state_down 
-0226 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0227 20204069 branch mouse_dpi_process 
+022b 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+022c c1008000 rtneq dpi_button_state_down 
+022d 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+022e 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-0228 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0229 c1000000 rtneq dpi_button_state_up 
-022a 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-022b 20600000 rtn 
+022f 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0230 c1000000 rtneq dpi_button_state_up 
+0231 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+0232 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-022c 1fe3fe00 lshift pdata ,pdata 
-022d 1fe22400 copy pdata ,regb 
-022e 20406059 call gpio_get_bit 
-022f 7920a400 setflag true ,0 ,regb 
-0230 1a417e07 and regb ,0x07 ,pdata 
-0231 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-0232 18420e00 copy temp ,queue 
-0233 c0038241 beq 0x07 ,p_mouse_key_press 
-0234 c0000243 beq 0x00 ,p_mouse_key_release 
-0235 20600000 rtn 
+0233 1fe3fe00 lshift pdata ,pdata 
+0234 1fe22400 copy pdata ,regb 
+0235 20406059 call gpio_get_bit 
+0236 7920a400 setflag true ,0 ,regb 
+0237 1a417e07 and regb ,0x07 ,pdata 
+0238 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0239 18420e00 copy temp ,queue 
+023a c0038248 beq 0x07 ,p_mouse_key_press 
+023b c000024a beq 0x00 ,p_mouse_key_release 
+023c 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-0236 1fe3fe00 lshift pdata ,pdata 
-0237 1fe22400 copy pdata ,regb 
-0238 20403f54 call mouse_gpio_config_input_pd 
-0239 20406059 call gpio_get_bit 
-023a 7920a400 setflag true ,0 ,regb 
-023b 1a417e07 and regb ,0x07 ,pdata 
-023c 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-023d 18420e00 copy temp ,queue 
-023e c0038241 beq 0x07 ,p_mouse_key_press 
-023f c0000243 beq 0x00 ,p_mouse_key_release 
-0240 20600000 rtn 
+023d 1fe3fe00 lshift pdata ,pdata 
+023e 1fe22400 copy pdata ,regb 
+023f 20403f54 call mouse_gpio_config_input_pd 
+0240 20406059 call gpio_get_bit 
+0241 7920a400 setflag true ,0 ,regb 
+0242 1a417e07 and regb ,0x07 ,pdata 
+0243 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0244 18420e00 copy temp ,queue 
+0245 c0038248 beq 0x07 ,p_mouse_key_press 
+0246 c000024a beq 0x00 ,p_mouse_key_release 
+0247 20600000 rtn 
 
 p_mouse_key_press:
-0241 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-0242 20600000 rtn 
+0248 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+0249 20600000 rtn 
 
 p_mouse_key_release:
-0243 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-0244 20600000 rtn 
+024a 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+024b 20600000 rtn 
 
 p_mouse_select_device_by_pb_button:
-0245 6fe0c91b fetch 1 ,mem_config_select_device_button_gpio 
-0246 c17f8000 rtneq gpio_disable 
-0247 da200000 arg 0 ,rega 
-0248 704b9606 jam mouse_pb_key ,mem_mouse_key_temp 
-0249 6848c91b fetcht 1 ,mem_config_select_device_button_gpio 
-024a 2040466a call mouse_pb_button_check 
-024b 67e0cb94 store 1 ,mem_mouse_pbkey_press_status 
-024c 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-024d c07f8252 beq gpio_disable ,p_mouse_3io6key_pb_button_check_end 
-024e 20404168 call mouse_matrix_public_gpio_reset 
+024c 6fe0c91b fetch 1 ,mem_config_select_device_button_gpio 
+024d c17f8000 rtneq gpio_disable 
+024e da200000 arg 0 ,rega 
+024f 704b9606 jam mouse_pb_key ,mem_mouse_key_temp 
+0250 6848c91b fetcht 1 ,mem_config_select_device_button_gpio 
+0251 2040466a call mouse_pb_button_check 
+0252 67e0cb94 store 1 ,mem_mouse_pbkey_press_status 
+0253 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0254 c07f8259 beq gpio_disable ,p_mouse_3io6key_pb_button_check_end 
+0255 20404168 call mouse_matrix_public_gpio_reset 
 
 p_mouse_select_device_by_pb_button_exit:
-024f 1a227e00 copy rega ,pdata 
-0250 c283468d bbit1 mouse_pb_key ,mouse_select_device_button_down + 2 
-0251 20204680 branch mouse_select_device_button_up 
+0256 1a227e00 copy rega ,pdata 
+0257 c283468d bbit1 mouse_pb_key ,mouse_select_device_button_down + 2 
+0258 20204680 branch mouse_select_device_button_up 
 
 p_mouse_3io6key_pb_button_check_end:
-0252 6848c91b fetcht 1 ,mem_config_select_device_button_gpio 
-0253 20403f56 call mouse_gpio_config_input_pu 
-0254 2020024f branch p_mouse_select_device_by_pb_button_exit 
+0259 6848c91b fetcht 1 ,mem_config_select_device_button_gpio 
+025a 20403f56 call mouse_gpio_config_input_pu 
+025b 20200256 branch p_mouse_select_device_by_pb_button_exit 
 
 p_mouse_seting_dpi:
-0255 2040408f call mouse_setting_dpi_4_level 
-0256 20400258 call p_mouse_dpi_led_blink_delay 
-0257 20204098 branch mouse_seting_sensor_type 
+025c 2040408f call mouse_setting_dpi_4_level 
+025d 2040025f call p_mouse_dpi_led_blink_delay 
+025e 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-0258 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0259 c17f8000 rtneq gpio_disable 
-025a 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-025b 247a0000 nrtn blank 
-025c 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-025d 247a0000 nrtn blank 
-025e 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-025f 247a0000 nrtn blank 
-0260 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-0261 247a0000 nrtn blank 
-0262 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-0263 203a0266 branch p_mouse_dpi_led_blink_init ,blank 
-0264 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-0265 20600000 rtn 
+025f 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0260 c17f8000 rtneq gpio_disable 
+0261 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+0262 247a0000 nrtn blank 
+0263 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+0264 247a0000 nrtn blank 
+0265 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+0266 247a0000 nrtn blank 
+0267 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0268 247a0000 nrtn blank 
+0269 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+026a 203a026d branch p_mouse_dpi_led_blink_init ,blank 
+026b 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+026c 20600000 rtn 
 
 p_mouse_dpi_led_blink_init:
-0266 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0267 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-0268 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-0269 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-026a 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-026b 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-026c 67e14930 store 2 ,mem_mouse_on_time 
-026d 67e14932 store 2 ,mem_mouse_off_time 
-026e da200000 arg 0 ,rega 
-026f 6848c992 fetcht 1 ,mem_mouse_dpi 
-0270 18408402 increase 2 ,temp 
-0271 18467c03 sub temp ,3 ,null 
-0272 20410275 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0273 24410279 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-0274 202048ff branch mouse_dpi_led_blink_init_end 
+026d 6fe0c927 fetch 1 ,mem_config_sensor_type 
+026e c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+026f c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0270 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0271 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0272 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0273 67e14930 store 2 ,mem_mouse_on_time 
+0274 67e14932 store 2 ,mem_mouse_off_time 
+0275 da200000 arg 0 ,rega 
+0276 6848c992 fetcht 1 ,mem_mouse_dpi 
+0277 18408402 increase 2 ,temp 
+0278 18467c03 sub temp ,3 ,null 
+0279 2041027c call p_mouse_dpi_led_blink_init_level_4 ,positive 
+027a 24410280 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+027b 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-0275 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0276 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-0277 18408401 increase 1 ,temp 
-0278 20600000 rtn 
+027c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+027d c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+027e 18408401 increase 1 ,temp 
+027f 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-0279 184085fd increase -3 ,temp 
-027a 20600000 rtn 
+0280 184085fd increase -3 ,temp 
+0281 20600000 rtn 
 
 p_mouse_double_dpi_judge:
-027b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-027c c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-027d 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-027e c2838281 bbit1 gpio_active_bit ,p_mouse_another_dpi_connect_vin 
+0282 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0283 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+0284 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+0285 c2838288 bbit1 gpio_active_bit ,p_mouse_another_dpi_connect_vin 
 
 p_mouse_another_dpi_connect_gnd:
-027f 704c3a00 jam 0 ,mem_mouse_another_dpi_connect_vin_flag 
-0280 20600000 rtn 
+0286 704c3a00 jam 0 ,mem_mouse_another_dpi_connect_vin_flag 
+0287 20600000 rtn 
 
 p_mouse_another_dpi_connect_vin:
-0281 704c3a01 jam 1 ,mem_mouse_another_dpi_connect_vin_flag 
-0282 20600000 rtn 
+0288 704c3a01 jam 1 ,mem_mouse_another_dpi_connect_vin_flag 
+0289 20600000 rtn 
 
 p_mouse_dpi_process:
-0283 20404072 call mouse_dpi_ghost_check 
-0284 20740000 rtn user 
-0285 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0286 1fe20400 copy pdata ,temp 
-0287 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0288 c29e828f bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-0289 18427e00 copy temp ,pdata 
-028a 1fe0fe01 increase 1 ,pdata 
-028b 1fe17e03 and pdata ,0x03 ,pdata 
+028a 20404072 call mouse_dpi_ghost_check 
+028b 20740000 rtn user 
+028c 6fe0c992 fetch 1 ,mem_mouse_dpi 
+028d 1fe20400 copy pdata ,temp 
+028e 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+028f c29e8296 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+0290 18427e00 copy temp ,pdata 
+0291 1fe0fe01 increase 1 ,pdata 
+0292 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-028c 67e0c992 store 1 ,mem_mouse_dpi 
-028d 20404095 call mouse_seting_dpi 
-028e 202045ee branch mouse_store_device_info_delay 
+0293 67e0c992 store 1 ,mem_mouse_dpi 
+0294 20404095 call mouse_seting_dpi 
+0295 202045ee branch mouse_store_device_info_delay 
 
 p_mouse_double_dpi_check:
-028f 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-0290 243a02ac nbranch p_mouse_another_dpi_button_down ,blank 
+0296 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+0297 243a02b3 nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-0291 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0292 c28e02a0 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-0293 18427e00 copy temp ,pdata 
-0294 c1008000 rtneq mouse_dpi_level2 
+0298 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0299 c28e02a7 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+029a 18427e00 copy temp ,pdata 
+029b c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-0295 c000029c beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-0296 c001029a beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-0297 20600000 rtn 
+029c c00002a3 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+029d c00102a1 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+029e 20600000 rtn 
 
 p_mouse_dpi_level_1:
-0298 58000002 setarg 2 
-0299 2020028c branch p_mouse_dpi_store 
+029f 58000002 setarg 2 
+02a0 20200293 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-029a 58000000 setarg 0 
-029b 2020028c branch p_mouse_dpi_store 
+02a1 58000000 setarg 0 
+02a2 20200293 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-029c 58000001 setarg 1 
-029d 2020028c branch p_mouse_dpi_store 
+02a3 58000001 setarg 1 
+02a4 20200293 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-029e 58000003 setarg 3 
-029f 2020028c branch p_mouse_dpi_store 
+02a5 58000003 setarg 3 
+02a6 20200293 branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-02a0 18427e00 copy temp ,pdata 
-02a1 c1008000 rtneq mouse_dpi_level2 
-02a2 c000029c beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-02a3 c001029e beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-02a4 c001829a beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-02a5 20600000 rtn 
+02a7 18427e00 copy temp ,pdata 
+02a8 c1008000 rtneq mouse_dpi_level2 
+02a9 c00002a3 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+02aa c00102a5 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+02ab c00182a1 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+02ac 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-02a6 18427e00 copy temp ,pdata 
-02a7 c1010000 rtneq mouse_dpi_level3 
-02a8 c000029e beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-02a9 c000829a beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-02aa c0018298 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-02ab 20600000 rtn 
+02ad 18427e00 copy temp ,pdata 
+02ae c1010000 rtneq mouse_dpi_level3 
+02af c00002a5 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+02b0 c00082a1 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+02b1 c001829f beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+02b2 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-02ac 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-02ad c28e02a6 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-02ae 18427e00 copy temp ,pdata 
-02af c1010000 rtneq mouse_dpi_level3 
+02b3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02b4 c28e02ad bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+02b5 18427e00 copy temp ,pdata 
+02b6 c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-02b0 c0000298 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-02b1 c000829a beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-02b2 20600000 rtn 
-
-p_g24_report:
-02b3 58017700 setarg 0x17700 
-02b4 67e1cc4e store 3 ,mem_24g_tsniff 
-02b5 20402613 call g24_interval_param_8ms 
-02b6 7048c61e jam 30 ,mem_24g_fast_hop_count 
-02b7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-02b8 c40c0000 rtnbit0 mouse_enable_24g_250hz 
-02b9 2040260b call g24_interval_param_4ms 
-02ba 7048c60f jam 15 ,mem_24g_fast_hop_count 
-02bb 5800bb80 setarg 0xbb80 
-02bc 67e1cc4e store 3 ,mem_24g_tsniff 
-02bd 58004800 setarg 0x4800 
-02be 67e1c8ad store 3 ,mem_24g_short_sleep_set 
-02bf 20600000 rtn 
-
-p_g24_short_sleep_set_8ms:
-02c0 5800e290 setarg 58000 
-02c1 67e1c8ad store 3 ,mem_24g_short_sleep_set 
+02b7 c000029f beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+02b8 c00082a1 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+02b9 20600000 rtn 
+
+p_mouse_g24_report_setting:
+02ba 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02bb c30c02c3 bbit0 mouse_enable_24g_250hz ,p_mouse_g24_report_125hz 
+
+p_mouse_g24_report_250hz:
+02bc 5800bb80 setarg 0xbb80 
+02bd 67e1cc4e store 3 ,mem_24g_tsniff 
+02be 58006c10 setarg 0x6c10 
+02bf 67e1c8ad store 3 ,mem_24g_short_sleep_set 
+02c0 67e1cc64 store 3 ,mem_24g_short_sleep_set_init 
+02c1 7048c60f jam 15 ,mem_24g_fast_hop_count 
 02c2 20600000 rtn 
 
-p_g24_short_sleep_set_4ms:
-02c3 58001770 setarg 6000 
-02c4 67e1c8ad store 3 ,mem_24g_short_sleep_set 
-02c5 20600000 rtn 
+p_mouse_g24_report_125hz:
+02c3 58017700 setarg 0x17700 
+02c4 67e1cc4e store 3 ,mem_24g_tsniff 
+02c5 58010b60 setarg 0x10b60 
+02c6 67e1c8ad store 3 ,mem_24g_short_sleep_set 
+02c7 67e1cc64 store 3 ,mem_24g_short_sleep_set_init 
+02c8 7048c61e jam 30 ,mem_24g_fast_hop_count 
+02c9 20600000 rtn 
 
 p_mouse_24g_package_data:
-02c6 c6930000 rtnmark0 mark_24g 
-02c7 20403f70 call mouse_motion 
-02c8 24740000 nrtn user 
-02c9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-02ca c30a82cd bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-02cb 6fe0cb8b fetch 1 ,mem_customer_key 
-02cc 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
+02ca c6930000 rtnmark0 mark_24g 
+02cb 20403f70 call mouse_motion 
+02cc 24740000 nrtn user 
+02cd 6fe0cc6a fetch 1 ,mem_long_sleep_flag 
+02ce 704c6a00 jam 0 ,mem_long_sleep_flag 
+02cf 245a00f7 ncall p_mouse_short_sleep_clear_wake ,blank 
+02d0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02d1 c30a82d4 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+02d2 6fe0cb8b fetch 1 ,mem_customer_key 
+02d3 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-02cd 204042cb call mouse_data_xy_release 
-02ce 6fe0c836 fetch 1 ,mem_24g_data_type 
-02cf c28082dc bbit1 1 ,p_mouse_24g_mouse_package_data_now 
-02d0 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
-02d1 6fe0c8d0 fetch 1 ,mem_mouse_key 
-02d2 9841fe00 ior temp ,pdata 
-02d3 67e0c8d0 store 1 ,mem_mouse_key 
-02d4 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
-02d5 6fe0c8d5 fetch 1 ,mem_mouse_z 
-02d6 9840fe00 iadd temp ,pdata 
-02d7 67e0c8d5 store 1 ,mem_mouse_z 
-02d8 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
-02d9 6fe0c8d6 fetch 1 ,mem_mouse_tz 
-02da 9840fe00 iadd temp ,pdata 
-02db 67e0c8d6 store 1 ,mem_mouse_tz 
+02d4 204042cb call mouse_data_xy_release 
+02d5 6fe0c836 fetch 1 ,mem_24g_data_type 
+02d6 c28082e3 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
+02d7 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
+02d8 6fe0c8d0 fetch 1 ,mem_mouse_key 
+02d9 9841fe00 ior temp ,pdata 
+02da 67e0c8d0 store 1 ,mem_mouse_key 
+02db 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
+02dc 6fe0c8d5 fetch 1 ,mem_mouse_z 
+02dd 9840fe00 iadd temp ,pdata 
+02de 67e0c8d5 store 1 ,mem_mouse_z 
+02df 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
+02e0 6fe0c8d6 fetch 1 ,mem_mouse_tz 
+02e1 9840fe00 iadd temp ,pdata 
+02e2 67e0c8d6 store 1 ,mem_mouse_tz 
 
 p_mouse_24g_mouse_package_data_now:
-02dc 70483601 jam type_ms ,mem_24g_data_type 
-02dd da200007 arg 7 ,rega 
-02de da4048d0 arg mem_mouse_key ,regb 
-02df 6fe148d5 fetch 2 ,mem_mouse_z 
-02e0 207a0000 rtn blank 
-02e1 202026e1 branch g24_transmit_by_interrupt_enable 
+02e3 70483601 jam type_ms ,mem_24g_data_type 
+02e4 da200007 arg 7 ,rega 
+02e5 da4048d0 arg mem_mouse_key ,regb 
+02e6 6fe148d5 fetch 2 ,mem_mouse_z 
+02e7 207a0000 rtn blank 
+02e8 202026e1 branch g24_transmit_by_interrupt_enable 
 
 p_mouse_24g_search_dongle:
-02e2 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-02e3 c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
-02e4 6fe0caae fetch 1 ,mem_mouse_long_mult_flag 
-02e5 207a0000 rtn blank 
-02e6 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-02e7 207a0000 rtn blank 
-02e8 6fe0cba1 fetch 1 ,mem_mouse_search_dongle_interval 
-02e9 1fe0fe01 increase 1 ,pdata 
-02ea 1fe17e03 and_into 3 ,pdata 
-02eb 67e0cba1 store 1 ,mem_mouse_search_dongle_interval 
-02ec 247a0000 nrtn blank 
-02ed 704ba200 jam 0 ,mem_mouse_search_dongle_ch 
+02e9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02ea c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
+02eb 6fe0caae fetch 1 ,mem_mouse_long_mult_flag 
+02ec 207a0000 rtn blank 
+02ed 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+02ee 207a0000 rtn blank 
+02ef 6fe0cba1 fetch 1 ,mem_mouse_search_dongle_interval 
+02f0 1fe0fe01 increase 1 ,pdata 
+02f1 1fe17e03 and_into 3 ,pdata 
+02f2 67e0cba1 store 1 ,mem_mouse_search_dongle_interval 
+02f3 247a0000 nrtn blank 
+02f4 704ba200 jam 0 ,mem_mouse_search_dongle_ch 
 
 p_mouse_24g_search_dongle_loop:
-02ee 6fe0cba2 fetch 1 ,mem_mouse_search_dongle_ch 
-02ef 1fe0fe01 increase 1 ,pdata 
-02f0 67e0cba2 store 1 ,mem_mouse_search_dongle_ch 
-02f1 1fe67c08 sub pdata ,g24_ch_number ,null 
-02f2 242102f8 nbranch p_mouse_24g_search_dongle_loop_end ,positive 
-02f3 2040259a call g24_reconn_data_prep 
-02f4 2040041f call p_g24_transmit_receive_ack 
-02f5 242c02fe nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
-02f6 243782fe nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
-02f7 204048b5 call mouse_24g_search_dongle_success 
+02f5 6fe0cba2 fetch 1 ,mem_mouse_search_dongle_ch 
+02f6 1fe0fe01 increase 1 ,pdata 
+02f7 67e0cba2 store 1 ,mem_mouse_search_dongle_ch 
+02f8 1fe67c08 sub pdata ,g24_ch_number ,null 
+02f9 242102ff nbranch p_mouse_24g_search_dongle_loop_end ,positive 
+02fa 2040259a call g24_reconn_data_prep 
+02fb 20400412 call p_g24_transmit_receive_ack 
+02fc 242c0305 nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
+02fd 24378305 nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
+02fe 204048b5 call mouse_24g_search_dongle_success 
 
 p_mouse_24g_search_dongle_loop_end:
-02f8 20402597 call g24_txbuf_clear 
-02f9 6fe0cba3 fetch 1 ,mem_mouse_search_dongle_count 
-02fa 1fe0fe01 increase 1 ,pdata 
-02fb 67e0cba3 store 1 ,mem_mouse_search_dongle_count 
-02fc c0080300 beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
-02fd 20600000 rtn 
+02ff 20402597 call g24_txbuf_clear 
+0300 6fe0cba3 fetch 1 ,mem_mouse_search_dongle_count 
+0301 1fe0fe01 increase 1 ,pdata 
+0302 67e0cba3 store 1 ,mem_mouse_search_dongle_count 
+0303 c0080307 beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
+0304 20600000 rtn 
 
 p_mouse_24g_search_dongle_loop_retry:
-02fe 204022cb call g24_ch 
-02ff 202002ee branch p_mouse_24g_search_dongle_loop 
+0305 204022cb call g24_ch 
+0306 202002f5 branch p_mouse_24g_search_dongle_loop 
 
 p_mouse_24g_search_dongle_check:
-0300 704ba300 jam 0 ,mem_mouse_search_dongle_count 
-0301 6fe0cba4 fetch 1 ,mem_mouse_search_dongle_action 
-0302 c3800000 rtnbit1 g24_disconn_state 
-0303 79207e00 set1 g24_disconn_state ,pdata 
-0304 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
-0305 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
-0306 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-0307 202001b1 branch p_mouse_sensor_powerdown 
+0307 704ba300 jam 0 ,mem_mouse_search_dongle_count 
+0308 6fe0cba4 fetch 1 ,mem_mouse_search_dongle_action 
+0309 c3800000 rtnbit1 g24_disconn_state 
+030a 79207e00 set1 g24_disconn_state ,pdata 
+030b 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
+030c 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
+030d 67e14ab2 store 2 ,mem_mouse_no_data_timer 
+030e 202001b6 branch p_mouse_sensor_powerdown 
 
 p_soft_reset:
-0308 20800000 clear_stack 
-0309 24558331 ncall p_set_mem_xtal_cache ,wake 
-030a 204030f3 call app_param_init 
-030b 2455833c ncall p_led_num_check ,wake 
-030c 58004c72 setarg mem_mouse_rssi_signal_buf_patch 
-030d 67e14899 store 2 ,mem_rssi_signal_buf_ptr 
-030e 20403bfd call mouse_xtal_init 
-030f 2040124a call initialize_radio 
-0310 70804204 jam clksel_xtal ,core_clksel 
-0311 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-0312 c00c0314 beq xtal_24m ,p_soft_reset_next 
-0313 70804205 jam clksel_dpll ,core_clksel 
+030f 20800000 clear_stack 
+0310 24558338 ncall p_set_mem_xtal_cache ,wake 
+0311 204030f3 call app_param_init 
+0312 24558356 ncall p_led_num_check ,wake 
+0313 58004c6f setarg mem_mouse_rssi_signal_buf_patch 
+0314 67e14899 store 2 ,mem_rssi_signal_buf_ptr 
+0315 20403bfd call mouse_xtal_init 
+0316 2040124a call initialize_radio 
+0317 70804204 jam clksel_xtal ,core_clksel 
+0318 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+0319 c00c031b beq xtal_24m ,p_soft_reset_next 
+031a 70804205 jam clksel_dpll ,core_clksel 
 
 p_soft_reset_next:
-0314 6fe0cc93 fetch 1 ,mem_xtal_cache 
-0315 67e0c17b store 1 ,mem_lpm_config + 1 
-0316 58000f0f setarg 0xf0f 
-0317 d8a00fff arg 0xfff ,contw 
-0318 98a10a00 iand contw ,contw 
-0319 6fe0c17a fetch 1 ,mem_lpm_config 
-031a 1fe17ef0 and_into 0xf0 ,pdata 
-031b 1fed7e00 lshift8 pdata ,pdata 
-031c 98a1fe00 ior contw ,pdata 
-031d 793ffe02 set0 2 ,pdata 
-031e 67f1004c store 2 ,core_lpm_reg 
-031f efe10006 ifetch 2 ,contr 
-0320 e7e10005 istore 2 ,contw 
-0321 58000001 setarg lpmreg_sel_ctrl 
-0322 37d98200 until null ,lpo_edge 
-0323 67f08005 store 1 ,core_lpm_wr 
-0324 70417b08 jam 0x08 ,mem_lpm_config + 1 
-0325 20200805 branch soft_reset + 4 
+031b 6fe0cc8f fetch 1 ,mem_xtal_cache 
+031c 67e0c17b store 1 ,mem_lpm_config + 1 
+031d 58000f0f setarg 0xf0f 
+031e d8a00fff arg 0xfff ,contw 
+031f 98a10a00 iand contw ,contw 
+0320 6fe0c17a fetch 1 ,mem_lpm_config 
+0321 1fe17ef0 and_into 0xf0 ,pdata 
+0322 1fed7e00 lshift8 pdata ,pdata 
+0323 98a1fe00 ior contw ,pdata 
+0324 793ffe02 set0 2 ,pdata 
+0325 67f1004c store 2 ,core_lpm_reg 
+0326 efe10006 ifetch 2 ,contr 
+0327 e7e10005 istore 2 ,contw 
+0328 58000001 setarg lpmreg_sel_ctrl 
+0329 37d98200 until null ,lpo_edge 
+032a 67f08005 store 1 ,core_lpm_wr 
+032b 70417b08 jam 0x08 ,mem_lpm_config + 1 
+032c 20200805 branch soft_reset + 4 
 
 p_enable_rc_clock:
-0326 6ff20138 fetch 4 ,core_lpm_ctrl 
-0327 79207e02 set1 2 ,pdata 
-0328 67f2004c store 4 ,core_lpm_reg 
-0329 58000001 setarg lpmreg_sel_ctrl 
-032a 37d98200 until null ,lpo_edge 
-032b 67f08005 store 1 ,core_lpm_wr 
-032c 37d98200 until null ,lpo_edge 
-032d 37d98200 until null ,lpo_edge 
-032e 37d98200 until null ,lpo_edge 
-032f 20002710 nop 10000 
-0330 20600000 rtn 
+032d 6ff20138 fetch 4 ,core_lpm_ctrl 
+032e 79207e02 set1 2 ,pdata 
+032f 67f2004c store 4 ,core_lpm_reg 
+0330 58000001 setarg lpmreg_sel_ctrl 
+0331 37d98200 until null ,lpo_edge 
+0332 67f08005 store 1 ,core_lpm_wr 
+0333 37d98200 until null ,lpo_edge 
+0334 37d98200 until null ,lpo_edge 
+0335 37d98200 until null ,lpo_edge 
+0336 20002710 nop 10000 
+0337 20600000 rtn 
 
 p_set_mem_xtal_cache:
-0331 6fe0c17b fetch 1 ,mem_lpm_config + 1 
-0332 67e0cc93 store 1 ,mem_xtal_cache 
-0333 20600000 rtn 
+0338 6fe0c17b fetch 1 ,mem_lpm_config + 1 
+0339 67e0cc8f store 1 ,mem_xtal_cache 
+033a 20600000 rtn 
+
+p_main_loop:
+033b 2040706c call sp_calc_sequence 
+033c 20407597 call sp_calc_sequence_256 
+033d 20406ea7 call sp_calc_sequence_256_check 
+033e 20401b92 call le_advertising_dispatch 
+033f 2040083a call idle_dispatch 
+0340 20400342 call p_app_process_idle 
+0341 2020081a branch main_loop + 7 
+
+p_app_process_idle:
+0342 20400344 call p_ui_dispatch 
+0343 20203109 branch app_process_idle + 2 
+
+p_ui_dispatch:
+0344 20400346 call p_ui_led_dispatch 
+0345 20207850 branch ui_timer_check 
+
+p_ui_led_dispatch:
+0346 6fe0c48c fetch 1 ,mem_ui_led_struct_num 
+0347 207a0000 rtn blank 
+0348 6fe1448d fetch 2 ,mem_ui_led_struct_ptr 
+0349 1fe22400 copy pdata ,regb 
+034a 1a40a402 add regb ,led_offset_led_gpio ,regb 
+034b efe08012 ifetch 1 ,regb 
+034c c17f8000 rtneq gpio_disable 
+034d 20207813 branch ui_led_dispatch + 2 
 
 p_mouse_led_on:
-0334 18427e00 copy temp ,pdata 
-0335 c17f8000 rtneq gpio_disable 
-0336 1fe20400 copy pdata ,temp 
-0337 20204930 branch mouse_led_on + 1 
+034e 18427e00 copy temp ,pdata 
+034f c17f8000 rtneq gpio_disable 
+0350 1fe20400 copy pdata ,temp 
+0351 20204930 branch mouse_led_on + 1 
 
 p_mouse_led_off:
-0338 18427e00 copy temp ,pdata 
-0339 c17f8000 rtneq gpio_disable 
-033a 1fe20400 copy pdata ,temp 
-033b 2020492c branch mouse_led_off + 1 
+0352 18427e00 copy temp ,pdata 
+0353 c17f8000 rtneq gpio_disable 
+0354 1fe20400 copy pdata ,temp 
+0355 2020492c branch mouse_led_off + 1 
 
 p_led_num_check:
-033c 6fe0cbaf fetch 1 ,mem_mouse_flag + 4 
-033d 247a0000 nrtn blank 
-033e 70448c00 jam 0 ,mem_ui_led_struct_num 
-033f 20600000 rtn 
+0356 6fe0cbaf fetch 1 ,mem_mouse_flag + 4 
+0357 247a0000 nrtn blank 
+0358 70448c00 jam 0 ,mem_ui_led_struct_num 
+0359 20600000 rtn 
 
 p_lpm_short_sleep:
-0340 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-0341 c0040344 beq xtal_16m ,p_lpm_short_sleep_skip_pll_set 
-0342 58000000 setarg 0 
-0343 67f18a00 store 3 ,core_clkpll_ctrl0 
+035a 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+035b c004035e beq xtal_16m ,p_lpm_short_sleep_skip_pll_set 
+035c 58000000 setarg 0 
+035d 67f18a00 store 3 ,core_clkpll_ctrl0 
 
 p_lpm_short_sleep_skip_pll_set:
-0344 704c638c jam 140 ,mem_tx_time_offset 
-0345 204012cf call xtal_fast_wake 
-0346 6fe24164 fetch 4 ,mem_sleep_counter_all 
-0347 9840fe00 iadd temp ,pdata 
-0348 67e24164 store 4 ,mem_sleep_counter_all 
-0349 18027e00 deposit mark 
-034a 67e4419d store 8 ,mem_saved_mark 
-034b d8c08070 arg core_gpio_conf ,contr 
-034c d8a04186 arg mem_saved_gpio ,contw 
-034d 20407d01 call memcpy20 
-034e 6ff08086 fetch 1 ,core_spid_ctrl 
-034f 67e0c1a5 store 1 ,mem_saved_spidctrl 
-0350 2040143f call lpm_ctrl3_cfg_dig_vsel 
-0351 6ff08042 fetch 1 ,core_clksel 
-0352 1fe1fe14 or_into 0x14 ,pdata 
-0353 67f08042 store 1 ,core_clksel 
-0354 2020149e branch lpm_sleep + 7 
+035e 704c63fa jam 250 ,mem_tx_time_offset 
+035f 204012cf call xtal_fast_wake 
+0360 6fe24164 fetch 4 ,mem_sleep_counter_all 
+0361 9840fe00 iadd temp ,pdata 
+0362 67e24164 store 4 ,mem_sleep_counter_all 
+0363 18027e00 deposit mark 
+0364 67e4419d store 8 ,mem_saved_mark 
+0365 d8c08070 arg core_gpio_conf ,contr 
+0366 d8a04186 arg mem_saved_gpio ,contw 
+0367 20407d01 call memcpy20 
+0368 6ff08086 fetch 1 ,core_spid_ctrl 
+0369 67e0c1a5 store 1 ,mem_saved_spidctrl 
+036a 2040143f call lpm_ctrl3_cfg_dig_vsel 
+036b 6ff08042 fetch 1 ,core_clksel 
+036c 1fe1fe14 or_into 0x14 ,pdata 
+036d 67f08042 store 1 ,core_clksel 
+036e 2020149e branch lpm_sleep + 7 
 
 p_initialize_radio_cont:
-0355 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0356 2040126a call initialize_syn_afc_cfg1 
-0357 20401271 call initialize_rf_ldo_cfg1 
-0358 20401277 call initialize_rc_cal 
-0359 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-035a 708a0305 jam 5 ,core_clkpll_cfg0 
-035b 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-035c 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-035d 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-035e 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-035f 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
-0360 70892140 jam 0x40 ,core_rx_ctrl1 
-0361 2020125d branch initialize_radio_cont + 8 
+036f 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0370 2040126a call initialize_syn_afc_cfg1 
+0371 20401271 call initialize_rf_ldo_cfg1 
+0372 20401277 call initialize_rc_cal 
+0373 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0374 708a0305 jam 5 ,core_clkpll_cfg0 
+0375 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0376 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0377 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0378 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0379 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
+037a 70892140 jam 0x40 ,core_rx_ctrl1 
+037b 2020125d branch initialize_radio_cont + 8 
+
+p_shutdown_radio:
+037c 6fe0c1ea fetch 1 ,mem_gain_fix 
+037d 67e08964 store 1 ,mem_temp 
+037e 20401150 call shutdown_radio + 1 
+037f 708a0a00 jam 0 ,core_rf_ldo_en0 
+0380 6fe08964 fetch 1 ,mem_temp 
+0381 67e0c1ea store 1 ,mem_gain_fix 
+0382 20600000 rtn 
 
 p_set_sync_on:
-0362 70890005 jam 0x5 ,modem_en 
-0363 20000002 nop 2 
-0364 70890000 jam 0x0 ,modem_en 
-0365 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-0366 c00c1168 beq xtal_24m ,set_sync_on_24m 
+0383 70890005 jam 0x5 ,modem_en 
+0384 20000002 nop 2 
+0385 70890000 jam 0x0 ,modem_en 
+0386 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+0387 c00c1168 beq xtal_24m ,set_sync_on_24m 
 
 p_set_sync_on_16m:
-0367 708a8729 jam 0x29 ,core_syn_afc_cfg1 
-0368 2020117d branch set_sync_on_16m 
-
-p_set_freq_rx:
-0369 20401190 call set_freq_rx + 1 
-036a 58007676 setarg 0x7676 
-036b 67f10968 store 2 ,0x8968 
-036c 20600000 rtn 
-
-p_rf_rx_enable:
-036d 6fe0c938 fetch 1 ,mem_device_flag 
-036e c08011a7 bne mode_24g_device ,rf_rx_enable + 1 
-036f 6fe0cc92 fetch 1 ,mem_soft_agc_en 
-0370 243a0379 nbranch p_rf_rx_enable_soft_agc ,blank 
-0371 2000012c nop 300 
-0372 20404ca7 call rf_debug_rx_gpio_high 
-0373 d8c041eb arg mem_gain_table ,contr 
-0374 98c08c00 iadd contr ,contr 
-0375 efe08006 ifetch 1 ,contr 
-0376 67f08961 store 1 ,core_rf_rx_gain_fix 
-0377 7089602e jam 0x2e ,core_rf_rx_agc_ctrl 
-0378 202011b3 branch rf_rx_enable_no_soft_agc_next 
-
-p_rf_rx_enable_soft_agc:
-0379 6ff08960 fetch 1 ,core_rf_rx_agc_ctrl 
-037a 1fe1fe01 or pdata ,0x01 ,pdata 
-037b 67f08960 store 1 ,core_rf_rx_agc_ctrl 
-037c 70896104 jam 0x04 ,core_rf_rx_gain_fix 
-037d 202011b3 branch rf_rx_enable_no_soft_agc_next 
-
-p_soft_agc_en_false:
-037e 704c9200 jam 0 ,mem_soft_agc_en 
-037f 20600000 rtn 
-
-p_soft_agc_en_true:
-0380 704c9201 jam 1 ,mem_soft_agc_en 
-0381 20600000 rtn 
+0388 708a8729 jam 0x29 ,core_syn_afc_cfg1 
+0389 2020117d branch set_sync_on_16m 
 
 p_txon_next:
-0382 6fe0cc92 fetch 1 ,mem_soft_agc_en 
-0383 243a0385 nbranch p_set_tx_power_f17db ,blank 
-0384 2020123b branch set_tx_power_10db 
+038a 6fe0c1e8 fetch 1 ,mem_tx_power 
+038b c048838e beq tx_power_f17db ,p_set_tx_power_f17db 
+038c c04a1244 beq tx_power_f20db ,set_tx_power_f20db 
+038d 2020123b branch set_tx_power_10db 
 
 p_set_tx_power_f17db:
-0385 708a395b jam 0x5b ,core_tx_pwr_ctrl0 
-0386 708a3a01 jam 0x01 ,core_tx_pwr_ctrl1 
-0387 2020122a branch set_rf_ldo_cfg89 
-
-p_save_rssi:
-0388 6ff089a2 fetch 1 ,modem_nb_pow 
-0389 2feffe06 isolate1 6 ,pdata 
-038a 7920fe07 setflag true ,7 ,pdata 
-038b 67e0c1e9 store 1 ,mem_modem_rssi 
-038c 6ff089a3 fetch 1 ,modem_gain 
-038d 1fe1040f and pdata ,0x0f ,temp 
-038e 18438400 lshift temp ,temp 
-038f 1ff1fe00 rshift4 pdata ,pdata 
-0390 98408400 iadd temp ,temp 
-0391 184fa203 mul32 temp ,3 ,rega 
-0392 6fe0c1e9 fetch 1 ,mem_modem_rssi 
-0393 2040039d call p_byte_sign_extern 
-0394 1fe67e00 sub pdata ,0 ,pdata 
-0395 9a20fe00 iadd rega ,pdata 
-0396 1fe0fff7 increase -9 ,pdata 
-0397 1fe17fff and pdata ,0x1ff ,pdata 
-0398 2feffe08 isolate1 8 ,pdata 
-0399 2420839b nbranch p_save_rssi_store ,true 
-039a 58000000 setarg 0 
-
-p_save_rssi_store:
-039b 67e08019 store 1 ,mem_rssi_hex 
-039c 20600000 rtn 
-
-p_byte_sign_extern:
-039d 2feffe07 isolate1 7 ,pdata 
-039e 24608000 nrtn true 
-039f d840ff00 arg 0xff00 ,temp 
-03a0 9841fe00 ior temp ,pdata 
-03a1 20600000 rtn 
+038e 708a395b jam 0x5b ,core_tx_pwr_ctrl0 
+038f 708a3a01 jam 0x01 ,core_tx_pwr_ctrl1 
+0390 2020122a branch set_rf_ldo_cfg89 
 
 p_adc_init_data:
-03a2 da20099e arg mem_temp_block2 ,rega 
-03a3 d840000c arg 12 ,temp 
-03a4 58000030 setarg efuse_offset_adc_param 
-03a5 20405e63 call efuse_read_data 
-03a6 202060bf branch adc_init_data + 6 
+0391 da20099e arg mem_temp_block2 ,rega 
+0392 d840000c arg 12 ,temp 
+0393 58000030 setarg efuse_offset_adc_param 
+0394 20405e63 call efuse_read_data 
+0395 202060bf branch adc_init_data + 6 
 
 p_enable_adc:
-03a7 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
-03a8 708a123d jam 0x3d ,core_rf_ldo_cfg6 
-03a9 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
-03aa 708a0a0c jam 0x0c ,core_rf_ldo_en0 
-03ab 6ff08a09 fetch 1 ,core_clkpll_cfg6 
-03ac 79207e07 set1 7 ,pdata 
-03ad 67f08a09 store 1 ,core_clkpll_cfg6 
-03ae 708a0b04 jam 0x04 ,core_rf_ldo_en1 
-03af 2000003c nop 60 
-03b0 708a1600 jam 0 ,core_syn_en 
-03b1 708a1706 jam 6 ,core_rx_en0 
-03b2 2040611a call read_adc_mode 
-03b3 67f08a97 store 1 ,core_gpadc_ctrl 
-03b4 7080dc03 jam 0x03 ,core_sum_ctrl 
-03b5 2000003c nop 60 
-03b6 6ff08053 fetch 1 ,core_sum_en 
-03b7 79207e07 set1 7 ,pdata 
-03b8 67f08053 store 1 ,core_sum_en 
-03b9 200003e8 nop 1000 
-03ba 6ff10150 fetch 2 ,core_adc_sum 
-03bb 67e144a2 store 2 ,mem_adc_current_value 
-03bc 6ff08053 fetch 1 ,core_sum_en 
-03bd 793ffe07 set0 7 ,pdata 
-03be 67f08053 store 1 ,core_sum_en 
-03bf 708a9700 jam 0 ,core_gpadc_ctrl 
-03c0 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
-03c1 20600000 rtn 
+0396 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+0397 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+0398 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+0399 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+039a 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+039b 79207e07 set1 7 ,pdata 
+039c 67f08a09 store 1 ,core_clkpll_cfg6 
+039d 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+039e 2000003c nop 60 
+039f 708a1600 jam 0 ,core_syn_en 
+03a0 708a1706 jam 6 ,core_rx_en0 
+03a1 2040611a call read_adc_mode 
+03a2 67f08a97 store 1 ,core_gpadc_ctrl 
+03a3 7080dc03 jam 0x03 ,core_sum_ctrl 
+03a4 2000003c nop 60 
+03a5 6ff08053 fetch 1 ,core_sum_en 
+03a6 79207e07 set1 7 ,pdata 
+03a7 67f08053 store 1 ,core_sum_en 
+03a8 200003e8 nop 1000 
+03a9 6ff10150 fetch 2 ,core_adc_sum 
+03aa 67e144a2 store 2 ,mem_adc_current_value 
+03ab 6ff08053 fetch 1 ,core_sum_en 
+03ac 793ffe07 set0 7 ,pdata 
+03ad 67f08053 store 1 ,core_sum_en 
+03ae 708a9700 jam 0 ,core_gpadc_ctrl 
+03af 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
+03b0 20600000 rtn 
 
 p_ui_timer_check:
-03c2 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-03c3 245a7861 ncall ui_timer_init ,blank 
-03c4 704be200 jam 0 ,mem_power_on_flag 
-03c5 20207851 branch ui_timer_check + 1 
+03b1 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+03b2 245a7861 ncall ui_timer_init ,blank 
+03b3 704be200 jam 0 ,mem_power_on_flag 
+03b4 20207851 branch ui_timer_check + 1 
+
+p_le_enable_phy_by_pdata:
+03b5 18427e00 copy temp ,pdata 
+03b6 c28016a5 bbit1 bit_le_1m_phy ,le_enable 
+03b7 c28083b9 bbit1 bit_le_2m_phy ,p_le_enable_2m 
+03b8 20201690 branch le_enable_phy_by_pdata + 5 
+
+p_le_enable_2m:
+03b9 20401694 call le_enable_2m 
+03ba 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+03bb 20600000 rtn 
 
 p_init_param:
-03c6 70008000 jam 0 ,mem_lmo_tid2 
-03c7 202013b7 branch init_param_next + 1 
+03bc 70008000 jam 0 ,mem_lmo_tid2 
+03bd 202013b7 branch init_param_next + 1 
 
 p_le_slave_match:
-03c8 6fe0c3dd fetch 1 ,mem_le_md_count 
-03c9 1fe0fe01 pincrease 1 
-03ca 67e0c3dd store 1 ,mem_le_md_count 
-03cb c006165a beq le_md_max_count ,le_slave_cont 
-03cc 2040191b call le_acknowledge 
-03cd 2040196a call le_prepare_tx 
-03ce 6fe082bd fetch 1 ,mem_le_tx_phy 
-03cf 2040168b call le_enable_phy_by_pdata 
-03d0 20401838 call le_transmit 
-03d1 20201655 branch le_slave_match + 10 
+03be 6fe0c3dd fetch 1 ,mem_le_md_count 
+03bf 1fe0fe01 pincrease 1 
+03c0 67e0c3dd store 1 ,mem_le_md_count 
+03c1 c006165a beq le_md_max_count ,le_slave_cont 
+03c2 2040191b call le_acknowledge 
+03c3 2040196a call le_prepare_tx 
+03c4 6fe082bd fetch 1 ,mem_le_tx_phy 
+03c5 2040168b call le_enable_phy_by_pdata 
+03c6 20401838 call le_transmit 
+03c7 20201655 branch le_slave_match + 10 
 
 p_le_slave_unsync:
-03d2 20400e80 call end_of_packet 
-03d3 20201661 branch le_slave_unsync + 1 
+03c8 20400e80 call end_of_packet 
+03c9 20201661 branch le_slave_unsync + 1 
 
 p_g24_transmit:
-03d4 6fe0c865 fetch 1 ,mem_24g_tx_phy 
-03d5 2040168b call le_enable_phy_by_pdata 
-03d6 6fe2483c fetch 4 ,mem_24g_addr 
-03d7 98001200 iforce access 
-03d8 204021d5 call g24_prep 
-03d9 20402243 call g24_set_freq_tx 
-03da 79202a00 set1 txgfsk ,radio_ctrl 
-03db 782efc00 enable encode_fec0 
-03dc 78307c00 enable is_tx 
-03dd 7850fc00 disable is_rx 
-03de 20404cb5 call rf_debug_tx_on_line 
-03df 785d7c00 disable lr_s2en 
-03e0 c517a273 bmark1 mark_ble_lr ,g24_transmit_lr 
-03e1 c51683e8 bmark1 mark_ble_2m ,p_g24_transmit_2m 
-03e2 19317e00 rshift16 access ,pdata 
-03e3 1fecfe00 rshift8 pdata ,pdata 
-03e4 1ff1fe00 rshift4 pdata ,pdata 
-03e5 08008628 inject mod ,40 
+03ca 6fe0c865 fetch 1 ,mem_24g_tx_phy 
+03cb 2040168b call le_enable_phy_by_pdata 
+03cc 6fe2483c fetch 4 ,mem_24g_addr 
+03cd 98001200 iforce access 
+03ce 204021d5 call g24_prep 
+03cf 20402243 call g24_set_freq_tx 
+03d0 79202a00 set1 txgfsk ,radio_ctrl 
+03d1 782efc00 enable encode_fec0 
+03d2 78307c00 enable is_tx 
+03d3 7850fc00 disable is_rx 
+03d4 20404cb5 call rf_debug_tx_on_line 
+03d5 785d7c00 disable lr_s2en 
+03d6 c517a273 bmark1 mark_ble_lr ,g24_transmit_lr 
+03d7 c51683de bmark1 mark_ble_2m ,p_g24_transmit_2m 
+03d8 19317e00 rshift16 access ,pdata 
+03d9 1fecfe00 rshift8 pdata ,pdata 
+03da 1ff1fe00 rshift4 pdata ,pdata 
+03db 08008628 inject mod ,40 
 
 p_g24_transmit_packet:
-03e6 c517a25c bmark1 mark_ble_lr ,g24_transmit_nolr 
-03e7 2020225c branch g24_transmit_nolr 
+03dc c517a25c bmark1 mark_ble_lr ,g24_transmit_nolr 
+03dd 2020225c branch g24_transmit_nolr 
 
 p_g24_transmit_2m:
-03e8 6fe0c1f0 fetch 1 ,mem_system_clk 
-03e9 1fe37200 rshift pdata ,loopcnt 
+03de 6fe0c1f0 fetch 1 ,mem_system_clk 
+03df 1fe37200 rshift pdata ,loopcnt 
 
 p_g24_transmit_2m_dealy:
-03ea 20000002 nop 2 
-03eb c20003ea loop p_g24_transmit_2m_dealy 
-03ec 19317e00 rshift16 access ,pdata 
-03ed 1fecfe00 rshift8 pdata ,pdata 
-03ee 1ff18400 rshift4 pdata ,temp 
-03ef 18427e00 copy temp ,pdata 
-03f0 08008608 inject mod ,8 
-03f1 18427e00 copy temp ,pdata 
-03f2 08008628 inject mod ,40 
-03f3 202003e6 branch p_g24_transmit_packet 
+03e0 20000002 nop 2 
+03e1 c20003e0 loop p_g24_transmit_2m_dealy 
+03e2 19317e00 rshift16 access ,pdata 
+03e3 1fecfe00 rshift8 pdata ,pdata 
+03e4 1ff18400 rshift4 pdata ,temp 
+03e5 18427e00 copy temp ,pdata 
+03e6 08008608 inject mod ,8 
+03e7 18427e00 copy temp ,pdata 
+03e8 08008628 inject mod ,40 
+03e9 202003dc branch p_g24_transmit_packet 
 
 p_g24_receive_packet:
-03f4 6fe0c864 fetch 1 ,mem_24g_rx_phy 
-03f5 2040168b call le_enable_phy_by_pdata 
-03f6 6fe2483c fetch 4 ,mem_24g_addr 
-03f7 98001200 iforce access 
-03f8 204010b0 call calc_mod_value_scale_le 
-03f9 20401161 call set_sync_on 
-03fa 6848c83a fetcht 1 ,mem_24g_ch 
-03fb 204016c8 call le_rf_rx_enable 
-03fc 6ff08960 fetch 1 ,core_rf_rx_agc_ctrl 
-03fd 79207e03 set1 3 ,pdata 
-03fe 67f08960 store 1 ,core_rf_rx_agc_ctrl 
+03ea 6fe0c864 fetch 1 ,mem_24g_rx_phy 
+03eb 2040168b call le_enable_phy_by_pdata 
+03ec 6fe2483c fetch 4 ,mem_24g_addr 
+03ed 98001200 iforce access 
+03ee 204010b0 call calc_mod_value_scale_le 
+03ef 20401161 call set_sync_on 
+03f0 6848c83a fetcht 1 ,mem_24g_ch 
+03f1 204016c8 call le_rf_rx_enable 
 
 p_g24_receive_rxon:
-03ff 204021d5 call g24_prep 
-0400 c5978404 bmark0 mark_ble_lr ,p_g24_receive_nolr 
-0401 783cfc00 pulse dewhiten_code_calc 
-0402 2000001e nop 30 
-0403 204021d5 call g24_prep 
+03f2 204021d5 call g24_prep 
+03f3 c59783f7 bmark0 mark_ble_lr ,p_g24_receive_nolr 
+03f4 783cfc00 pulse dewhiten_code_calc 
+03f5 2000001e nop 30 
+03f6 204021d5 call g24_prep 
 
 p_g24_receive_nolr:
-0404 7857fc00 disable user3 
-0405 7826fc00 enable decode_fec0 
-0406 7830fc00 enable is_rx 
-0407 78507c00 disable is_tx 
-0408 78287c00 enable swfine 
-0409 6fe14838 fetch 2 ,mem_24g_rx_window 
-040a 98003600 iforce stop_watch 
-040b 37c18400 correlate null ,timeout 
-040c 242c223d nbranch g24_sync_timeout ,sync 
-040d 20404caf call rf_debug_rx_sync_line 
-040e c517a1f6 bmark1 mark_ble_lr ,g24_receive_skip_fec1 
-040f 202021f6 branch g24_receive_skip_fec1 
+03f7 7857fc00 disable user3 
+03f8 7826fc00 enable decode_fec0 
+03f9 7830fc00 enable is_rx 
+03fa 78507c00 disable is_tx 
+03fb 78287c00 enable swfine 
+03fc 6fe14838 fetch 2 ,mem_24g_rx_window 
+03fd 98003600 iforce stop_watch 
+03fe 37c18400 correlate null ,timeout 
+03ff 242c223d nbranch g24_sync_timeout ,sync 
+0400 20404caf call rf_debug_rx_sync_line 
+0401 c517a1f6 bmark1 mark_ble_lr ,g24_receive_skip_fec1 
+0402 202021f6 branch g24_receive_skip_fec1 
 
 p_g24_retransmit:
-0410 6fe0cac5 fetch 1 ,mem_mouse_need_soft_reset 
-0411 247a0000 nrtn blank 
-0412 20400245 call p_mouse_select_device_by_pb_button 
-0413 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0414 247a0000 nrtn blank 
-0415 6fe148a3 fetch 2 ,mem_24g_txfail_cnt 
-0416 1fe0fe01 increase 1 ,pdata 
-0417 67e148a3 store 2 ,mem_24g_txfail_cnt 
-0418 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
-0419 c2822679 bbit1 4 ,g24_tx_attempt_fail 
-041a 20400430 call p_g24_transmit_hop_process 
-041b 6fe14c67 fetch 2 ,mem_retransmit 
-041c 1fe0fe01 increase 1 ,pdata 
-041d 67e14c67 store 2 ,mem_retransmit 
-041e 2020047b branch p_g24_transmit_loop 
+0403 6fe0cac5 fetch 1 ,mem_mouse_need_soft_reset 
+0404 247a0000 nrtn blank 
+0405 2040024c call p_mouse_select_device_by_pb_button 
+0406 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+0407 247a0000 nrtn blank 
+0408 6fe148a3 fetch 2 ,mem_24g_txfail_cnt 
+0409 1fe0fe01 increase 1 ,pdata 
+040a 67e148a3 store 2 ,mem_24g_txfail_cnt 
+040b 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
+040c c2822679 bbit1 4 ,g24_tx_attempt_fail 
+040d 20400421 call p_g24_transmit_hop_process 
+040e 6fe14c67 fetch 2 ,mem_retransmit 
+040f 1fe0fe01 increase 1 ,pdata 
+0410 67e14c67 store 2 ,mem_retransmit 
+0411 2020047b branch p_g24_transmit_loop 
 
 p_g24_transmit_receive_ack:
-041f 7857fc00 disable user3 
-0420 20402246 call g24_transmit 
-0421 6fe0c82c fetch 1 ,mem_24g_no_ack 
-0422 c000a23f beq no_ack_24g ,g24_end_of_packet 
-0423 18002a00 force 0 ,radio_ctrl 
-0424 6fe2483c fetch 4 ,mem_24g_addr 
-0425 98001200 iforce access 
-0426 204010b0 call calc_mod_value_scale_le 
-0427 68488017 fetcht 1 ,mem_last_freq 
-0428 2040118f call set_freq_rx 
-0429 204011a6 call rf_rx_enable 
-042a 204003ff call p_g24_receive_rxon 
-042b 2057842d call p_g24_end_of_packet ,user3 
-042c 20600000 rtn 
-
-p_g24_end_of_packet:
-042d 708a0a00 jam 0 ,core_rf_ldo_en0 
-042e 708a0b00 jam 0 ,core_rf_ldo_en1 
-042f 2020129c branch gain_control 
+0412 7857fc00 disable user3 
+0413 20402246 call g24_transmit 
+0414 6fe0c82c fetch 1 ,mem_24g_no_ack 
+0415 c000a23f beq no_ack_24g ,g24_end_of_packet 
+0416 18002a00 force 0 ,radio_ctrl 
+0417 6fe2483c fetch 4 ,mem_24g_addr 
+0418 98001200 iforce access 
+0419 204010b0 call calc_mod_value_scale_le 
+041a 68488017 fetcht 1 ,mem_last_freq 
+041b 2040118f call set_freq_rx 
+041c 2000012c nop 300 
+041d 204011a6 call rf_rx_enable 
+041e 204003f2 call p_g24_receive_rxon 
+041f 2057a23f call g24_end_of_packet ,user3 
+0420 20600000 rtn 
 
 p_g24_transmit_hop_process:
-0430 6848c8a6 fetcht 1 ,mem_24g_retry 
-0431 6fe0c8c6 fetch 1 ,mem_24g_fast_hop_count 
-0432 98467c00 isub temp ,null 
-0433 2421269c nbranch g24_tx_fast_hop ,positive 
-0434 18408401 increase 1 ,temp 
-0435 6048c8a6 storet 1 ,mem_24g_retry 
-0436 6fe0c8c6 fetch 1 ,mem_24g_fast_hop_count 
-0437 c007843c beq 15 ,p_g24_transmit_hop_process_4ms 
-0438 6fe0c8a6 fetch 1 ,mem_24g_retry 
-0439 c00a2696 beq 20 ,g24_hop_ch_disable 
-043a c00f2696 beq 30 ,g24_hop_ch_disable 
-043b 20600000 rtn 
+0421 6848c8a6 fetcht 1 ,mem_24g_retry 
+0422 6fe0c8c6 fetch 1 ,mem_24g_fast_hop_count 
+0423 98467c00 isub temp ,null 
+0424 24210431 nbranch p_g24_tx_fast_hop ,positive 
+0425 18408401 increase 1 ,temp 
+0426 6048c8a6 storet 1 ,mem_24g_retry 
+0427 6fe0c8c6 fetch 1 ,mem_24g_fast_hop_count 
+0428 c007842d beq 15 ,p_g24_transmit_hop_process_4ms 
+0429 6fe0c8a6 fetch 1 ,mem_24g_retry 
+042a c00a2696 beq 20 ,g24_hop_ch_disable 
+042b c00f2696 beq 30 ,g24_hop_ch_disable 
+042c 20600000 rtn 
 
 p_g24_transmit_hop_process_4ms:
-043c 6fe0c8a6 fetch 1 ,mem_24g_retry 
-043d c0052696 beq 10 ,g24_hop_ch_disable 
-043e c007a696 beq 15 ,g24_hop_ch_disable 
-043f 20600000 rtn 
+042d 6fe0c8a6 fetch 1 ,mem_24g_retry 
+042e c0052696 beq 10 ,g24_hop_ch_disable 
+042f c007a696 beq 15 ,g24_hop_ch_disable 
+0430 20600000 rtn 
+
+p_g24_tx_fast_hop:
+0431 202022cb branch g24_ch 
 
 p_g24_dispatch:
-0440 c513a40e bmark1 mark_24g_rxmode ,g24_receive_dispatch 
+0432 c513a40e bmark1 mark_24g_rxmode ,g24_receive_dispatch 
 
 p_g24_transmit_dispatch:
-0441 c6930000 rtnmark0 mark_24g 
-0442 6fe0c8a1 fetch 1 ,mem_24g_conn_sm 
-0443 2020261d branch g24_transmit_dispatch + 2 
+0433 c6930000 rtnmark0 mark_24g 
+0434 6fe0c8a1 fetch 1 ,mem_24g_conn_sm 
+0435 2020261d branch g24_transmit_dispatch + 2 
+
+p_mouse_24g_fast_conn_mode_check:
+0436 6fe24891 fetch 4 ,mem_24g_receiver_addr 
+0437 684a488d fetcht 4 ,mem_24g_fast_conn_addr 
+0438 98467c00 isub temp ,null 
+0439 2022843b branch p_mouse_soft_agc_enable ,zero 
+043a 2020043e branch p_mouse_soft_agc_disable 
+
+p_mouse_soft_agc_enable:
+043b 7041ea00 jam 0 ,mem_gain_fix 
+043c 7041e891 jam tx_power_f17db ,mem_tx_power 
+043d 20600000 rtn 
+
+p_mouse_soft_agc_disable:
+043e 7041eaff jam 0xff ,mem_gain_fix 
+043f 20600000 rtn 
 
 p_g24_transmit_no_interrupt:
-0444 20402631 call g24_txdata_prep 
-0445 24340491 nbranch p_g24_nodata_transmit ,user 
+0440 20402631 call g24_txdata_prep 
+0441 2434048f nbranch p_g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-0446 20400478 call p_g24_transmit_process 
-0447 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0448 243a044d nbranch p_g24_short_sleep ,blank 
-0449 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
-044a 67e4485c store 8 ,mem_24g_enter_hibernate 
-044b 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
-044c 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
+0442 20400478 call p_g24_transmit_process 
+0443 20400436 call p_mouse_24g_fast_conn_mode_check 
+0444 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+0445 243a044a nbranch p_g24_short_sleep ,blank 
+0446 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
+0447 67e4485c store 8 ,mem_24g_enter_hibernate 
+0448 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+0449 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-044d 204026bb call g24_lpm_wait 
-044e 24740000 nrtn user 
-044f 6fe0cc69 fetch 1 ,mem_sleep_miss 
-0450 704c6900 jam 0 ,mem_sleep_miss 
-0451 1fe67c00 sub pdata ,0 ,null 
-0452 24228472 nbranch p_g24_short_sleep_last_miss ,zero 
-0453 68494c67 fetcht 2 ,mem_retransmit 
-0454 18467c00 sub temp ,0 ,null 
-0455 20228468 branch p_g24_short_sleep_default ,zero 
-0456 6fe24c59 fetch 4 ,mem_tx_time_last_delt 
-0457 203a0468 branch p_g24_short_sleep_default ,blank 
+044a 204026bb call g24_lpm_wait 
+044b 24740000 nrtn user 
+044c 6fe0cc69 fetch 1 ,mem_sleep_miss 
+044d 704c6900 jam 0 ,mem_sleep_miss 
+044e 1fe67c00 sub pdata ,0 ,null 
+044f 24228455 nbranch p_g24_short_sleep_last_miss ,zero 
+0450 68494c67 fetcht 2 ,mem_retransmit 
+0451 18467c00 sub temp ,0 ,null 
+0452 2022846c branch p_g24_short_sleep_default ,zero 
+0453 6fe24c59 fetch 4 ,mem_tx_time_last_delt 
+0454 203a046c branch p_g24_short_sleep_default ,blank 
+
+p_g24_short_sleep_last_miss:
+0455 684a4c6b fetcht 4 ,mem_sleep_miss_temp 
+0456 284ffe1f isolate1 31 ,temp 
+0457 20208467 branch p_sub_miss_temp ,true 
+0458 6fe24c59 fetch 4 ,mem_tx_time_last_delt 
+0459 9840fe00 iadd temp ,pdata 
 
 p_g24_short_sleep_notify:
-0458 684a4c4e fetcht 4 ,mem_24g_tsniff 
-0459 98460400 isub temp ,temp 
-045a 604a4c6e storet 4 ,mem_sleep_miss_temp 
-045b 2421046b nbranch p_g24_short_sleep_long ,positive 
-045c 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-045d 98467e00 isub temp ,pdata 
-045e 24210476 nbranch p_g24_short_sleep_2 ,positive 
-045f d8400600 arg 0x600 ,temp 
-0460 98467c00 isub temp ,null 
-0461 24210476 nbranch p_g24_short_sleep_2 ,positive 
+045a 684a4c4e fetcht 4 ,mem_24g_tsniff 
+045b 98460400 isub temp ,temp 
+045c 604a4c6b storet 4 ,mem_sleep_miss_temp 
+045d 2421046f nbranch p_g24_short_sleep_long ,positive 
+045e 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+045f 98467e00 isub temp ,pdata 
+0460 24210476 nbranch p_g24_short_sleep_2 ,positive 
+0461 d8400600 arg 0x600 ,temp 
+0462 98467c00 isub temp ,null 
+0463 24210476 nbranch p_g24_short_sleep_2 ,positive 
 
 p_g24_short_sleep2:
-0462 67e24c6a store 4 ,mem_sleep_time_temp 
-0463 2040046f call p_g24_miss_temp_clear 
-0464 6fe24c6a fetch 4 ,mem_sleep_time_temp 
-0465 20407daa call clk2lpo 
-0466 604a4160 storet 4 ,mem_sleep_counter 
-0467 20200340 branch p_lpm_short_sleep 
+0464 20407daa call clk2lpo 
+0465 604a4160 storet 4 ,mem_sleep_counter 
+0466 2020035a branch p_lpm_short_sleep 
+
+p_sub_miss_temp:
+0467 dfffffff arg -1 ,pdata 
+0468 98465e00 isub temp ,regext 
+0469 6fe24c59 fetch 4 ,mem_tx_time_last_delt 
+046a 9de67e00 isub regext ,pdata 
+046b 2020045a branch p_g24_short_sleep_notify 
 
 p_g24_short_sleep_default:
-0468 2040046f call p_g24_miss_temp_clear 
-0469 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-046a 20200462 branch p_g24_short_sleep2 
+046c 20400473 call p_g24_miss_temp_clear 
+046d 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+046e 20200464 branch p_g24_short_sleep2 
 
 p_g24_short_sleep_long:
-046b 18460400 sub temp ,0 ,temp 
-046c 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-046d 9840fe00 iadd temp ,pdata 
-046e 20200462 branch p_g24_short_sleep2 
+046f 18460400 sub temp ,0 ,temp 
+0470 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+0471 9840fe00 iadd temp ,pdata 
+0472 20200464 branch p_g24_short_sleep2 
 
 p_g24_miss_temp_clear:
-046f 58000000 setarg 0 
-0470 67e24c6e store 4 ,mem_sleep_miss_temp 
-0471 20600000 rtn 
-
-p_g24_short_sleep_last_miss:
-0472 6fe24c59 fetch 4 ,mem_tx_time_last_delt 
-0473 684a4c6e fetcht 4 ,mem_sleep_miss_temp 
-0474 9840fe00 iadd temp ,pdata 
-0475 20200458 branch p_g24_short_sleep_notify 
+0473 58000000 setarg 0 
+0474 67e24c6b store 4 ,mem_sleep_miss_temp 
+0475 20600000 rtn 
 
 p_g24_short_sleep_2:
 0476 704c6901 jam 1 ,mem_sleep_miss 
 0477 20600000 rtn 
 
 p_g24_transmit_process:
-0478 7048a600 jam 0 ,mem_24g_retry 
-0479 58000000 setarg 0 
+0478 58000000 setarg 0 
+0479 67e0c8a6 store 1 ,mem_24g_retry 
 047a 67e14c67 store 2 ,mem_retransmit 
 
 p_g24_transmit_loop:
-047b 2040041f call p_g24_transmit_receive_ack 
+047b 20400412 call p_g24_transmit_receive_ack 
 047c 6fe0c82c fetch 1 ,mem_24g_no_ack 
 047d c000a651 beq no_ack_24g ,g24_transmit_no_ack 
-047e 242c0410 nbranch p_g24_retransmit ,sync 
-047f 24378410 nbranch p_g24_retransmit ,user3 
-0480 204004b8 call p_send_time_check 
+047e 242c0403 nbranch p_g24_retransmit ,sync 
+047f 24378403 nbranch p_g24_retransmit ,user3 
+0480 204004b7 call p_send_time_check 
 0481 20402672 call g24_ackpayload_parse 
 0482 20400484 call p_mouse_wakeup_24g 
 0483 20202651 branch g24_transmit_no_ack 
@@ -1558,560 +1570,606 @@
 
 p_mouse_wheel_set_wakeup:
 048b 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-048c d8400040 arg gpcfg_pullup ,temp 
-048d 20406093 call gpio_config_function_int 
-048e 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
-048f d8400040 arg gpcfg_pullup ,temp 
-0490 20206093 branch gpio_config_function_int 
+048c 20403f56 call mouse_gpio_config_input_pu 
+048d 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+048e 20203f56 branch mouse_gpio_config_input_pu 
 
 p_g24_nodata_transmit:
-0491 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0492 205a049f call p_g24_send_abort_packet ,blank 
-0493 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-0494 c1008000 rtneq g24_tx_timer_int_enable 
-0495 2040269f call g24_search_receiver 
+048f 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+0490 205a049e call p_g24_send_abort_packet ,blank 
+0491 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+0492 c1008000 rtneq g24_tx_timer_int_enable 
+0493 2040269f call g24_search_receiver 
 
 p_g24_long_sleep:
-0496 204026bb call g24_lpm_wait 
-0497 24740000 nrtn user 
-0498 204026c4 call g24_setgpio_lpm_before 
-0499 704c6900 jam 0 ,mem_sleep_miss 
-049a 204004f0 call p_send_time_long_wake 
-049b 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-049c 245a3e33 ncall mouse_setgpio_hibernate ,blank 
-049d 6fe2485c fetch 4 ,mem_24g_enter_hibernate 
-049e 202026b8 branch g24_long_sleep + 3 
+0494 204026bb call g24_lpm_wait 
+0495 24740000 nrtn user 
+0496 204026c4 call g24_setgpio_lpm_before 
+0497 704c6900 jam 0 ,mem_sleep_miss 
+0498 704c6a01 jam 1 ,mem_long_sleep_flag 
+0499 204004fe call p_send_time_long_wake 
+049a 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+049b 245a3e33 ncall mouse_setgpio_hibernate ,blank 
+049c 6fe2485c fetch 4 ,mem_24g_enter_hibernate 
+049d 202026b8 branch g24_long_sleep + 3 
 
 p_g24_send_abort_packet:
-049f 70483601 jam type_ms ,mem_24g_data_type 
-04a0 7048a701 jam 1 ,mem_24g_abort_pac 
-04a1 20402642 call g24_transmit_rf_ctrl_clear 
-04a2 67e0c7c6 store 1 ,mem_24g_txbuf 
-04a3 58000000 setarg 0 
-04a4 67e3c7c7 store 7 ,mem_24g_txbuf + 1 
-04a5 6fe248a9 fetch 4 ,mem_24g_device_addr 
-04a6 67e247ce store 4 ,mem_24g_txbuf + 8 
-04a7 7048350c jam 12 ,mem_24g_datalen 
-04a8 6fe0c836 fetch 1 ,mem_24g_data_type 
-04a9 79207e03 set1 bit_abort ,pdata 
-04aa 67e0c836 store 1 ,mem_24g_data_type 
-04ab 20402291 call g24_transmit_prep 
-04ac 20200446 branch p_g24_transmit_start 
+049e 70483601 jam type_ms ,mem_24g_data_type 
+049f 7048a701 jam 1 ,mem_24g_abort_pac 
+04a0 20402642 call g24_transmit_rf_ctrl_clear 
+04a1 67e0c7c6 store 1 ,mem_24g_txbuf 
+04a2 58000000 setarg 0 
+04a3 67e3c7c7 store 7 ,mem_24g_txbuf + 1 
+04a4 6fe248a9 fetch 4 ,mem_24g_device_addr 
+04a5 67e247ce store 4 ,mem_24g_txbuf + 8 
+04a6 7048350c jam 12 ,mem_24g_datalen 
+04a7 6fe0c836 fetch 1 ,mem_24g_data_type 
+04a8 79207e03 set1 bit_abort ,pdata 
+04a9 67e0c836 store 1 ,mem_24g_data_type 
+04aa 20402291 call g24_transmit_prep 
+04ab 20200442 branch p_g24_transmit_start 
 
 p_g24_lpm_wait:
-04ad 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-04ae 243a7e56 nbranch disable_user ,blank 
-04af 78347c00 enable user 
-04b0 20401465 call lpo_calibration 
-04b1 6fe1c174 fetch 3 ,mem_clks_per_lpo 
-04b2 203a7e56 branch disable_user ,blank 
-04b3 6fe0c099 fetch 1 ,mem_lpm_mode 
-04b4 203a7e56 branch disable_user ,blank 
-04b5 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-04b6 c000fe56 beq g24_tx_timer_int_enable ,disable_user 
-04b7 20600000 rtn 
+04ac 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+04ad 243a7e56 nbranch disable_user ,blank 
+04ae 78347c00 enable user 
+04af 20401465 call lpo_calibration 
+04b0 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+04b1 203a7e56 branch disable_user ,blank 
+04b2 6fe0c099 fetch 1 ,mem_lpm_mode 
+04b3 203a7e56 branch disable_user ,blank 
+04b4 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+04b5 c000fe56 beq g24_tx_timer_int_enable ,disable_user 
+04b6 20600000 rtn 
 
 p_send_time_check:
-04b8 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-04b9 c00084ec beq g24_tx_timer_int_enable ,p_send_timer_first 
-04ba 6fe0cc52 fetch 1 ,mem_tx_count 
-04bb 203a04ec branch p_send_timer_first ,blank 
-04bc 1b227e00 copy clkn ,pdata 
-04bd 684b4c53 fetcht 6 ,mem_tx_time_last 
-04be 67e34c53 store 6 ,mem_tx_time_last 
-04bf 20407d95 call clk_diff_rt 
-04c0 67e24c59 store 4 ,mem_tx_time_last_delt 
-04c1 6fe0cc69 fetch 1 ,mem_sleep_miss 
-04c2 247a0000 nrtn blank 
-04c3 6fe14c67 fetch 2 ,mem_retransmit 
-04c4 247a0000 nrtn blank 
-04c5 6fe24c59 fetch 4 ,mem_tx_time_last_delt 
-04c6 684acc5d fetcht 5 ,mem_tx_time_sum 
-04c7 9840fe00 iadd temp ,pdata 
-04c8 67e2cc5d store 5 ,mem_tx_time_sum 
-04c9 6848cc52 fetcht 1 ,mem_tx_count 
-04ca 6fe0cc62 fetch 1 ,mem_tx_time_sum_count 
-04cb 98467c00 isub temp ,null 
-04cc 202284d0 branch p_send_time_check_average ,zero 
-04cd 18408401 increase 1 ,temp 
-04ce 6048cc52 storet 1 ,mem_tx_count 
-04cf 20600000 rtn 
+04b7 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+04b8 c00084fa beq g24_tx_timer_int_enable ,p_send_timer_first 
+04b9 6fe0cc52 fetch 1 ,mem_tx_count 
+04ba 203a04fa branch p_send_timer_first ,blank 
+04bb 1b227e00 copy clkn ,pdata 
+04bc 684b4c53 fetcht 6 ,mem_tx_time_last 
+04bd 67e34c53 store 6 ,mem_tx_time_last 
+04be 20407d95 call clk_diff_rt 
+04bf 67e24c59 store 4 ,mem_tx_time_last_delt 
+04c0 6fe0cc69 fetch 1 ,mem_sleep_miss 
+04c1 247a0000 nrtn blank 
+04c2 6fe14c67 fetch 2 ,mem_retransmit 
+04c3 247a0000 nrtn blank 
+04c4 6fe24c6b fetch 4 ,mem_sleep_miss_temp 
+04c5 247a0000 nrtn blank 
+04c6 6fe24c59 fetch 4 ,mem_tx_time_last_delt 
+04c7 684a4c4e fetcht 4 ,mem_24g_tsniff 
+04c8 18438400 lshift temp ,temp 
+04c9 98467c00 isub temp ,null 
+04ca 202104fe branch p_send_time_long_wake ,positive 
+04cb 684acc5d fetcht 5 ,mem_tx_time_sum 
+04cc 9840fe00 iadd temp ,pdata 
+04cd 67e2cc5d store 5 ,mem_tx_time_sum 
+04ce 6848cc52 fetcht 1 ,mem_tx_count 
+04cf 6fe0cc62 fetch 1 ,mem_tx_time_sum_count 
+04d0 98467c00 isub temp ,null 
+04d1 202284d5 branch p_send_time_check_average ,zero 
+04d2 18408401 increase 1 ,temp 
+04d3 6048cc52 storet 1 ,mem_tx_count 
+04d4 20600000 rtn 
 
 p_send_time_check_average:
-04d0 704c5201 jam 1 ,mem_tx_count 
-04d1 d8400000 arg 0 ,temp 
-04d2 6fe2cc5d fetch 5 ,mem_tx_time_sum 
-04d3 604acc5d storet 5 ,mem_tx_time_sum 
-04d4 6848cc62 fetcht 1 ,mem_tx_time_sum_count 
-04d5 9846fc00 idiv temp 
-04d6 20407def call wait_div_end 
-04d7 1807a200 quotient rega 
-04d8 6fe24c4e fetch 4 ,mem_24g_tsniff 
-04d9 6848cc63 fetcht 1 ,mem_tx_time_offset 
-04da 98460400 isub temp ,temp 
-04db 184085d8 increase -40 ,temp 
-04dc 1a227e00 copy rega ,pdata 
-04dd 98467e00 isub temp ,pdata 
-04de 202104e5 branch p_send_time_check_average_late ,positive 
-04df 1fe67e00 sub pdata ,0 ,pdata 
-04e0 1feb7e00 rshift2 pdata ,pdata 
-04e1 6849c8ad fetcht 3 ,mem_24g_short_sleep_set 
-04e2 98408400 iadd temp ,temp 
-04e3 6049c8ad storet 3 ,mem_24g_short_sleep_set 
-04e4 20600000 rtn 
+04d5 704c5201 jam 1 ,mem_tx_count 
+04d6 d8400000 arg 0 ,temp 
+04d7 6fe2cc5d fetch 5 ,mem_tx_time_sum 
+04d8 604acc5d storet 5 ,mem_tx_time_sum 
+04d9 6848cc62 fetcht 1 ,mem_tx_time_sum_count 
+04da 9846fc00 idiv temp 
+04db 20407def call wait_div_end 
+04dc 1807a200 quotient rega 
+04dd 6fe24c4e fetch 4 ,mem_24g_tsniff 
+04de 6848cc63 fetcht 1 ,mem_tx_time_offset 
+04df 98460400 isub temp ,temp 
+04e0 1a227e00 copy rega ,pdata 
+04e1 98467e00 isub temp ,pdata 
+04e2 202104ee branch p_send_time_check_average_late ,positive 
+04e3 1fe67e00 sub pdata ,0 ,pdata 
+04e4 1feb7e00 rshift2 pdata ,pdata 
+04e5 6849c8ad fetcht 3 ,mem_24g_short_sleep_set 
+04e6 98408400 iadd temp ,temp 
+04e7 6fe1cc64 fetch 3 ,mem_24g_short_sleep_set_init 
+04e8 da201800 arg 0x1800 ,rega 
+04e9 9a20fe00 iadd rega ,pdata 
+04ea 98467c00 isub temp ,null 
+04eb 242104f8 nbranch p_send_time_check_average_min ,positive 
+04ec 6049c8ad storet 3 ,mem_24g_short_sleep_set 
+04ed 20600000 rtn 
 
 p_send_time_check_average_late:
-04e5 1feb0400 rshift2 pdata ,temp 
-04e6 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-04e7 98460400 isub temp ,temp 
-04e8 6049c8ad storet 3 ,mem_24g_short_sleep_set 
-04e9 20600000 rtn 
+04ee 1feb0400 rshift2 pdata ,temp 
+04ef 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+04f0 98460400 isub temp ,temp 
+04f1 6fe1cc64 fetch 3 ,mem_24g_short_sleep_set_init 
+04f2 da201800 arg 0x1800 ,rega 
+04f3 9a267e00 isub rega ,pdata 
+04f4 98467c00 isub temp ,null 
+04f5 202104f8 branch p_send_time_check_average_min ,positive 
+04f6 6049c8ad storet 3 ,mem_24g_short_sleep_set 
+04f7 20600000 rtn 
 
 p_send_time_check_average_min:
-04ea 67e1c8ad store 3 ,mem_24g_short_sleep_set 
-04eb 20600000 rtn 
+04f8 67e1c8ad store 3 ,mem_24g_short_sleep_set 
+04f9 20600000 rtn 
 
 p_send_timer_first:
-04ec 704c5201 jam 1 ,mem_tx_count 
-04ed 1b227e00 copy clkn ,pdata 
-04ee 67e34c53 store 6 ,mem_tx_time_last 
-04ef 20600000 rtn 
+04fa 704c5201 jam 1 ,mem_tx_count 
+04fb 1b227e00 copy clkn ,pdata 
+04fc 67e34c53 store 6 ,mem_tx_time_last 
+04fd 20600000 rtn 
 
 p_send_time_long_wake:
-04f0 58000000 setarg 0 
-04f1 67e0cc52 store 1 ,mem_tx_count 
-04f2 67e2cc5d store 5 ,mem_tx_time_sum 
-04f3 20600000 rtn 
+04fe 58000000 setarg 0 
+04ff 67e0cc52 store 1 ,mem_tx_count 
+0500 67e2cc5d store 5 ,mem_tx_time_sum 
+0501 20600000 rtn 
 
 p_g24_pair_dispatch:
-04f4 70488b00 jam default_24g_device ,mem_24g_reconn_type 
-04f5 6fe14beb fetch 2 ,mem_24g_pair_count 
-04f6 1fe0fe01 increase 1 ,pdata 
-04f7 67e14beb store 2 ,mem_24g_pair_count 
-04f8 6fe0cbeb fetch 1 ,mem_24g_pair_count 
-04f9 1fe17eff and pdata ,0xff ,pdata 
-04fa 247a0000 nrtn blank 
-04fb 6fe0c87f fetch 1 ,mem_24g_pair_sm 
-04fc c07fa38e beq state_24g_pairing_success ,g24_pair_exit 
-04fd c0008502 beq state_24g_pairing_1 ,p_g24_pair_sm_1 
-04fe c0010504 beq state_24g_pairing_2 ,p_g24_pair_sm_2 
-04ff c001850a beq state_24g_pairing_3 ,p_g24_pair_sm_3 
-0500 c0020510 beq state_24g_pairing_4 ,p_g24_pair_sm_4 
-0501 20600000 rtn 
+0502 70488b00 jam default_24g_device ,mem_24g_reconn_type 
+0503 6fe14beb fetch 2 ,mem_24g_pair_count 
+0504 1fe0fe01 increase 1 ,pdata 
+0505 67e14beb store 2 ,mem_24g_pair_count 
+0506 6fe0cbeb fetch 1 ,mem_24g_pair_count 
+0507 1fe17eff and pdata ,0xff ,pdata 
+0508 247a0000 nrtn blank 
+0509 6fe0c87f fetch 1 ,mem_24g_pair_sm 
+050a c07fa38e beq state_24g_pairing_success ,g24_pair_exit 
+050b c0008510 beq state_24g_pairing_1 ,p_g24_pair_sm_1 
+050c c0010512 beq state_24g_pairing_2 ,p_g24_pair_sm_2 
+050d c0018518 beq state_24g_pairing_3 ,p_g24_pair_sm_3 
+050e c002051e beq state_24g_pairing_4 ,p_g24_pair_sm_4 
+050f 20600000 rtn 
 
 p_g24_pair_sm_1:
-0502 7047c6ff jam datatype_attemp ,mem_24g_txbuf 
-0503 20200511 branch p_g24_pair_sm_prep 
+0510 7047c6ff jam datatype_attemp ,mem_24g_txbuf 
+0511 2020051f branch p_g24_pair_sm_prep 
 
 p_g24_pair_sm_2:
-0504 6fe0c85b fetch 1 ,mem_24g_pair_switch 
-0505 203a0508 branch p_g24_pair_sm_2_skip ,blank 
-0506 6fe248a9 fetch 4 ,mem_24g_device_addr 
-0507 204022dc call g24_update_addr_and_synccrc8 
+0512 6fe0c85b fetch 1 ,mem_24g_pair_switch 
+0513 203a0516 branch p_g24_pair_sm_2_skip ,blank 
+0514 6fe248a9 fetch 4 ,mem_24g_device_addr 
+0515 204022dc call g24_update_addr_and_synccrc8 
 
 p_g24_pair_sm_2_skip:
-0508 7047c6aa jam datatype_bind ,mem_24g_txbuf 
-0509 20200511 branch p_g24_pair_sm_prep 
+0516 7047c6aa jam datatype_bind ,mem_24g_txbuf 
+0517 2020051f branch p_g24_pair_sm_prep 
 
 p_g24_pair_sm_3:
-050a 7047c655 jam datatype_config ,mem_24g_txbuf 
-050b 6fe0c85b fetch 1 ,mem_24g_pair_switch 
-050c 203a0511 branch p_g24_pair_sm_prep ,blank 
-050d 6fe24891 fetch 4 ,mem_24g_receiver_addr 
-050e 67e247c8 store 4 ,mem_24g_txbuf + 2 
-050f 20200513 branch p_g24_pair_sm_common 
+0518 7047c655 jam datatype_config ,mem_24g_txbuf 
+0519 6fe0c85b fetch 1 ,mem_24g_pair_switch 
+051a 203a051f branch p_g24_pair_sm_prep ,blank 
+051b 6fe24891 fetch 4 ,mem_24g_receiver_addr 
+051c 67e247c8 store 4 ,mem_24g_txbuf + 2 
+051d 20200521 branch p_g24_pair_sm_common 
 
 p_g24_pair_sm_4:
-0510 7047c622 jam datatype_ok ,mem_24g_txbuf 
+051e 7047c622 jam datatype_ok ,mem_24g_txbuf 
 
 p_g24_pair_sm_prep:
-0511 6fe248a9 fetch 4 ,mem_24g_device_addr 
-0512 67e247c8 store 4 ,mem_24g_txbuf + 2 
+051f 6fe248a9 fetch 4 ,mem_24g_device_addr 
+0520 67e247c8 store 4 ,mem_24g_txbuf + 2 
 
 p_g24_pair_sm_common:
-0513 6fe0c836 fetch 1 ,mem_24g_data_type 
-0514 1fe17e07 and_into bits_data ,pdata 
-0515 67e0c7c7 store 1 ,mem_24g_txbuf + 1 
-0516 7047cc00 jam 0 ,mem_24g_txbuf + 6 
-0517 70483507 jam 7 ,mem_24g_datalen 
-0518 20402291 call g24_transmit_prep 
-0519 2040041f call p_g24_transmit_receive_ack 
-051a 20202360 branch g24_pair_sm_common + 7 
+0521 6fe0c836 fetch 1 ,mem_24g_data_type 
+0522 1fe17e07 and_into bits_data ,pdata 
+0523 67e0c7c7 store 1 ,mem_24g_txbuf + 1 
+0524 7047cc00 jam 0 ,mem_24g_txbuf + 6 
+0525 70483507 jam 7 ,mem_24g_datalen 
+0526 20402291 call g24_transmit_prep 
+0527 20400412 call p_g24_transmit_receive_ack 
+0528 20202360 branch g24_pair_sm_common + 7 
 
 p_g24_reconn_dispatch:
-051b 6fe14889 fetch 2 ,mem_24g_reconn_count 
-051c d84001f8 arg 0x01f8 ,temp 
-051d 98417e00 iand temp ,pdata 
-051e 203a0523 branch p_g24_reconn_dispatch_next ,blank 
-051f 6fe14889 fetch 2 ,mem_24g_reconn_count 
-0520 1fe0fe01 increase 1 ,pdata 
-0521 67e14889 store 2 ,mem_24g_reconn_count 
-0522 20600000 rtn 
+0529 6fe14889 fetch 2 ,mem_24g_reconn_count 
+052a d84001f8 arg 0x01f8 ,temp 
+052b 98417e00 iand temp ,pdata 
+052c 203a0531 branch p_g24_reconn_dispatch_next ,blank 
+052d 6fe14889 fetch 2 ,mem_24g_reconn_count 
+052e 1fe0fe01 increase 1 ,pdata 
+052f 67e14889 store 2 ,mem_24g_reconn_count 
+0530 20600000 rtn 
 
 p_g24_reconn_dispatch_next:
-0523 2040259a call g24_reconn_data_prep 
-0524 2040041f call p_g24_transmit_receive_ack 
-0525 242c053c nbranch p_g24_reconn_device_fail ,sync 
-0526 2437853c nbranch p_g24_reconn_device_fail ,user3 
-0527 20402672 call g24_ackpayload_parse 
-0528 6fe24877 fetch 4 ,mem_24g_pair_addr 
-0529 684a483c fetcht 4 ,mem_24g_addr 
-052a 98467c00 isub temp ,null 
-052b 2022a32e branch g24_pair_start ,zero 
-052c 6fe248a9 fetch 4 ,mem_24g_device_addr 
-052d 684a483c fetcht 4 ,mem_24g_addr 
-052e 98467c00 isub temp ,null 
-052f 20428538 call p_g24_store_receiver_addr ,zero 
-0530 6fe0c8a1 fetch 1 ,mem_24g_conn_sm 
-0531 793ffe02 set0 state_24g_reconn ,pdata 
-0532 67e0c8a1 store 1 ,mem_24g_conn_sm 
-0533 58000000 setarg 0 
-0534 67e14883 store 2 ,mem_24g_pair_timeout 
-0535 67e14889 store 2 ,mem_24g_reconn_count 
-0536 67e14887 store 2 ,mem_24g_reconn_timeout 
-0537 20202595 branch g24_reconn_attempt_success 
+0531 2040259a call g24_reconn_data_prep 
+0532 20400412 call p_g24_transmit_receive_ack 
+0533 242c054a nbranch p_g24_reconn_device_fail ,sync 
+0534 2437854a nbranch p_g24_reconn_device_fail ,user3 
+0535 20402672 call g24_ackpayload_parse 
+0536 6fe24877 fetch 4 ,mem_24g_pair_addr 
+0537 684a483c fetcht 4 ,mem_24g_addr 
+0538 98467c00 isub temp ,null 
+0539 2022a32e branch g24_pair_start ,zero 
+053a 6fe248a9 fetch 4 ,mem_24g_device_addr 
+053b 684a483c fetcht 4 ,mem_24g_addr 
+053c 98467c00 isub temp ,null 
+053d 20428546 call p_g24_store_receiver_addr ,zero 
+053e 6fe0c8a1 fetch 1 ,mem_24g_conn_sm 
+053f 793ffe02 set0 state_24g_reconn ,pdata 
+0540 67e0c8a1 store 1 ,mem_24g_conn_sm 
+0541 58000000 setarg 0 
+0542 67e14883 store 2 ,mem_24g_pair_timeout 
+0543 67e14889 store 2 ,mem_24g_reconn_count 
+0544 67e14887 store 2 ,mem_24g_reconn_timeout 
+0545 20202595 branch g24_reconn_attempt_success 
 
 p_g24_store_receiver_addr:
-0538 6fe2480c fetch 4 ,mem_24g_rxpayload + 2 
-0539 207a0000 rtn blank 
-053a 67e24891 store 4 ,mem_24g_receiver_addr 
-053b 2020257e branch g24_ch_syncword_crc8_init 
+0546 6fe2480c fetch 4 ,mem_24g_rxpayload + 2 
+0547 207a0000 rtn blank 
+0548 67e24891 store 4 ,mem_24g_receiver_addr 
+0549 2020257e branch g24_ch_syncword_crc8_init 
 
 p_g24_reconn_device_fail:
-053c 6fe0c88c fetch 1 ,mem_24g_fast_conn_enable 
-053d 203a22cb branch g24_ch ,blank 
-053e 6fe14889 fetch 2 ,mem_24g_reconn_count 
-053f 1fe0fe01 increase 1 ,pdata 
-0540 67e14889 store 2 ,mem_24g_reconn_count 
-0541 6fe0c88a fetch 1 ,mem_24g_reconn_count + 1 
-0542 2feffe01 isolate1 1 ,pdata 
-0543 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-0544 c000a5ad beq fast_conn_and_receiver ,g24_reconn_fast_conn_and_receiver 
-0545 c00125af beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn_and_3_0 
-0546 c001a5b1 beq receiver_and_3_0_addr ,g24_reconn_receiver_and_3_0 
-0547 c0020549 beq pair_and_3_0_addr ,p_g24_reconn_pair_and_3_0 
-0548 2020256e branch g24_reconn_receiver_addr 
+054a 6fe0c88c fetch 1 ,mem_24g_fast_conn_enable 
+054b 203a22cb branch g24_ch ,blank 
+054c 6fe14889 fetch 2 ,mem_24g_reconn_count 
+054d 1fe0fe01 increase 1 ,pdata 
+054e 67e14889 store 2 ,mem_24g_reconn_count 
+054f 2feffe09 isolate1 9 ,pdata 
+0550 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+0551 c0020553 beq pair_and_3_0_addr ,p_g24_reconn_pair_and_3_0 
+0552 202025a8 branch g24_reconn_device_fail + 7 
 
 p_g24_reconn_pair_and_3_0:
-0549 2020a575 branch g24_reconn_device_3_0_addr ,true 
-054a 20202339 branch g24_pair_init_param 
+0553 2020a575 branch g24_reconn_device_3_0_addr ,true 
+0554 20202339 branch g24_pair_init_param 
+
+p_mouse_device_poweron_led_config:
+0555 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
+0556 203a48c6 branch mouse_device_poweron_timer_init ,blank 
+0557 2020012e branch p_mouse_multi_led_on_enable 
+
+p_mouse_device_discover_led_config:
+0558 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
+0559 203a48cc branch mouse_discover_setting_led_gpio ,blank 
+055a 20200129 branch p_mouse_multi_led_blink_enable 
 
 p_mouse_24g_pairing_complete:
-054b 20404544 call mouse_no_data_timer_init 
-054c d8e00001 arg mouse_24g_pairing_flag ,queue 
-054d 204046f4 call mouse_disable_function_flag 
-054e 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-054f c0004859 beq 0 ,mouse_24g_pairing_complete_enable_poweron_timer 
-0550 2040012b call p_mouse_multi_led_on_enable 
-0551 2020485a branch mouse_24g_pairing_complete_skip_poweron_timer 
+055b 2040043e call p_mouse_soft_agc_disable 
+055c 2040004d call p_mouse_fetch_normal_tx_power 
+055d 20404544 call mouse_no_data_timer_init 
+055e d8e00001 arg mouse_24g_pairing_flag ,queue 
+055f 204046f4 call mouse_disable_function_flag 
+0560 20400555 call p_mouse_device_poweron_led_config 
+0561 2020485a branch mouse_24g_pairing_complete + 3 
 
 p_mouse_24g_attempt_success:
-0552 6fe2483c fetch 4 ,mem_24g_addr 
-0553 67e24891 store 4 ,mem_24g_receiver_addr 
-0554 67e24993 store 4 ,mem_mouse_24g_addr 
-0555 2040257e call g24_ch_syncword_crc8_init 
-0556 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-0557 c000055a beq 0 ,p_mouse_24g_attempt_success_next 
-0558 2040012b call p_mouse_multi_led_on_enable 
-0559 2020055b branch p_mouse_24g_attempt_success_next + 1 
-
-p_mouse_24g_attempt_success_next:
-055a 204048c6 call mouse_device_poweron_timer_init 
-055b 20404544 call mouse_no_data_timer_init 
-055c 2020484e branch mouse_24g_attempt_success 
+0562 6fe2483c fetch 4 ,mem_24g_addr 
+0563 67e24891 store 4 ,mem_24g_receiver_addr 
+0564 67e24993 store 4 ,mem_mouse_24g_addr 
+0565 2040257e call g24_ch_syncword_crc8_init 
+0566 20400555 call p_mouse_device_poweron_led_config 
+0567 20404544 call mouse_no_data_timer_init 
+0568 204042ca call mouse_init_sensor_reset 
+0569 704aae00 jam 0 ,mem_mouse_long_mult_flag 
+056a 7048a100 jam 0 ,mem_24g_conn_sm 
+056b 70488b00 jam 0 ,mem_24g_reconn_type 
+056c 6fe24891 fetch 4 ,mem_24g_receiver_addr 
+056d 6fe2488d fetch 4 ,mem_24g_fast_conn_addr 
+056e 98467c00 isub temp ,null 
+056f 20628000 rtn zero 
+0570 2040043e call p_mouse_soft_agc_disable 
+0571 2040004d call p_mouse_fetch_normal_tx_power 
+0572 20204822 branch mouse_24g_first_store_reconn_info 
 
 p_mouse_24g_attempt_fail:
-055d 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-055e 243a0588 nbranch p_mouse_24g_hibernate_set ,blank 
-055f 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-0560 c0010564 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
-0561 c002057c beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
-0562 c0018581 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
-0563 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
+0573 2040043e call p_mouse_soft_agc_disable 
+0574 2040004d call p_mouse_fetch_normal_tx_power 
+0575 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+0576 243a059c nbranch p_mouse_24g_hibernate_set ,blank 
+0577 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+0578 c001057c beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+0579 c0020590 beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
+057a c0018595 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
+057b 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_fast_conn_attempt_fail:
-0564 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0565 c297856d bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_start_auto_pair 
-0566 c298056d bbit1 mouse_enable_auto_24g_paring ,p_mouse_24g_start_auto_pair 
-0567 c31d4806 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
-0568 6fe24993 fetch 4 ,mem_mouse_24g_addr 
-0569 684a4974 fetcht 4 ,mem_mouse_compare_addr_ff 
-056a 98467c00 isub temp ,null 
-056b 20228571 branch p_mouse_24g_start_pair_mode ,zero 
-056c 20204806 branch mouse_24g_reconn_dongle_start 
+057c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+057d c2978585 bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_start_auto_pair 
+057e c2980585 bbit1 mouse_enable_auto_24g_paring ,p_mouse_24g_start_auto_pair 
+057f c31d4806 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
+0580 6fe24993 fetch 4 ,mem_mouse_24g_addr 
+0581 684a4974 fetcht 4 ,mem_mouse_compare_addr_ff 
+0582 98467c00 isub temp ,null 
+0583 20228587 branch p_mouse_24g_start_pair_mode ,zero 
+0584 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_start_auto_pair:
-056d 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-056e c0004811 beq 0 ,mouse_24g_start_auto_pair 
-056f 20400126 call p_mouse_multi_led_blink_enable 
-0570 20204812 branch mouse_24g_start_auto_pair + 1 
+0585 20400558 call p_mouse_device_discover_led_config 
+0586 20204812 branch mouse_24g_start_auto_pair + 1 
 
 p_mouse_24g_start_pair_mode:
-0571 70488b00 jam 0 ,mem_24g_reconn_type 
-0572 d8e00001 arg mouse_24g_pairing_flag ,queue 
-0573 204046f0 call mouse_enable_function_flag 
-0574 58000000 setarg 0 
-0575 67e14887 store 2 ,mem_24g_reconn_timeout 
-0576 20404576 call mouse_stop_discovery 
-0577 2040498e call mouse_low_voltage_led_blink_disable 
-0578 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-0579 c000482d beq 0 ,mouse_24g_start_pair_mode_enable_blink_timer 
-057a 20400126 call p_mouse_multi_led_blink_enable 
-057b 2020482e branch mouse_24g_start_pair_mode_skip_blink_timer 
+0587 70488b00 jam 0 ,mem_24g_reconn_type 
+0588 d8e00001 arg mouse_24g_pairing_flag ,queue 
+0589 204046f0 call mouse_enable_function_flag 
+058a 58000000 setarg 0 
+058b 67e14887 store 2 ,mem_24g_reconn_timeout 
+058c 20404576 call mouse_stop_discovery 
+058d 2040498e call mouse_low_voltage_led_blink_disable 
+058e 20400558 call p_mouse_device_discover_led_config 
+058f 2020482e branch mouse_24g_start_pair_mode + 7 
 
 p_mouse_24g_auto_pair_attempt_fail:
-057c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-057d c3178586 bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
-057e 6fe0cbb4 fetch 1 ,mem_device_number 
-057f c0008586 beq 1 ,p_mouse_24g_attempt_fail_enter_hibernate 
-0580 2020481a branch mouse_24g_first_bluetooth_reconnect 
+0590 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0591 c317859a bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+0592 6fe0cbb4 fetch 1 ,mem_device_number 
+0593 c000859a beq 1 ,p_mouse_24g_attempt_fail_enter_hibernate 
+0594 2020481a branch mouse_24g_first_bluetooth_reconnect 
 
 p_mouse_reconn_dongle_attempt_fail:
-0581 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0582 c3178586 bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
-0583 c2898586 bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
-0584 c2890586 bbit1 mouse_enable_flash ,p_mouse_24g_attempt_fail_enter_hibernate 
-0585 20204812 branch mouse_24g_start_auto_pair + 1 
+0595 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0596 c317859a bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+0597 c289859a bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
+0598 c289059a bbit1 mouse_enable_flash ,p_mouse_24g_attempt_fail_enter_hibernate 
+0599 20204812 branch mouse_24g_start_auto_pair + 1 
 
 p_mouse_24g_attempt_fail_enter_hibernate:
-0586 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0587 c31e4839 bbit0 mouse_enable_wheel_wake_up_cancel ,mouse_24g_attempt_fail_enter_hibernate 
+059a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+059b c31e4839 bbit0 mouse_enable_wheel_wake_up_cancel ,mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_hibernate_set:
-0588 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
-0589 20402652 call g24_transmit_next_packet 
-058a 5fffffff setarg -1 
-058b 67e2485c store 4 ,mem_24g_enter_hibernate 
-058c 58000000 setarg 0 
-058d 67e3c8d0 store 7 ,mem_mouse_key 
-058e 704be101 jam 1 ,mem_sensor_shutdown_flag 
-058f 204001b1 call p_mouse_sensor_powerdown 
-0590 20200496 branch p_g24_long_sleep 
+059c 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
+059d 20402652 call g24_transmit_next_packet 
+059e 5fffffff setarg -1 
+059f 67e2485c store 4 ,mem_24g_enter_hibernate 
+05a0 58000000 setarg 0 
+05a1 67e3c8d0 store 7 ,mem_mouse_key 
+05a2 704be101 jam 1 ,mem_sensor_shutdown_flag 
+05a3 204001b6 call p_mouse_sensor_powerdown 
+05a4 20200494 branch p_g24_long_sleep 
 
 p_mouse_le_battery_updata_timer:
-0591 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0592 c39d8000 rtnbit1 mouse_enable_le_battery_service_cancel 
-0593 2020451f branch mouse_le_battery_updata_timer 
+05a5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05a6 c39d8000 rtnbit1 mouse_enable_le_battery_service_cancel 
+05a7 2020451f branch mouse_le_battery_updata_timer 
+
+p_mouse_le_send_conn_param_update_timer:
+05a8 da604ca8 arg mem_mouse_le_send_conn_param_update_timer ,regc 
+05a9 da40436c arg mouse_updata_le_param ,regb 
+05aa 2020318a branch timer_single_step 
 
 p_mouse_start_discovery:
-0594 6fe1478c fetch 2 ,mem_ui_state_map 
-0595 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-0596 2040c581 call mouse_stop_le_adv ,true 
-0597 6fe1478c fetch 2 ,mem_ui_state_map 
-0598 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-0599 2040c322 call mouse_cancel_reconnect ,true 
-059a 58000000 setarg 0 
-059b 67e14af2 store 2 ,mem_le_battery_level_updata_timer 
-059c 20404314 call mouse_bluetooth_fast_conn_disable 
-059d 6fe1478c fetch 2 ,mem_ui_state_map 
-059e c28585a7 bbit1 ui_state_ble_adv ,p_mouse_start_discovery_norandom 
-059f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05a0 c30405a7 bbit0 mouse_enable_ble_random_addre ,p_mouse_start_discovery_norandom 
-05a1 68494997 fetcht 2 ,mem_random_addr_increase_count 
-05a2 18408401 increase 1 ,temp 
-05a3 60494997 storet 2 ,mem_random_addr_increase_count 
-05a4 6049437b storet 2 ,mem_le_lap + 1 
-05a5 180a7e00 random pdata 
-05a6 67e0c37a store 1 ,mem_le_lap 
+05ab 6fe1478c fetch 2 ,mem_ui_state_map 
+05ac 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+05ad 2040c581 call mouse_stop_le_adv ,true 
+05ae 6fe1478c fetch 2 ,mem_ui_state_map 
+05af 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+05b0 2040c322 call mouse_cancel_reconnect ,true 
+05b1 58000000 setarg 0 
+05b2 67e14af2 store 2 ,mem_le_battery_level_updata_timer 
+05b3 20404314 call mouse_bluetooth_fast_conn_disable 
+05b4 6fe1478c fetch 2 ,mem_ui_state_map 
+05b5 c28585be bbit1 ui_state_ble_adv ,p_mouse_start_discovery_norandom 
+05b6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05b7 c30405be bbit0 mouse_enable_ble_random_addre ,p_mouse_start_discovery_norandom 
+05b8 68494997 fetcht 2 ,mem_random_addr_increase_count 
+05b9 18408401 increase 1 ,temp 
+05ba 60494997 storet 2 ,mem_random_addr_increase_count 
+05bb 6049437b storet 2 ,mem_le_lap + 1 
+05bc 180a7e00 random pdata 
+05bd 67e0c37a store 1 ,mem_le_lap 
 
 p_mouse_start_discovery_norandom:
-05a7 6fe1cac9 fetch 3 ,mem_mouse_le_lap_temp 
-05a8 67e1c37d store 3 ,mem_le_lap + 3 
-05a9 20403225 call app_lpm_mult_disable 
-05aa 6fe14791 fetch 2 ,mem_discovery_timeout 
-05ab 67e14ac2 store 2 ,mem_mouse_discovery_timer 
-05ac 7000bd06 jam 6 ,mem_connection_options 
-05ad 58000000 setarg 0 
-05ae 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-05af 67e0cb77 store 1 ,mem_mouse_direct_timer 
-05b0 67e0cac4 store 1 ,mem_mouse_bluetooth_reconnect_timeout 
-05b1 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
-05b2 67e0caac store 1 ,mem_mouse_clear_sensor_data_flag 
-05b3 d8e00002 arg mouse_store_eeprom_flag ,queue 
-05b4 204046f0 call mouse_enable_function_flag 
-05b5 204046e4 call mouse_bt_discovery_button_down_disable 
-05b6 6fe0cbb3 fetch 1 ,mem_mouse_bluetooth_type 
-05b7 2feffe01 isolate1 mode_4_mouse ,pdata 
-05b8 2040c3df call mouse_check_51cmd_adv ,true 
-05b9 6fe0cbb3 fetch 1 ,mem_mouse_bluetooth_type 
-05ba 2feffe00 isolate1 mode_3_mouse ,pdata 
-05bb 2040f8c4 call check_51cmd_start_discovery ,true 
-05bc 2040498e call mouse_low_voltage_led_blink_disable 
-05bd 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-05be 243a0126 nbranch p_mouse_multi_led_blink_enable ,blank 
-05bf 202048cc branch mouse_discover_setting_led_gpio 
+05be 6fe1cac9 fetch 3 ,mem_mouse_le_lap_temp 
+05bf 67e1c37d store 3 ,mem_le_lap + 3 
+05c0 20403225 call app_lpm_mult_disable 
+05c1 6fe14791 fetch 2 ,mem_discovery_timeout 
+05c2 67e14ac2 store 2 ,mem_mouse_discovery_timer 
+05c3 7000bd06 jam 6 ,mem_connection_options 
+05c4 58000000 setarg 0 
+05c5 67e14ab2 store 2 ,mem_mouse_no_data_timer 
+05c6 67e0cb77 store 1 ,mem_mouse_direct_timer 
+05c7 67e0cac4 store 1 ,mem_mouse_bluetooth_reconnect_timeout 
+05c8 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
+05c9 67e0caac store 1 ,mem_mouse_clear_sensor_data_flag 
+05ca d8e00002 arg mouse_store_eeprom_flag ,queue 
+05cb 204046f0 call mouse_enable_function_flag 
+05cc 204046e4 call mouse_bt_discovery_button_down_disable 
+05cd 6fe0cbb3 fetch 1 ,mem_mouse_bluetooth_type 
+05ce 2feffe01 isolate1 mode_4_mouse ,pdata 
+05cf 2040c3df call mouse_check_51cmd_adv ,true 
+05d0 6fe0cbb3 fetch 1 ,mem_mouse_bluetooth_type 
+05d1 2feffe00 isolate1 mode_3_mouse ,pdata 
+05d2 2040f8c4 call check_51cmd_start_discovery ,true 
+05d3 2040498e call mouse_low_voltage_led_blink_disable 
+05d4 20200558 branch p_mouse_device_discover_led_config 
+
+p_mouse_stop_discovery:
+05d5 58000000 setarg 0 
+05d6 67e14ac2 store 2 ,mem_mouse_discovery_timer 
+05d7 20204577 branch mouse_stop_discovery + 1 
 
 p_mouse_le_name_load:
-05c0 6fe44c1f fetch 8 ,mem_le_name_patch 
-05c1 207a0000 rtn blank 
-05c2 6fe0cc1e fetch 1 ,mem_le_name_patch_len 
-05c3 1fe22200 copy pdata ,rega 
-05c4 1fe67c0b sub pdata ,11 ,null 
-05c5 242105d2 nbranch p_mouse_le_name_patch_len_overflow ,positive 
-05c6 d8c04c1f arg mem_le_name_patch ,contr 
-05c7 d8a04adb arg mem_le_adv_swift_pair + 9 ,contw 
-05c8 1a227200 copy rega ,loopcnt 
-05c9 20407d5f call memcpy 
-05ca d8c04c1f arg mem_le_name_patch ,contr 
-05cb d8a0440a arg mem_le_scan_data + 2 ,contw 
-05cc 1a227200 copy rega ,loopcnt 
-05cd 20407d5f call memcpy 
-05ce d8c04c1f arg mem_le_name_patch ,contr 
-05cf d8a042f8 arg mem_le_name ,contw 
-05d0 1a227200 copy rega ,loopcnt 
-05d1 20207d5f branch memcpy 
+05d8 6fe44c1f fetch 8 ,mem_le_name_patch 
+05d9 207a0000 rtn blank 
+05da 6fe0cc1e fetch 1 ,mem_le_name_patch_len 
+05db 1fe22200 copy pdata ,rega 
+05dc 1fe67c0b sub pdata ,11 ,null 
+05dd 242105ea nbranch p_mouse_le_name_patch_len_overflow ,positive 
+05de d8c04c1f arg mem_le_name_patch ,contr 
+05df d8a04adb arg mem_le_adv_swift_pair + 9 ,contw 
+05e0 1a227200 copy rega ,loopcnt 
+05e1 20407d5f call memcpy 
+05e2 d8c04c1f arg mem_le_name_patch ,contr 
+05e3 d8a0440a arg mem_le_scan_data + 2 ,contw 
+05e4 1a227200 copy rega ,loopcnt 
+05e5 20407d5f call memcpy 
+05e6 d8c04c1f arg mem_le_name_patch ,contr 
+05e7 d8a042f8 arg mem_le_name ,contw 
+05e8 1a227200 copy rega ,loopcnt 
+05e9 20207d5f branch memcpy 
 
 p_mouse_le_name_patch_len_overflow:
-05d2 204005e8 call p_mouse_le_swift_pair_disable 
-05d3 6fe0cc1e fetch 1 ,mem_le_name_patch_len 
-05d4 1fe0fe01 increase 1 ,pdata 
-05d5 67e0cad2 store 1 ,mem_le_adv_swift_pair 
-05d6 704ad309 jam 9 ,mem_le_adv_swift_pair + 1 
-05d7 d8c04c1f arg mem_le_name_patch ,contr 
-05d8 d8a04ad4 arg mem_le_adv_swift_pair + 2 ,contw 
-05d9 1a227200 copy rega ,loopcnt 
-05da 20407d5f call memcpy 
-05db 6fe0cc1e fetch 1 ,mem_le_name_patch_len 
-05dc 1fe0fe01 increase 1 ,pdata 
-05dd 67e0c408 store 1 ,mem_le_scan_data 
-05de 70440909 jam 9 ,mem_le_scan_data + 1 
-05df d8c04c1f arg mem_le_name_patch ,contr 
-05e0 d8a0440a arg mem_le_scan_data + 2 ,contw 
-05e1 1a227200 copy rega ,loopcnt 
-05e2 20407d5f call memcpy 
-05e3 d8c04c1e arg mem_le_name_patch_len ,contr 
-05e4 d8a042f7 arg mem_le_name_len ,contw 
-05e5 1a227200 copy rega ,loopcnt 
-05e6 1f20f201 increase 1 ,loopcnt 
-05e7 20207d5f branch memcpy 
+05ea 20400600 call p_mouse_le_swift_pair_disable 
+05eb 6fe0cc1e fetch 1 ,mem_le_name_patch_len 
+05ec 1fe0fe01 increase 1 ,pdata 
+05ed 67e0cad2 store 1 ,mem_le_adv_swift_pair 
+05ee 704ad309 jam 9 ,mem_le_adv_swift_pair + 1 
+05ef d8c04c1f arg mem_le_name_patch ,contr 
+05f0 d8a04ad4 arg mem_le_adv_swift_pair + 2 ,contw 
+05f1 1a227200 copy rega ,loopcnt 
+05f2 20407d5f call memcpy 
+05f3 6fe0cc1e fetch 1 ,mem_le_name_patch_len 
+05f4 1fe0fe01 increase 1 ,pdata 
+05f5 67e0c408 store 1 ,mem_le_scan_data 
+05f6 70440909 jam 9 ,mem_le_scan_data + 1 
+05f7 d8c04c1f arg mem_le_name_patch ,contr 
+05f8 d8a0440a arg mem_le_scan_data + 2 ,contw 
+05f9 1a227200 copy rega ,loopcnt 
+05fa 20407d5f call memcpy 
+05fb d8c04c1e arg mem_le_name_patch_len ,contr 
+05fc d8a042f7 arg mem_le_name_len ,contw 
+05fd 1a227200 copy rega ,loopcnt 
+05fe 1f20f201 increase 1 ,loopcnt 
+05ff 20207d5f branch memcpy 
 
 p_mouse_le_swift_pair_disable:
-05e8 d8a04ad2 arg mem_le_adv_swift_pair ,contw 
-05e9 df200014 arg 20 ,loopcnt 
-05ea 20207d26 branch clear_mem 
+0600 d8a04ad2 arg mem_le_adv_swift_pair ,contw 
+0601 df200014 arg 20 ,loopcnt 
+0602 20207d26 branch clear_mem 
 
 p_mouse_le_bb_event_connected:
-05eb 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-05ec 245a012b ncall p_mouse_multi_led_on_enable ,blank 
-05ed 20204350 branch mouse_le_bb_event_connected 
+0603 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
+0604 245a012e ncall p_mouse_multi_led_on_enable ,blank 
+0605 20204350 branch mouse_le_bb_event_connected 
 
 p_mouse_le_bb_disconnected:
-05ee 58000000 setarg 0 
-05ef 67e14af2 store 2 ,mem_le_battery_level_updata_timer 
-05f0 704ac600 jam 0 ,mem_mouse_le_bb_connected_flag 
-05f1 58000006 setarg le_interval_7_5ms 
-05f2 67e14372 store 2 ,mem_le_interval_min 
-05f3 67e14374 store 2 ,mem_le_interval_min + 2 
-05f4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05f5 c28dc366 bbit1 mouse_enable_bt_125hz ,mouse_le_bb_disconnected_next + 2 
-05f6 58000007 setarg le_interval_8_75ms 
-05f7 20204364 branch mouse_le_bb_disconnected_next 
+0606 58000000 setarg 0 
+0607 67e14af2 store 2 ,mem_le_battery_level_updata_timer 
+0608 67e0cca7 store 1 ,mem_mouse_le_send_conn_param_update 
+0609 67e0cca8 store 1 ,mem_mouse_le_send_conn_param_update_timer 
+060a 67e0cac6 store 1 ,mem_mouse_le_bb_connected_flag 
+060b 20204366 branch mouse_le_bb_disconnected + 7 
 
 p_mouse_le_ll_start_encryt:
-05f8 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-05f9 c00085fc beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-05fa 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-05fb 20204373 branch mouse_le_ll_enable_start_enc_flag 
+060c 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+060d c0008610 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+060e 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+060f 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-05fc 2040436c call mouse_updata_le_param 
-05fd 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-05fe 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0610 2040436c call mouse_updata_le_param 
+0611 704b760a jam 10 ,mem_le_start_encrypt_timer 
+0612 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-05ff 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-0600 1fe67c0c sub pdata ,le_interval_15ms ,null 
-0601 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-0602 67e14372 store 2 ,mem_le_interval_min 
-0603 67e14374 store 2 ,mem_le_interval_min + 2 
-0604 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-0605 203a439a branch mouse_le_lpm_mult_reinit ,blank 
-0606 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-0607 98467c00 isub temp ,null 
-0608 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-0609 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-060a 67e0cb8a store 1 ,mem_lpm_mult_init 
-060b 20204386 branch mouse_le_conn_param_lpm_enable 
+0613 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+0614 1fe67c0c sub pdata ,le_interval_15ms ,null 
+0615 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+0616 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+0617 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+0618 98467c00 isub temp ,null 
+0619 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+061a 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+061b 67e0c177 store 1 ,mem_lpm_mult 
+061c 20204386 branch mouse_le_conn_param_lpm_enable 
+
+p_mouse_le_conn_param_update_rsp_recieved:
+061d 6fe0cca7 fetch 1 ,mem_mouse_le_send_conn_param_update 
+061e 247a0000 nrtn blank 
+061f 704ca701 jam 1 ,mem_mouse_le_send_conn_param_update 
+0620 704ca81e jam 30 ,mem_mouse_le_send_conn_param_update_timer 
+0621 20600000 rtn 
 
 p_le_parse_l2cap:
-060c efe10006 ifetch 2 ,contr 
-060d c002060f beq le_l2cap_cid_att ,p_le_parse_att 
-060e 202019e4 branch le_parse_l2cap + 10 
+0622 efe10006 ifetch 2 ,contr 
+0623 c0020625 beq le_l2cap_cid_att ,p_le_parse_att 
+0624 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-060f efe18006 ifetch 3 ,contr 
-0610 67e1c436 store 3 ,mem_le_att_opcode 
-0611 c0050614 beq attop_read_request ,p_le_parse_att_read_request 
-0612 c0090623 beq attop_write_request ,p_le_parse_att_write_request 
-0613 20201cd3 branch le_parse_att + 2 
+0625 efe18006 ifetch 3 ,contr 
+0626 67e1c436 store 3 ,mem_le_att_opcode 
+0627 c005062a beq attop_read_request ,p_le_parse_att_read_request 
+0628 c0090639 beq attop_write_request ,p_le_parse_att_write_request 
+0629 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_read_request:
-0614 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0615 c31d9de7 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
-0616 20401e8d call le_check_encrypt_state 
-0617 68494437 fetcht 2 ,mem_le_att_handle 
-0618 6fe0c3c0 fetch 1 ,mem_le_configuration 
-0619 c281861e bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+062a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+062b c31d9de7 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
+062c 20401e8d call le_check_encrypt_state 
+062d 68494437 fetcht 2 ,mem_le_att_handle 
+062e 6fe0c3c0 fetch 1 ,mem_le_configuration 
+062f c2818634 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-061a 6fe14437 fetch 2 ,mem_le_att_handle 
-061b c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
-061c 68494437 fetcht 2 ,mem_le_att_handle 
-061d 20201deb branch le_send_att_read_response 
+0630 6fe14437 fetch 2 ,mem_le_att_handle 
+0631 c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
+0632 68494437 fetcht 2 ,mem_le_att_handle 
+0633 20201deb branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-061e 6fe143d1 fetch 2 ,mem_le_pairing_handle 
-061f 98467c00 isub temp ,null 
-0620 2422861a nbranch p_le_send_att_read_response ,zero 
-0621 2434061a nbranch p_le_send_att_read_response ,user 
-0622 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+0634 6fe143d1 fetch 2 ,mem_le_pairing_handle 
+0635 98467c00 isub temp ,null 
+0636 24228630 nbranch p_le_send_att_read_response ,zero 
+0637 24340630 nbranch p_le_send_att_read_response ,user 
+0638 20201e10 branch le_send_att_read_response_error_insufficient_auth 
 
 p_le_parse_att_write_request:
-0623 18c22200 copy contr ,rega 
-0624 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0625 1fe0a5fd add pdata ,-3 ,regb 
-0626 20401a25 call le_writeatt_cb 
-0627 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0628 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-0629 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-062a 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-062b 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-062c c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-062d 5800001a setarg 0x001a 
-062e 68494437 fetcht 2 ,mem_le_att_handle 
-062f 98467c00 isub temp ,null 
-0630 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-0631 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+0639 18c22200 copy contr ,rega 
+063a 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+063b 1fe0a5fd add pdata ,-3 ,regb 
+063c 20401a25 call le_writeatt_cb 
+063d 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+063e c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+063f 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0640 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+0641 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0642 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+0643 5800001a setarg 0x001a 
+0644 68494437 fetcht 2 ,mem_le_att_handle 
+0645 98467c00 isub temp ,null 
+0646 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0647 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+
+p_send_lmp:
+0648 78547c00 disable user 
+0649 204059e6 call lmo_fifo_process 
+064a 6fe08049 fetch 1 ,mem_lmp_to_send 
+064b 207a0000 rtn blank 
+064c c283d730 bbit1 7 ,send_lmp_escape 
+
+p_send_lmp0:
+064d c003864f beq lmp_detach ,p_send_lmp_detach 
+064e 20205701 branch send_lmp0 
+
+p_send_lmp_detach:
+064f 2040585d call send_lmp_detach 
+0650 70007378 jam 120 ,mem_conn_timer 
+0651 20600000 rtn 
 
 p_mouse_bb_event_connected:
-0632 20404544 call mouse_no_data_timer_init 
-0633 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
-0634 245a012b ncall p_mouse_multi_led_on_enable ,blank 
-0635 202043fa branch mouse_bb_event_connected 
+0652 20404544 call mouse_no_data_timer_init 
+0653 6fe0cc40 fetch 1 ,mem_mouse_1io2led_led_enable 
+0654 245a012e ncall p_mouse_multi_led_on_enable ,blank 
+0655 202043fa branch mouse_bb_event_connected 
 
 p_hid_rx_process:
-0636 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-0637 1fe20c00 copy pdata ,contr 
-0638 efe08006 ifetch 1 ,contr 
-0639 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-063a 1fe1040f and pdata ,0x0f ,temp 
-063b 1ff1fe00 rshift4 pdata ,pdata 
-063c c004863e beq hid_type_set_idle ,p_hid_rx_process_handshake 
-063d 20204d93 branch hid_rx_process + 7 
+0656 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0657 1fe20c00 copy pdata ,contr 
+0658 efe08006 ifetch 1 ,contr 
+0659 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+065a 1fe1040f and pdata ,0x0f ,temp 
+065b 1ff1fe00 rshift4 pdata ,pdata 
+065c c004865e beq hid_type_set_idle ,p_hid_rx_process_handshake 
+065d 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-063e da200001 arg 1 ,rega 
-063f 20404dc0 call hid_malloc_tx_buff 
-0640 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-0641 e7e10005 istore 2 ,contw 
-0642 58000000 setarg 0 
-0643 e7e08005 istore 1 ,contw 
-0644 70095001 jam 1 ,mem_ui_data_txbuff_length 
-0645 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-0646 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-0647 67e0c4e2 store 1 ,mem_hid_control_state 
-0648 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-0649 20207871 branch ui_ipc_send_event 
+065e da200001 arg 1 ,rega 
+065f 20404dc0 call hid_malloc_tx_buff 
+0660 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+0661 e7e10005 istore 2 ,contw 
+0662 58000000 setarg 0 
+0663 e7e08005 istore 1 ,contw 
+0664 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0665 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+0666 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0667 67e0c4e2 store 1 ,mem_hid_control_state 
+0668 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0669 20207871 branch ui_ipc_send_event 
               org 0x800
 
 start:
Index: output/ramcode.rom
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/ramcode.rom	(revision 1416)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/ramcode.rom	(working copy)
@@ -1,105 +1,106 @@
 c284001d
-c0000308
-c0418362
-c0420369
-c042836d
-c0450382
-c0458355
-c0460388
-c057002c
-c0618092
-c06200a7
-c06380ae
-c06480b4
-c06500f5
-c06600aa
-c0670068
-c0678283
-c0680255
-c06881ba
-c06a01a5
-c06b0088
-c06c80fe
-c06f0081
-c0708338
-c0710334
-c06d0594
-c04f83c6
-c0740636
+c000030f
+c001833b
+c041037c
+c0418383
+c045038a
+c045836f
+c057002e
+c0618094
+c06200ac
+c06380b3
+c06480b9
+c06500f9
+c06600af
+c0670069
+c067828a
+c068025c
+c06881bf
+c06a01aa
+c06b0089
+c06c8101
+c06f0082
+c0708352
+c071034e
+c06d05ab
+c06d85d5
+c04f83bc
+c0740656
 2020137c
-c0100086
-c01983a2
-c01a03a7
-c04383c2
-c06e8440
-c06f03f4
-c07083d4
-c07104f4
-c074851b
-c0750444
-c07604ad
-c05083c8
-c05183d2
-c060060c
+c0100087
+c0198391
+c01a0396
+c04383b1
+c05403b5
+c06e8432
+c06f03ea
+c07083ca
+c0710502
+c0748529
+c0750440
+c07604ac
+c00d0648
+c05083be
+c05183c8
+c0600622
 2020137c
 793f8034
-245585c0
 20406df3
-2040003c
+20400039
 204041a7
 20758000
-204002b3
-6fe1c8ad
-67e1cc64
-204004f0
 2040408e
 20403d8a
 20404728
-20400063
-204001b1
+20400064
+204001b6
 20203bc9
 20758000
 20402607
 d8400358
 60494838
 204022ff
-20400060
+204004fe
+20403f1e
+204005d8
 20403d13
-2040004b
-20400121
-2040027b
-204002c0
-6fe44bab
-c30c3bf5
-204002c3
+20400050
+204002ba
+20400170
+20400163
+20400124
+20400282
+2040004a
 20203bf5
+6fe0c1e8
+67e0cca9
+20600000
+6fe0cca9
+67e0c1e8
+20600000
 6fe0c917
 c17f8000
-6fe0c917
 d8400040
 20406093
 6848c917
 20406059
-2020805a
+2020805e
 6fe0c917
 d8400080
 20406093
 6848c917
 20406059
-2020805c
-2020005e
+20208060
+20200062
 70492803
 20600000
 70492800
 20600000
 70492802
 20600000
-6fe0cc40
-245a015e
-20203f1e
-580002c6
+580002ca
 67e1489b
-580002e2
+580002e9
 67e1489d
 20203bd3
 78547c00
@@ -111,100 +112,103 @@
 2040408e
 20403f7e
 20403f83
-204001b8
+204001bd
 6fe0c8d0
 1fe17e1f
 67e0c8d0
-2434007c
-20400079
-204001a2
+2434007d
+2040007a
+204001a7
 20204544
-704ca800
-704ca900
+704ca400
+704ca500
 20600000
 20404728
-6fe0cca9
+6fe0cca5
 247a0000
-704ca964
+704ca564
 20600000
 20404990
 20407936
-204001f0
-20400204
+204001f7
+2040020b
 2020464f
 6fe0c91f
 20205af8
 1a627e00
-c01e0552
-c01c854b
-c01d055d
-c01905f8
-c02205ff
-c00a85ee
-c00a05eb
-c0008632
+c01e0562
+c01c855b
+c01d0573
+c019060c
+c00a8606
+c00a0603
+c0220613
+c020061d
+c0008652
 20204336
 6fe44bab
 c297c80a
 6fe0c938
-c0000097
+c0000099
 20203d57
 6fe44bab
 c308c803
 20403d65
-203400a1
+203400a6
 6fe44bab
-c29800a4
-c31880a4
+c29800a9
+c31880a9
 20404110
 1a217e07
-202047ff
+6848cbcb
+98467c00
+2022c827
+202000a9
 6fe0cc40
-245a0126
+245a0129
 20204806
 6fe0cc40
-245a0126
+245a0129
 2020480c
 6fe0cc42
-245a0126
+245a0129
 20203d5a
 6fe0cbaa
 247a0000
-204003a7
+20400396
 20203ebb
 58000006
 20405b0d
 c281be23
-204001ac
 204001b1
+204001b6
 20203e23
 204042e9
 20407fdc
-2040016b
-2040015e
+20400170
+20400163
 20404015
 6848c910
 20406069
 6848c910
 20406042
 6fe0c920
-d840003f
-20406093
+204001f1
 d8400003
 20403f56
 20403e40
 20406082
 d8400013
 20403f56
-204000ca
-204000d5
-204000e2
-202000e9
+204000ce
+204000d9
+204000e6
+202000ed
 6fe0c917
 c17f8000
 6fe0c928
-c00180d0
-c00100d2
+c00180d4
+c00100d6
 20600000
 6848c917
 20206069
@@ -222,7 +226,7 @@
 1fe37e00
 67e1895c
 18408401
-c20000d9
+c20000dd
 20600000
 6fe44bab
 c40a0000
@@ -238,54 +242,53 @@
 6848c914
 20406042
 6fe0c913
-d8400080
-20406093
+20403f54
 6fe0c914
-d8400080
-20206093
+20203f54
+20407fdc
+202015b1
 6848c913
 20406050
 6848c914
 20406050
 20403f88
 6fe0c91f
-d840003f
-20406093
+204001f1
 20203e44
 20403e9b
-2040019f
+204001a4
 2040232b
 20402556
 204047cd
 204048be
-20400171
-2040012f
-20400161
+20400176
+20400132
+20400166
 2040407c
 204044cc
-20400174
+20400179
 204044ff
-20400191
-20400197
+20400196
+2040019c
 20404504
 20404512
-20400591
+204005a5
 20404515
+204005a8
 2040452a
 2040452d
 20404532
 20404535
 20404022
-20400118
-2020018b
+2040011c
+20200190
 da6049bf
-da40011b
+da40011f
 2020318a
 204045f1
 6fe0cac5
-243a011f
-20600000
-20400326
+207a0000
+2040032d
 202046c0
 6fe0cc46
 67e0cc47
@@ -304,53 +307,55 @@
 6fe0cc41
 207a0000
 6fe0cc43
-c000813f
+c0008142
 6fe0cc45
-243a0137
+243a013a
 704c4100
 20600000
 6fe0cc47
-203a013c
+203a013f
 1fe0ffff
 67e0cc47
-20200146
+20200149
 704c4500
 704c4100
-20200152
+20200155
 da604c4c
-da400142
+da400145
 2020318a
 6fe0cc4b
 67e0cc4c
 6fe0cc4d
-c0008152
+c0008155
 704c4d01
 6fe0c938
-c000014c
-c000814e
-c0010150
+c000014f
+c0008151
+c0010153
 20600000
 6848cc48
-20200151
+20200154
 6848cc49
-20200151
+20200154
 6848cc4a
 20206069
 704c4d00
 6fe0c938
-c0000158
-c000815a
-c001015c
+c000015b
+c000815f
+c0010161
 20600000
 6848cc48
+18467cff
+20628000
 2020607f
 6848cc49
-2020607f
+2020015c
 6848cc4a
-2020607f
-20400158
-2040015a
 2020015c
+2040015b
+2040015f
+20200161
 6fe0cbed
 c17f8000
 6fe14ab2
@@ -360,22 +365,22 @@
 98460400
 6fe14bee
 98467e00
-2021016f
+20210174
 6848cbed
 6fe0cc40
-c000e07f
+c000815c
 20206065
 6848cbed
 20206069
 da604ba8
-da400266
+da40026d
 2020318a
 6fe0c938
-c000017a
+c000017f
 6fe44bab
 c41a8000
 6848cbca
-2020017d
+20200182
 6fe44bab
 c4190000
 6848cbcb
@@ -384,36 +389,36 @@
 1fe17e07
 6848cb9d
 98467c00
-20228184
+20228189
 202044eb
-20400189
+2040018e
 6fe0cb9f
 c1008000
 704b9f01
 20600000
-da400571
+da400587
 202044f7
 da604ab2
-da40018e
+da400193
 20203191
 6fe0c938
-c0000588
+c000059c
 2020431b
-da400194
-da604ca9
+da400199
+da604ca5
 2020318a
-704ca801
-704caa0a
+704ca401
+704ca60a
 20600000
-da40019a
-da604caa
+da40019f
+da604ca6
 2020318a
 6fe0c921
 c17f8000
 6848c921
 793f8407
 2020492b
-6fe0cca8
+6fe0cca4
 203a4956
 20600000
 6fe0c927
@@ -421,46 +426,46 @@
 2020471a
 20403f65
 6fe0c927
-c00581a9
+c00581ae
 20204238
-204001af
+204001b4
 da604be3
 2020423a
 6fe0c927
-c00581af
+c00581b4
 20204232
 58009706
 20204233
 204041a7
 20403f65
 6fe0c927
-c00581b6
+c00581bb
 2020423e
 58001f06
 20205b0c
-204001ba
+204001bf
 202040dd
 6fe0cbe1
 245a4121
 da200000
-204001c3
 204001c8
 204001cd
 204001d2
-204001df
+204001d7
+204001e4
 2020411e
 6fe0c918
-204001ec
+204001f1
 20404124
 6848c918
 20203f56
 6fe0c919
-204001ec
+204001f1
 2040412a
 6848c919
 20203f56
 6fe0c91a
-204001ec
+204001f1
 20404130
 6848c91a
 20203f56
@@ -471,10 +476,10 @@
 1fe22600
 6848c90d
 6fe0c910
-c07f81db
+c07f81e0
 2020413e
 6fe0c90d
-204001ee
+204001f4
 6848c90d
 2020414b
 6fe0c90e
@@ -484,14 +489,16 @@
 1fe22600
 6848c90e
 6fe0c910
-c07f81e8
+c07f81ed
 20204157
 6fe0c90e
-204001ee
+204001f4
 6848c90e
 20204164
+c17f8000
 d840003f
 20206093
+c17f8000
 d840003e
 20206093
 6fe44bab
@@ -501,37 +508,37 @@
 da200000
 704b9605
 6848c90f
-204001f9
+20400200
 2020402f
 6fe44bab
 c2964048
 6fe0cb93
 1fe22600
 6fe0c910
-c07f8200
+c07f8207
 2020403f
 6fe0c90f
-204001ee
+204001f4
 6848c90f
 20204195
 6fe44bab
 c41e8000
 6fe0cc3a
-243a020d
+243a0214
 6fe0cc3b
-204001ec
-2040021d
+204001f1
+20400224
 6848cc3b
 20203f56
 6fe0cc3b
 793ffe07
 67e0cc3b
-204001ee
+204001f4
 704c3f00
 6848cc3b
 6fe0cc3c
-20400236
-20400221
+2040023d
+20400228
 6848cc3b
 20203f56
 20403f56
@@ -542,10 +549,10 @@
 704c3f00
 6848cc3b
 6fe0cc3c
-2040022c
+20400233
 67e0cc3c
 6fe0cc3e
-203a0228
+203a022f
 6fe0cc3d
 c1008000
 704c3d01
@@ -561,8 +568,8 @@
 1a417e07
 6848cc3f
 18420e00
-c0038241
-c0000243
+c0038248
+c000024a
 20600000
 1fe3fe00
 1fe22400
@@ -572,8 +579,8 @@
 1a417e07
 6848cc3f
 18420e00
-c0038241
-c0000243
+c0038248
+c000024a
 20600000
 704c3e01
 20600000
@@ -587,16 +594,16 @@
 2040466a
 67e0cb94
 6fe0c910
-c07f8252
+c07f8259
 20404168
 1a227e00
 c283468d
 20204680
 6848c91b
 20403f56
-2020024f
+20200256
 2040408f
-20400258
+2040025f
 20204098
 6fe0c923
 c17f8000
@@ -609,7 +616,7 @@
 6fe0cba7
 247a0000
 6fe0cbc1
-203a0266
+203a026d
 67e0cba8
 20600000
 6fe0c927
@@ -624,8 +631,8 @@
 6848c992
 18408402
 18467c03
-20410275
-24410279
+2041027c
+24410280
 202048ff
 6fe44bab
 c40e0000
@@ -636,7 +643,7 @@
 6fe44bab
 c41e8000
 6fe0cc3b
-c2838281
+c2838288
 704c3a00
 20600000
 704c3a01
@@ -646,7 +653,7 @@
 6fe0c992
 1fe20400
 6fe44bab
-c29e828f
+c29e8296
 18427e00
 1fe0fe01
 1fe17e03
@@ -654,70 +661,70 @@
 20404095
 202045ee
 6fe0cc3e
-243a02ac
+243a02b3
 6fe44bab
-c28e02a0
+c28e02a7
 18427e00
 c1008000
-c000029c
-c001029a
+c00002a3
+c00102a1
 20600000
 58000002
-2020028c
+20200293
 58000000
-2020028c
+20200293
 58000001
-2020028c
+20200293
 58000003
-2020028c
+20200293
 18427e00
 c1008000
-c000029c
-c001029e
-c001829a
+c00002a3
+c00102a5
+c00182a1
 20600000
 18427e00
 c1010000
-c000029e
-c000829a
-c0018298
+c00002a5
+c00082a1
+c001829f
 20600000
 6fe44bab
-c28e02a6
+c28e02ad
 18427e00
 c1010000
-c0000298
-c000829a
+c000029f
+c00082a1
 20600000
-58017700
-67e1cc4e
-20402613
-7048c61e
 6fe44bab
-c40c0000
-2040260b
-7048c60f
+c30c02c3
 5800bb80
 67e1cc4e
-58004800
-67e1c8ad
-20600000
-5800e290
+58006c10
 67e1c8ad
+67e1cc64
+7048c60f
 20600000
-58001770
+58017700
+67e1cc4e
+58010b60
 67e1c8ad
+67e1cc64
+7048c61e
 20600000
 c6930000
 20403f70
 24740000
+6fe0cc6a
+704c6a00
+245a00f7
 6fe44bab
-c30a82cd
+c30a82d4
 6fe0cb8b
 243a4884
 204042cb
 6fe0c836
-c28082dc
+c28082e3
 6848c7c7
 6fe0c8d0
 9841fe00
@@ -752,20 +759,20 @@
 1fe0fe01
 67e0cba2
 1fe67c08
-242102f8
+242102ff
 2040259a
-2040041f
-242c02fe
-243782fe
+20400412
+242c0305
+24378305
 204048b5
 20402597
 6fe0cba3
 1fe0fe01
 67e0cba3
-c0080300
+c0080307
 20600000
 204022cb
-202002ee
+202002f5
 704ba300
 6fe0cba4
 c3800000
@@ -773,20 +780,20 @@
 67e0cba4
 6fe14bbc
 67e14ab2
-202001b1
+202001b6
 20800000
-24558331
+24558338
 204030f3
-2455833c
-58004c72
+24558356
+58004c6f
 67e14899
 20403bfd
 2040124a
 70804204
 6fe0c0c5
-c00c0314
+c00c031b
 70804205
-6fe0cc93
+6fe0cc8f
 67e0c17b
 58000f0f
 d8a00fff
@@ -816,8 +823,27 @@
 20002710
 20600000
 6fe0c17b
-67e0cc93
+67e0cc8f
 20600000
+2040706c
+20407597
+20406ea7
+20401b92
+2040083a
+20400342
+2020081a
+20400344
+20203109
+20400346
+20207850
+6fe0c48c
+207a0000
+6fe1448d
+1fe22400
+1a40a402
+efe08012
+c17f8000
+20207813
 18427e00
 c17f8000
 1fe20400
@@ -831,10 +857,10 @@
 70448c00
 20600000
 6fe0c0c5
-c0040344
+c004035e
 58000000
 67f18a00
-704c638c
+704c63fa
 204012cf
 6fe24164
 9840fe00
@@ -864,6 +890,13 @@
 708a8500
 70892140
 2020125d
+6fe0c1ea
+67e08964
+20401150
+708a0a00
+6fe08964
+67e0c1ea
+20600000
 70890005
 20000002
 70890000
@@ -871,63 +904,13 @@
 c00c1168
 708a8729
 2020117d
-20401190
-58007676
-67f10968
-20600000
-6fe0c938
-c08011a7
-6fe0cc92
-243a0379
-2000012c
-20404ca7
-d8c041eb
-98c08c00
-efe08006
-67f08961
-7089602e
-202011b3
-6ff08960
-1fe1fe01
-67f08960
-70896104
-202011b3
-704c9200
-20600000
-704c9201
-20600000
-6fe0cc92
-243a0385
+6fe0c1e8
+c048838e
+c04a1244
 2020123b
 708a395b
 708a3a01
 2020122a
-6ff089a2
-2feffe06
-7920fe07
-67e0c1e9
-6ff089a3
-1fe1040f
-18438400
-1ff1fe00
-98408400
-184fa203
-6fe0c1e9
-2040039d
-1fe67e00
-9a20fe00
-1fe0fff7
-1fe17fff
-2feffe08
-2420839b
-58000000
-67e08019
-20600000
-2feffe07
-24608000
-d840ff00
-9841fe00
-20600000
 da20099e
 d840000c
 58000030
@@ -964,6 +947,13 @@
 245a7861
 704be200
 20207851
+18427e00
+c28016a5
+c28083b9
+20201690
+20401694
+708a6d89
+20600000
 70008000
 202013b7
 6fe0c3dd
@@ -991,7 +981,7 @@
 20404cb5
 785d7c00
 c517a273
-c51683e8
+c51683de
 19317e00
 1fecfe00
 1ff1fe00
@@ -1001,7 +991,7 @@
 6fe0c1f0
 1fe37200
 20000002
-c20003ea
+c20003e0
 19317e00
 1fecfe00
 1ff18400
@@ -1009,7 +999,7 @@
 08008608
 18427e00
 08008628
-202003e6
+202003dc
 6fe0c864
 2040168b
 6fe2483c
@@ -1018,11 +1008,8 @@
 20401161
 6848c83a
 204016c8
-6ff08960
-79207e03
-67f08960
 204021d5
-c5978404
+c59783f7
 783cfc00
 2000001e
 204021d5
@@ -1040,7 +1027,7 @@
 202021f6
 6fe0cac5
 247a0000
-20400245
+2040024c
 6fe0c8a7
 247a0000
 6fe148a3
@@ -1048,7 +1035,7 @@
 67e148a3
 6fe0c8a4
 c2822679
-20400430
+20400421
 6fe14c67
 1fe0fe01
 67e14c67
@@ -1063,21 +1050,19 @@
 204010b0
 68488017
 2040118f
+2000012c
 204011a6
-204003ff
-2057842d
+204003f2
+2057a23f
 20600000
-708a0a00
-708a0b00
-2020129c
 6848c8a6
 6fe0c8c6
 98467c00
-2421269c
+24210431
 18408401
 6048c8a6
 6fe0c8c6
-c007843c
+c007842d
 6fe0c8a6
 c00a2696
 c00f2696
@@ -1086,15 +1071,27 @@
 c0052696
 c007a696
 20600000
+202022cb
 c513a40e
 c6930000
 6fe0c8a1
 2020261d
+6fe24891
+684a488d
+98467c00
+2022843b
+2020043e
+7041ea00
+7041e891
+20600000
+7041eaff
+20600000
 20402631
-24340491
+2434048f
 20400478
+20400436
 6fe0cbe1
-243a044d
+243a044a
 6fe448b0
 67e4485c
 6fe148c2
@@ -1104,53 +1101,56 @@
 6fe0cc69
 704c6900
 1fe67c00
-24228472
+24228455
 68494c67
 18467c00
-20228468
+2022846c
 6fe24c59
-203a0468
+203a046c
+684a4c6b
+284ffe1f
+20208467
+6fe24c59
+9840fe00
 684a4c4e
 98460400
-604a4c6e
-2421046b
+604a4c6b
+2421046f
 6fe1c8ad
 98467e00
 24210476
 d8400600
 98467c00
 24210476
-67e24c6a
-2040046f
-6fe24c6a
 20407daa
 604a4160
-20200340
-2040046f
+2020035a
+dfffffff
+98465e00
+6fe24c59
+9de67e00
+2020045a
+20400473
 6fe1c8ad
-20200462
+20200464
 18460400
 6fe1c8ad
 9840fe00
-20200462
+20200464
 58000000
-67e24c6e
+67e24c6b
 20600000
-6fe24c59
-684a4c6e
-9840fe00
-20200458
 704c6901
 20600000
-7048a600
 58000000
+67e0c8a6
 67e14c67
-2040041f
+20400412
 6fe0c82c
 c000a651
-242c0410
-24378410
-204004b8
+242c0403
+24378403
+204004b7
 20402672
 20400484
 20202651
@@ -1162,13 +1162,11 @@
 6fe44bab
 c41e0000
 6fe0c913
-d8400040
-20406093
+20403f56
 6fe0c914
-d8400040
-20206093
+20203f56
 6fe0c8a7
-205a049f
+205a049e
 6fe0c8bd
 c1008000
 2040269f
@@ -1176,7 +1174,8 @@
 24740000
 204026c4
 704c6900
-204004f0
+704c6a01
+204004fe
 6fe0cbe1
 245a3e33
 6fe2485c
@@ -1194,7 +1193,7 @@
 79207e03
 67e0c836
 20402291
-20200446
+20200442
 6fe0cbaa
 243a7e56
 78347c00
@@ -1207,9 +1206,9 @@
 c000fe56
 20600000
 6fe0c8bd
-c00084ec
+c00084fa
 6fe0cc52
-203a04ec
+203a04fa
 1b227e00
 684b4c53
 67e34c53
@@ -1219,14 +1218,20 @@
 247a0000
 6fe14c67
 247a0000
+6fe24c6b
+247a0000
 6fe24c59
+684a4c4e
+18438400
+98467c00
+202104fe
 684acc5d
 9840fe00
 67e2cc5d
 6848cc52
 6fe0cc62
 98467c00
-202284d0
+202284d5
 18408401
 6048cc52
 20600000
@@ -1241,19 +1246,28 @@
 6fe24c4e
 6848cc63
 98460400
-184085d8
 1a227e00
 98467e00
-202104e5
+202104ee
 1fe67e00
 1feb7e00
 6849c8ad
 98408400
+6fe1cc64
+da201800
+9a20fe00
+98467c00
+242104f8
 6049c8ad
 20600000
 1feb0400
 6fe1c8ad
 98460400
+6fe1cc64
+da201800
+9a267e00
+98467c00
+202104f8
 6049c8ad
 20600000
 67e1c8ad
@@ -1275,25 +1289,25 @@
 247a0000
 6fe0c87f
 c07fa38e
-c0008502
-c0010504
-c001850a
-c0020510
+c0008510
+c0010512
+c0018518
+c002051e
 20600000
 7047c6ff
-20200511
+2020051f
 6fe0c85b
-203a0508
+203a0516
 6fe248a9
 204022dc
 7047c6aa
-20200511
+2020051f
 7047c655
 6fe0c85b
-203a0511
+203a051f
 6fe24891
 67e247c8
-20200513
+20200521
 7047c622
 6fe248a9
 67e247c8
@@ -1303,20 +1317,20 @@
 7047cc00
 70483507
 20402291
-2040041f
+20400412
 20202360
 6fe14889
 d84001f8
 98417e00
-203a0523
+203a0531
 6fe14889
 1fe0fe01
 67e14889
 20600000
 2040259a
-2040041f
-242c053c
-2437853c
+20400412
+242c054a
+2437854a
 20402672
 6fe24877
 684a483c
@@ -1325,7 +1339,7 @@
 6fe248a9
 684a483c
 98467c00
-20428538
+20428546
 6fe0c8a1
 793ffe02
 67e0c8a1
@@ -1343,53 +1357,61 @@
 6fe14889
 1fe0fe01
 67e14889
-6fe0c88a
-2feffe01
+2feffe09
 6fe0c88b
-c000a5ad
-c00125af
-c001a5b1
-c0020549
-2020256e
+c0020553
+202025a8
 2020a575
 20202339
+6fe0cc40
+203a48c6
+2020012e
+6fe0cc40
+203a48cc
+20200129
+2040043e
+2040004d
 20404544
 d8e00001
 204046f4
-6fe0cc40
-c0004859
-2040012b
+20400555
 2020485a
 6fe2483c
 67e24891
 67e24993
 2040257e
-6fe0cc40
-c000055a
-2040012b
-2020055b
-204048c6
+20400555
 20404544
-2020484e
+204042ca
+704aae00
+7048a100
+70488b00
+6fe24891
+6fe2488d
+98467c00
+20628000
+2040043e
+2040004d
+20204822
+2040043e
+2040004d
 6fe0c8a5
-243a0588
+243a059c
 6fe0c88b
-c0010564
-c002057c
-c0018581
+c001057c
+c0020590
+c0018595
 20204839
 6fe44bab
-c297856d
-c298056d
+c2978585
+c2980585
 c31d4806
 6fe24993
 684a4974
 98467c00
-20228571
+20228587
 20204806
-6fe0cc40
-c0004811
-20400126
+20400558
 20204812
 70488b00
 d8e00001
@@ -1398,19 +1420,17 @@
 67e14887
 20404576
 2040498e
-6fe0cc40
-c000482d
-20400126
+20400558
 2020482e
 6fe44bab
-c3178586
+c317859a
 6fe0cbb4
-c0008586
+c000859a
 2020481a
 6fe44bab
-c3178586
-c2898586
-c2890586
+c317859a
+c289859a
+c289059a
 20204812
 6fe44bab
 c31e4839
@@ -1421,11 +1441,14 @@
 58000000
 67e3c8d0
 704be101
-204001b1
-20200496
+204001b6
+20200494
 6fe44bab
 c39d8000
 2020451f
+da604ca8
+da40436c
+2020318a
 6fe1478c
 2feffe0b
 2040c581
@@ -1436,9 +1459,9 @@
 67e14af2
 20404314
 6fe1478c
-c28585a7
+c28585be
 6fe44bab
-c30405a7
+c30405be
 68494997
 18408401
 60494997
@@ -1467,15 +1490,16 @@
 2feffe00
 2040f8c4
 2040498e
-6fe0cc40
-243a0126
-202048cc
+20200558
+58000000
+67e14ac2
+20204577
 6fe44c1f
 207a0000
 6fe0cc1e
 1fe22200
 1fe67c0b
-242105d2
+242105ea
 d8c04c1f
 d8a04adb
 1a227200
@@ -1488,7 +1512,7 @@
 d8a042f8
 1a227200
 20207d5f
-204005e8
+20400600
 6fe0cc1e
 1fe0fe01
 67e0cad2
@@ -1514,60 +1538,58 @@
 df200014
 20207d26
 6fe0cc40
-245a012b
+245a012e
 20204350
 58000000
 67e14af2
-704ac600
-58000006
-67e14372
-67e14374
-6fe44bab
-c28dc366
-58000007
-20204364
+67e0cca7
+67e0cca8
+67e0cac6
+20204366
 6fe0cac7
-c00085fc
+c0008610
 704b7614
 20204373
 2040436c
-704b7605
+704b760a
 20204373
 6fe082c1
 1fe67c0c
 24214384
-67e14372
-67e14374
 6fe082c3
-203a439a
 6848cb8a
 98467c00
 2021439a
 6fe082c3
-67e0cb8a
+67e0c177
 20204386
+6fe0cca7
+247a0000
+704ca701
+704ca81e
+20600000
 efe10006
-c002060f
+c0020625
 202019e4
 efe18006
 67e1c436
-c0050614
-c0090623
+c005062a
+c0090639
 20201cd3
 6fe44bab
 c31d9de7
 20401e8d
 68494437
 6fe0c3c0
-c281861e
+c2818634
 6fe14437
 c0181ec8
 68494437
 20201deb
 6fe143d1
 98467c00
-2422861a
-2434061a
+24228630
+24340630
 20201e10
 18c22200
 6fe143d4
@@ -1584,9 +1606,19 @@
 98467c00
 24229e73
 20201e10
+78547c00
+204059e6
+6fe08049
+207a0000
+c283d730
+c003864f
+20205701
+2040585d
+70007378
+20600000
 20404544
 6fe0cc40
-245a012b
+245a012e
 202043fa
 6fe10315
 1fe20c00
@@ -1594,7 +1626,7 @@
 67e0c5f5
 1fe1040f
 1ff1fe00
-c004863e
+c004865e
 20204d93
 da200001
 20404dc0
Index: output/sched.rom
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/sched.rom	(revision 1416)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/output/sched.rom	(working copy)
@@ -1,5 +1,5 @@
 mem_patch00:
-01   #mem_patch00
+09   #mem_patch00
 00   #mem_patch01
 00   #mem_patch02
 00   #mem_patch03
@@ -15,8 +15,8 @@
 00   #mem_patch0d
 00   #mem_patch0e
 00   #mem_patch0f
-38   #mem_patch10
-1c   #mem_patch11
+0c   #mem_patch10
+0c   #mem_patch11
 00   #mem_patch12
 80   #mem_patch13
 00   #mem_patch14
@@ -26,7 +26,7 @@
 98   #mem_patch18
 d6   #mem_patch19
 53   #mem_patch1a
-46   #mem_patch1b
+4e   #mem_patch1b
 06   #mem_patch1c
 01   #mem_patch1d
 00   #mem_patch1e
@@ -34,7 +34,7 @@
 00   #mem_patch20
 00   #mem_patch21
 00   #mem_patch22
-00   #mem_patch23
+04   #mem_patch23
 01   #mem_patch24
 00   #mem_patch25
 18   #mem_patch26
@@ -52,7 +52,7 @@
 00   #mem_patch32
 00   #mem_patch33
 0a   #mem_patch34
-00   #mem_patch35
+01   #mem_patch35
 00   #mem_patch36
 00   #mem_patch37
 01   #mem_patch38
@@ -69,7 +69,7 @@
 mem_lpm_xtalcnt:38
 mem_fcomp_div:18
 
-mem_tx_power:01#3dbm
+mem_tx_power:0a#10dbm
 mem_rf_init_data:ff
 mem_rf_init_ptr:mem_rf_init_data
 
@@ -79,7 +79,8 @@
 
 mem_dig_aon_vsel:00
 mem_gain_fix:ff
-mem_gain_second_agc_en:00
+mem_gain_table:04 00 00
+mem_gain_second_agc_en:08	#00-disbale,08-enable
 
 mem_spi_ncs_gpio:ff
 
@@ -88,6 +89,11 @@
 #mem_lpm_mult_init:20
 
 
+#mem_rf_debug_rx_gpio:8b
+#mem_rf_debug_tx_gpio:8c
+
+
+
 mem_device_option:08	#08 mouse
 
 #app_param_init already did this.
@@ -533,8 +539,8 @@
 'BT5.2 Mouse
 
 mem_le_interval_min:
-07 00 #min interval
-07 00 #max interval
+06 00 #min interval
+09 00 #max interval
 20 00 #latency
 2c 01 #timeout
 
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program/patch.prog	(revision 1416)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program/patch.prog	(working copy)
@@ -5,16 +5,19 @@
 //define FCC
 //define FIRE_KEY
 //define UART_LOG
+//define RSSI_PATCH
+//define RSSI_SORT
 define SELECT_ANGLE
+//define DISABLE_24G_LED
 
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
+	beq patch00_3,p_main_loop
+	beq patch10_2,p_shutdown_radio
 	beq patch10_3,p_set_sync_on
-	beq patch10_4,p_set_freq_rx
-	beq patch10_5,p_rf_rx_enable
 	beq patch11_2,p_txon_next
 	beq patch11_3,p_initialize_radio_cont
-	beq patch11_4,p_save_rssi
+//	beq patch11_4,p_save_rssi	/**RSSI PATCH**/
 	beq patch15_6,p_app_init
 	beq patch18_3,p_mouse_start_work
 	beq patch18_4,p_mouse_start_reconnect_device
@@ -32,7 +35,8 @@
 	beq patch1b_6,p_mouse_idle
 	beq patch1c_1,p_mouse_led_off
 	beq patch1c_2,p_mouse_led_on
-	beq patch1b_2,p_mouse_start_discovery	/**BLE PATCH**/
+	beq patch1b_2,p_mouse_start_discovery	/**BT PATCH,APPLY TO 3.0/4.0**/
+	beq patch1b_3,p_mouse_stop_discovery	/**BT PATCH,APPLY TO 3.0/4.0**/
 	beq patch13_7,p_init_param				/**CLASSIC PATCH**/
 	beq patch1d_0,p_hid_rx_process			/**CLASSIC PATCH**/
 	branch loop
@@ -42,6 +46,7 @@
 	beq patch26_3,p_adc_init_data
 	beq patch26_4,p_enable_adc
 	beq patch30_7,p_ui_timer_check
+	beq patch35_0,p_le_enable_phy_by_pdata
 	beq patch3b_5,p_g24_dispatch
 	beq patch3b_6,p_g24_receive_packet
 	beq patch3c_1,p_g24_transmit
@@ -49,36 +54,26 @@
 	beq patch3d_1,p_g24_reconn_dispatch
 	beq patch3d_2,p_g24_transmit_no_interrupt
 	beq patch3d_4,p_g24_lpm_wait
-//	beq patch3d_5,p_power_ctrl_start
+//	beq patch3d_5,p_power_ctrl_start	/**PWR PATCH**/
+	beq patch23_2,p_send_lmp		/**CLASSIC PATCH**/
 	beq patch34_1,p_le_slave_match	/**BLE PATCH**/
 	beq patch34_3,p_le_slave_unsync	/**BLE PATCH**/
 	beq patch38_0,p_le_parse_l2cap	/**BLE PATCH**/
 	branch loop
 
 
-
-
-
-
 p_app_init:
-	set0 mark_adc_enable,mark
-ifdef G24_OTA
-	ncall p_g24_load_ota_config_poweron,wake
-endif
-ifdef BLE
-	ncall p_mouse_le_name_load,wake
+ifdef UART_LOG
+	call p_device_hardware_init
 endif
+	set0 mark_adc_enable,mark
 	call enable_authrom
 	call p_mouse_setting_config
-	call mouse_init_sunt
-ifdef UART_LOG
-	call p_device_hardware_init
+ifdef DISABLE_24G_LED
+	ncall p_mouse_judge_current_mode,wake
 endif
+	call mouse_init_sunt
 	rtn wake
-	call p_g24_report
-	fetch 3,mem_24g_short_sleep_set
-	store 3,mem_24g_short_sleep_set_init
-	call p_send_time_long_wake
 	call mouse_dpi_config
 	call mouse_usb_check_enable
 	call mouse_drawing_optima_init
@@ -88,37 +83,61 @@
 
 p_mouse_setting_config:
 	rtn wake
+/**************************************pay attention***********************************************/	
+	//before 24g param init
+ifdef G24_OTA
+	call p_g24_load_ota_config_poweron
+endif
+/**************************************pay attention***********************************************/
 	call g24_transmit_init
 	arg 0x358,temp
 	storet 2,mem_24g_rx_window
 	call g24_chmap_param_init
-	call p_mouse_gpio_init
+	call p_send_time_long_wake
+	call mouse_gpio_init
+/**************************************pay attention***********************************************/
+	//before mouse_param_init
+ifdef BLE
+	call p_mouse_le_name_load
+endif
 ifdef FCC
 	call mouse_key_check_once
 	and rega,0x07,pdata
 	beq MOUSE_LMR_BUTTON,p_fcc_mode_start
 endif
 	call mouse_param_init
-ifdef SELECT_ANGLE	
+	//after mouse_param_init
+ifdef SELECT_ANGLE
 	call p_mouse_select_angle
 endif
+	call p_mouse_g24_report_setting
+/**************************************pay attention***********************************************/
+	call p_mouse_logo_led_off
+	call p_mouse_1io2led_all_off
+	call p_mouse_device_multi_led_poweron2s_init
 ifdef FIRE_KEY
 	call p_mouse_firebutton_connect_state_check
 endif
-	call p_mouse_device_multi_led_poweron2s_init
 	call p_mouse_double_dpi_judge
-	call p_g24_short_sleep_set_8ms
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_24G_250Hz,mouse_setting_config_next
-	call p_g24_short_sleep_set_4ms
-	branch mouse_setting_config_next
+	call p_mouse_store_normal_tx_power
+	branch mouse_setting_config+5
+
+
+p_mouse_store_normal_tx_power:
+	fetch 1,mem_tx_power
+	store 1,mem_normal_tx_power
+	rtn
+
+p_mouse_fetch_normal_tx_power:
+	fetch 1,mem_normal_tx_power
+	store 1,mem_tx_power
+	rtn
 
 ifdef SELECT_ANGLE	
 p_mouse_select_angle:
 	fetch 1,mem_select_sensor_angle_gpio
 	rtneq GPIO_DISABLE
 	
-	fetch 1,mem_select_sensor_angle_gpio
 	arg gpcfg_pullup,temp
 	call gpio_config_function_int
 	fetcht 1,mem_select_sensor_angle_gpio
@@ -146,10 +165,25 @@
 	rtn
 endif
 
-p_mouse_gpio_init:
-	fetch 1,mem_mouse_1io2led_led_enable
-	ncall p_mouse_1io2led_all_off,blank
-	branch mouse_gpio_init
+ifdef DISABLE_24G_LED
+//if 24g led  and MOUSE_ENABLE_POWER_ON_LED disable, toggle bt adv mode,led no blink,
+//so bt mode MOUSE_ENABLE_POWER_ON_LED set1
+p_mouse_judge_current_mode:
+	fetch 1,mem_device_flag
+	branch p_mouse_current_24g_mode,blank
+	branch p_mouse_current_bt_mode
+
+p_mouse_current_bt_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	set1 MOUSE_ENABLE_POWER_ON_LED,pdata
+	store MOUSE_FLAG_LEN,mem_mouse_flag
+	rtn
+p_mouse_current_24g_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	set0 MOUSE_ENABLE_POWER_ON_LED,pdata
+	store MOUSE_FLAG_LEN,mem_mouse_flag
+	rtn
+endif
 
 p_mouse_cb_fuction:
 	setarg p_mouse_24g_package_data
@@ -208,9 +242,10 @@
 	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
 ifdef BLE
 	beq BT_EVT_LE_START_ENC,p_mouse_le_ll_start_encryt
-	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,p_mouse_le_parse_conn_param_accepted
 	beq BT_EVT_LE_DISCONNECTED,p_mouse_le_bb_disconnected
 	beq BT_EVT_LE_CONNECTED,p_mouse_le_bb_event_connected
+	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,p_mouse_le_parse_conn_param_accepted
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,p_mouse_le_conn_param_update_rsp_recieved	
 endif
 ifdef CLASSIC
 	beq BT_EVT_BB_CONNECTED,p_mouse_bb_event_connected
@@ -235,7 +270,10 @@
 	bbit0 MOUSE_ENABLE_24G_POWER_ON_PAIRING,p_mouse_24g_reconn_general_dongle
 	call mouse_key_check_once		// pdata output:00
 	and rega,0x07,pdata
-	branch mouse_24g_start_mode+9
+	fetcht 1,mem_mouse_commbination_key_24g
+	isub temp,null
+	branch mouse_24g_start_pair_mode,zero
+	branch p_mouse_24g_reconn_general_dongle
 	
 p_mouse_24g_reconn_dongle_start:
 	fetch 1,mem_mouse_1io2led_led_enable
@@ -281,8 +319,7 @@
 	fetcht 1,mem_matrix_public_gpio
 	call gpio_clr_wake
 	fetch 1,mem_mouse_sensor_sdio_gpio
-	arg gpcfg_output_high,temp
-	call gpio_config_function_int
+	call p_mouse_gpio_config_output_high
 	arg 3,temp
 	call mouse_gpio_config_input_pu
 	call mouse_lpm_before_common
@@ -300,6 +337,7 @@
 p_mouse_set_sensor_gpio_sleep:
 	fetch 1,mem_select_sensor_angle_gpio
 	rtneq GPIO_DISABLE
+	
 	fetch 1,mem_config_sensor_angle
 	beq MOUSE_3CLK_ANGLE,p_mouse_set_sensor_gnd_low_level
 	beq MOUSE_12CLK_ANGLE,p_mouse_set_sensor_float_high_level
@@ -350,11 +388,15 @@
 	call gpio_clr_wake
 		
 	fetch 1,mem_whee_a_data_gpio
-	arg gpcfg_pulldown,temp
-	call gpio_config_function_int
+	call mouse_gpio_config_input_pd
 	fetch 1,mem_whee_b_data_gpio
-	arg gpcfg_pulldown,temp
-	branch gpio_config_function_int
+	branch mouse_gpio_config_input_pd
+
+p_mouse_short_sleep_clear_wake:
+	call clear_wake
+	branch lpm_write_gpio_wakeup
+	
+	
 
 p_mouse_lpm_before_common:
 	fetcht 1,mem_whee_a_data_gpio		//reinit gpio pu after disable wheel wakeup
@@ -364,9 +406,9 @@
 	
 	call mouse_wheel_check
 	fetch 1,mem_mouse_sensor_sclk_gpio	// set sclk high
-	arg gpcfg_output_high,temp
- 	call gpio_config_function_int
-	branch mouse_lpm_before_common_next
+	call p_mouse_gpio_config_output_high
+
+	branch mouse_lpm_before_common+4
 
 //////////////////////////////LPM FUNC END////////////////////////////////////////
 
@@ -401,6 +443,7 @@
 	call mouse_le_enable_att_list_timer
 	call p_mouse_le_battery_updata_timer
 	call mouse_le_send_smp_security_request_timer
+	call p_mouse_le_send_conn_param_update_timer	
 endif
 ifdef CLASSIC
 	//bt
@@ -420,9 +463,7 @@
 p_mouse_store_device_info_check:
 	call mouse_store_device_info
 	fetch 1,mem_mouse_need_soft_reset
-	nbranch p_mouse_soft_reset,blank
-	rtn
-
+	rtn blank
 p_mouse_soft_reset:
 	call p_enable_rc_clock
 	branch mouse_soft_reset
@@ -504,13 +545,16 @@
 
 p_mouse_device_24g_led_off:
 	fetcht 1,mem_mouse_1io2led_multi_24gled
+p_gpio_set_high_impedance:
+	sub temp,GPIO_DISABLE,null
+	rtn zero
 	branch gpio_set_high_impedance
 p_mouse_device_bt1_led_off:
 	fetcht 1,mem_mouse_1io2led_multi_bt1led
-	branch gpio_set_high_impedance
+	branch p_gpio_set_high_impedance
 p_mouse_device_bt2_led_off:
 	fetcht 1,mem_mouse_1io2led_multi_bt2led
-	branch gpio_set_high_impedance
+	branch p_gpio_set_high_impedance
 
 p_mouse_1io2led_all_off:
 	call p_mouse_device_24g_led_off
@@ -532,7 +576,7 @@
 p_mouse_logo_led_off:
 	fetcht 1,mem_mouse_logo_led_gpio
 	fetch 1,mem_mouse_1io2led_led_enable
-	beq 1,gpio_set_high_impedance
+	beq 1,p_gpio_set_high_impedance
 	branch gpio_out_inactive
 p_mouse_logo_led_on:
 	fetcht 1,mem_mouse_logo_led_gpio
@@ -738,13 +782,15 @@
 
 //input:pdata gpio number
 p_mouse_gpio_config_output_high:
+	rtneq GPIO_DISABLE
 	arg gpcfg_output_high,temp
 	branch gpio_config_function_int
 		
 //input:pdata gpio number
 p_mouse_gpio_config_output_low:
+	rtneq GPIO_DISABLE
 	arg gpcfg_output_low,temp
-	branch gpio_config_function_int	
+	branch gpio_config_function_int
 
 
 p_mouse_dpi_check:
@@ -1125,31 +1171,24 @@
 
 //////////////////////////////24G FUNC////////////////////////////////////////
 
-p_g24_report:
-	setarg 0x17700
-	store 3,mem_24g_tsniff
-	call g24_interval_param_8ms
-	jam 30,mem_24g_fast_hop_count
-//	setarg 73500
-//	store 3,mem_24g_short_sleep_set
+p_mouse_g24_report_setting:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	rtnbit0 MOUSE_ENABLE_24G_250Hz
-	call g24_interval_param_4ms
-	jam 15,mem_24g_fast_hop_count
+	bbit0 MOUSE_ENABLE_24G_250Hz,p_mouse_g24_report_125hz
+p_mouse_g24_report_250hz:
 	setarg 0xbb80
 	store 3,mem_24g_tsniff
-	setarg 0x4800
-	store 3,mem_24g_short_sleep_set
-	rtn
-
-
-p_g24_short_sleep_set_8ms:
-	setarg 58000
+	setarg 0x6c10
 	store 3,mem_24g_short_sleep_set
+	store 3,mem_24g_short_sleep_set_init
+	jam 15,mem_24g_fast_hop_count
 	rtn
-p_g24_short_sleep_set_4ms:
-	setarg 6000
+p_mouse_g24_report_125hz:
+	setarg 0x17700
+	store 3,mem_24g_tsniff
+	setarg 0x10b60
 	store 3,mem_24g_short_sleep_set
+	store 3,mem_24g_short_sleep_set_init
+	jam 30,mem_24g_fast_hop_count
 	rtn
 
 
@@ -1161,6 +1200,9 @@
 endif
 	call mouse_motion
 	nrtn user
+	fetch 1,mem_long_sleep_flag
+	jam 0,mem_long_sleep_flag
+	ncall p_mouse_short_sleep_clear_wake,blank
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit0 MOUSE_ENABLE_KEYBOARD,p_mouse_24g_mouse_package_data
 	fetch 1,mem_customer_key
@@ -1244,24 +1286,19 @@
 	fetch 2,mem_ui_state_map
 	rtnbit1 UI_STATE_BLE_ADV
 	rtnbit1 UI_STATE_BT_RECONNECT
-	rtnbit1 UI_STATE_BT_DISCOVERY	
-	call p_rssi_sort	
+	rtnbit1 UI_STATE_BT_DISCOVERY
+ifdef RSSI_SORT
+	call p_rssi_sort	//affects bluetooth timing
 	call p_rssi_average
+else
+	fetchr rega,2,mem_rssi_signal_buf_ptr
+	call rssi_average
+endif
 	storet 1,mem_rssi_avg_received
-	call p_g24_fast_conn_mode_check
-	fetch 1,mem_soft_agc_en
-	nrtn blank
-	fetcht 1,mem_rssi_avg_received
 	branch power_ctrl_rssi_avg_compare
 
-p_g24_fast_conn_mode_check:
-	rtnmark0 mark_24g
-	fetch 4,mem_24g_receiver_addr
-	fetcht 4,mem_24g_fast_conn_addr
-	isub temp,null
-	branch p_soft_agc_en_true,zero
-	branch p_soft_agc_en_false
-	
+
+ifdef RSSI_SORT
 p_rssi_average:
 	arg mem_mouse_rssi_signal_buf_temp+6,rega
 	arg 10,pdata
@@ -1305,6 +1342,8 @@
 	istoret 1,contw
 	istore 1,contw
 	rtn
+endif
+	
 
 endif
 
@@ -1363,6 +1402,41 @@
 	store 1,mem_xtal_cache
 	rtn
 
+p_main_loop:
+ifdef SIMPLE_PAIRING
+	call sp_calc_sequence
+endif
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256
+endif
+ifdef SIMPLE_PAIRING
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256_check
+endif
+endif
+	call le_advertising_dispatch
+	call idle_dispatch
+	call p_app_process_idle
+	branch main_loop+7
+
+p_app_process_idle:
+	call p_ui_dispatch
+	branch app_process_idle+2
+
+p_ui_dispatch:
+	call p_ui_led_dispatch
+	branch ui_timer_check
+
+p_ui_led_dispatch:
+	fetch 1,mem_ui_led_struct_num
+	rtn blank
+	fetch 2,mem_ui_led_struct_ptr
+	copy pdata,regb
+	add regb,LED_OFFSET_LED_GPIO,regb
+	ifetch 1,regb
+	rtneq GPIO_DISABLE
+	branch ui_led_dispatch+2
+
 p_mouse_led_on:
 	copy temp,pdata
 	rtneq GPIO_DISABLE
@@ -1389,7 +1463,7 @@
 	setarg 0
 	store 3,core_clkpll_ctrl0// close pll
 p_lpm_short_sleep_skip_pll_set:
-	jam 140,mem_tx_time_offset
+	jam 250,mem_tx_time_offset
 	call xtal_fast_wake
 	fetch 4,mem_sleep_counter_all
 	iadd temp,pdata
@@ -1425,6 +1499,16 @@
 	branch initialize_radio_cont+8
 
 
+p_shutdown_radio:
+	fetch 1,mem_gain_fix	//filter gain_control
+	store 1,mem_temp
+	call shutdown_radio+1
+	jam 0,core_rf_ldo_en0	//RFPLL vco_LDO disable
+	fetch 1,mem_temp
+	store 1,mem_gain_fix
+	rtn
+
+
 p_set_sync_on:
 	jam 0x5,modem_en
 	nop 2
@@ -1436,77 +1520,20 @@
 	branch set_sync_on_16m
 
 
-p_set_freq_rx:
-	call set_freq_rx+1
-	setarg 0x7676
-	store 2,0x8968
-	rtn
-
-
-p_rf_rx_enable:
-	fetch 1,mem_device_flag
-	bne MODE_24G_DEVICE,rf_rx_enable+1
-
-	fetch 1,mem_soft_agc_en
-	nbranch p_rf_rx_enable_soft_agc,blank
-	nop 300
-	call rf_debug_rx_gpio_high
-	arg mem_gain_table,contr
-	iadd contr,contr
-	ifetch 1,contr
-	store 1,core_rf_rx_gain_fix
-	jam 0x2e,core_rf_rx_agc_ctrl
-	branch rf_rx_enable_no_soft_agc_next
-	
-p_rf_rx_enable_soft_agc:
-	fetch 1,core_rf_rx_agc_ctrl
-	or pdata,0x01,pdata					//disable agc		
-	store 1,core_rf_rx_agc_ctrl
-	jam 0x04,core_rf_rx_gain_fix		//set agc level
-	branch rf_rx_enable_no_soft_agc_next
-
-p_soft_agc_en_false:
-	jam 0,mem_soft_agc_en
-	rtn
-p_soft_agc_en_true:
-	jam 1,mem_soft_agc_en
-	rtn
-
-
 p_txon_next:
-	fetch 1,mem_soft_agc_en
-	nbranch p_set_tx_power_f17db,blank
-	branch set_tx_power_10db
-	//fetch 1,mem_tx_power
-	//beq TX_POWER_F30DB,p_set_tx_power_f30db
-	//beq TX_POWER_F40DB,p_set_tx_power_f40db
-	//beq TX_POWER_F50DB,p_set_tx_power_f50db
-	//beq TX_POWER_F60DB,p_set_tx_power_f60db
-	//branch txon_next+1
-/*
-p_set_tx_power_f30db:
-	jam 0x4c,core_tx_pwr_ctrl0
-	jam 0x00,core_tx_pwr_ctrl1
-	branch set_rf_ldo_cfg89
-p_set_tx_power_f40db:
-	jam 0x45,core_tx_pwr_ctrl0
-	jam 0x00,core_tx_pwr_ctrl1
-	branch set_rf_ldo_cfg89
-p_set_tx_power_f50db:
-	jam 0x42,core_tx_pwr_ctrl0
-	jam 0x00,core_tx_pwr_ctrl1
-	branch set_rf_ldo_cfg89
-p_set_tx_power_f60db:
-	jam 0x41,core_tx_pwr_ctrl0
-	jam 0x00,core_tx_pwr_ctrl1
-	branch set_rf_ldo_cfg89
-*/
-p_set_tx_power_f17db:	//F17dbm
+	fetch 1,mem_tx_power
+	beq TX_POWER_F17DB,p_set_tx_power_f17db	//fast conn
+	beq TX_POWER_F20DB,set_tx_power_f20db	//pair mode
+	branch set_tx_power_10db	//others
+
+p_set_tx_power_f17db:
 	jam 0x5b,core_tx_pwr_ctrl0
 	jam 0x01,core_tx_pwr_ctrl1
 	branch set_rf_ldo_cfg89
 
 
+ifdef RSSI_PATCH
+
 p_save_rssi:
 	// bit6 is signed bit. 
 	fetch 1,modem_nb_pow 
@@ -1540,6 +1567,7 @@
 	ior temp,pdata
 	rtn
 
+endif
 
 
 p_adc_init_data:
@@ -1588,6 +1616,16 @@
 
 
 
+p_le_enable_phy_by_pdata:
+	copy temp,pdata
+	bbit1 BIT_LE_1M_PHY,le_enable
+	bbit1 BIT_LE_2M_PHY,p_le_enable_2M
+	branch le_enable_phy_by_pdata+5
+
+p_le_enable_2M:
+	call le_enable_2M
+	jam 0x89,core_rx_bq_cfg0	//bit7 set1,improve 2M rx sensitivity
+	rtn
 
 
 
@@ -1676,9 +1714,6 @@
 	call set_sync_on
 	fetcht 1,mem_24g_ch
 	call le_rf_rx_enable
-	fetch 1,core_rf_rx_agc_ctrl
-	set1 3,pdata
-	store 1,core_rf_rx_agc_ctrl
 p_g24_receive_rxon:
 	call g24_prep
 	bmark0 mark_ble_lr,p_g24_receive_nolr
@@ -1728,22 +1763,18 @@
 	call calc_mod_value_scale_le	
 	fetcht 1,mem_last_freq
 	call set_freq_rx
+	nop 300	
 	call rf_rx_enable
 	call p_g24_receive_rxon
-	call p_g24_end_of_packet,user3
+	call g24_end_of_packet,user3
 	rtn
 
-p_g24_end_of_packet:
-	jam 0,core_rf_ldo_en0
-	jam 0,core_rf_ldo_en1
-	branch gain_control
-
 
 p_g24_transmit_hop_process:
 	fetcht 1,mem_24g_retry
 	fetch 1,mem_24g_fast_hop_count			// 125Hz=11  250Hz=5
 	isub temp,null
-	nbranch g24_tx_fast_hop,positive		// >= (6+6)or(3+3) hop fast    fail packet count >= 2
+	nbranch p_g24_tx_fast_hop,positive		// >= (6+6)or(3+3) hop fast    fail packet count >= 2
 	increase 1,temp
 	storet 1,mem_24g_retry
 	fetch 1,mem_24g_fast_hop_count
@@ -1758,6 +1789,13 @@
 	beq 15,g24_hop_ch_disable
 	rtn
 
+p_g24_tx_fast_hop:
+ifdef PW_CTRL
+	call power_ctrl_txpower_incrs
+	call power_ctrl_pac_succ_decrs
+endif	
+	branch g24_ch
+
 
 p_g24_dispatch:
 	bmark1 mark_24g_rxmode,g24_receive_dispatch
@@ -1770,6 +1808,21 @@
 	branch g24_transmit_dispatch+2
 
 
+p_mouse_24g_fast_conn_mode_check:
+	fetch 4,mem_24g_receiver_addr
+	fetcht 4,mem_24g_fast_conn_addr
+	isub temp,null
+	branch p_mouse_soft_agc_enable,zero
+	branch p_mouse_soft_agc_disable
+
+p_mouse_soft_agc_enable:
+	jam 0,mem_gain_fix
+	jam TX_POWER_F17DB,mem_tx_power
+	rtn
+p_mouse_soft_agc_disable:
+	jam 0xff,mem_gain_fix
+	rtn
+
 p_g24_transmit_no_interrupt:
 	call g24_txdata_prep
 	nbranch p_g24_nodata_transmit,user
@@ -1778,6 +1831,7 @@
 ifdef PW_CTRL
 	call power_ctrl_start
 endif
+	call p_mouse_24g_fast_conn_mode_check
 	fetch 1,mem_sensor_shutdown_flag
 	nbranch p_g24_short_sleep,blank
 	fetch 8,mem_24g_long_sleep_set
@@ -1797,6 +1851,12 @@
 
 	fetch 4,mem_tx_time_last_delt
 	branch p_g24_short_sleep_default,blank
+p_g24_short_sleep_last_miss:
+	fetcht 4,mem_sleep_miss_temp
+	isolate1 31,temp
+	branch p_sub_miss_temp,true
+	fetch 4,mem_tx_time_last_delt
+	iadd temp,pdata	
 p_g24_short_sleep_notify:
 	fetcht 4,mem_24g_tsniff
 	isub temp,temp
@@ -1809,13 +1869,17 @@
 	isub temp,null
 	nbranch p_g24_short_sleep_2,positive
 p_g24_short_sleep2:
-	store 4,mem_sleep_time_temp
-	call p_g24_miss_temp_clear
-	fetch 4,mem_sleep_time_temp
 	call clk2lpo
 	storet 4,mem_sleep_counter
 	branch p_lpm_short_sleep
 
+p_sub_miss_temp:
+	arg -1,pdata
+	isub temp,regext
+	fetch 4,mem_tx_time_last_delt
+	isub  regext,pdata	
+	branch p_g24_short_sleep_notify
+
 p_g24_short_sleep_default:
 	call p_g24_miss_temp_clear
 	fetch 3,mem_24g_short_sleep_set
@@ -1832,19 +1896,15 @@
 	store 4,mem_sleep_miss_temp
 	rtn
 	
-p_g24_short_sleep_last_miss:
-	fetch 4,mem_tx_time_last_delt
-	fetcht 4,mem_sleep_miss_temp
-	iadd temp,pdata
-	branch p_g24_short_sleep_notify
+
 	
 p_g24_short_sleep_2:
 	jam 1,mem_sleep_miss
 	rtn
 
 p_g24_transmit_process:
-	jam 0,mem_24g_retry
 	setarg 0
+	store 1,mem_24g_retry	
 	store 2,mem_retransmit
 p_g24_transmit_loop:
 	call p_g24_transmit_receive_ack
@@ -1853,7 +1913,7 @@
 	nbranch p_g24_retransmit,sync
 	nbranch p_g24_retransmit,user3
 	call p_send_time_check
-	call g24_ackpayload_parse		
+	call g24_ackpayload_parse	
 ifdef G24_OTA
 	call p_g24_mouse_parse_rx
 endif
@@ -1872,11 +1932,9 @@
 	rtnbit0 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
 p_mouse_wheel_set_wakeup:
 	fetch 1,mem_whee_a_data_gpio
-	arg gpcfg_pullup,temp
- 	call gpio_config_function_int
+ 	call mouse_gpio_config_input_pu
 	fetch 1,mem_whee_b_data_gpio
-	arg gpcfg_pullup,temp
- 	branch gpio_config_function_int
+ 	branch mouse_gpio_config_input_pu
 
 p_g24_nodata_transmit:
 	fetch 1,mem_24g_abort_pac
@@ -1889,6 +1947,7 @@
 	nrtn user
 	call g24_setgpio_lpm_before
 	jam 0,mem_sleep_miss
+	jam 1,mem_long_sleep_flag
 	call p_send_time_long_wake
 	fetch 1,mem_sensor_shutdown_flag
 	ncall mouse_setgpio_hibernate,blank
@@ -1941,7 +2000,13 @@
 	nrtn blank
 	fetch 2,mem_retransmit
 	nrtn blank
+	fetch 4,mem_sleep_miss_temp
+	nrtn blank
 	fetch 4,mem_tx_time_last_delt
+	fetcht 4,mem_24g_tsniff
+	lshift temp,temp
+	isub temp,null
+	branch p_send_time_long_wake,positive
 	fetcht 5,mem_tx_time_sum
 	iadd temp,pdata
 	store 5,mem_tx_time_sum	
@@ -1966,7 +2031,6 @@
 	fetch 4,mem_24g_tsniff
 	fetcht 1,mem_tx_time_offset
 	isub temp,temp
-	increase -40,temp
 
 	copy rega,pdata
 	isub temp,pdata
@@ -1976,13 +2040,13 @@
 	rshift2 pdata,pdata
 	fetcht 3,mem_24g_short_sleep_set
 	iadd temp,temp
-/*
+
 	fetch 3,mem_24g_short_sleep_set_init
 	arg 0x1800,rega
 	iadd rega,pdata
 	isub temp,null
 	nbranch p_send_time_check_average_min,positive
-*/
+
 	storet 3,mem_24g_short_sleep_set
 	rtn
 
@@ -1990,13 +2054,13 @@
 	rshift2 pdata,temp
 	fetch 3,mem_24g_short_sleep_set
 	isub temp,temp
-/*
+
 	fetch 3,mem_24g_short_sleep_set_init
 	arg 0x1800,rega
 	isub rega,pdata
 	isub temp,null
 	branch p_send_time_check_average_min,positive
-*/
+
 	storet 3,mem_24g_short_sleep_set
 	rtn
 p_send_time_check_average_min:
@@ -2019,10 +2083,6 @@
 
 
 
-
-
-
-
 p_g24_pair_dispatch:
 	jam DEFAULT_24G_DEVICE,mem_24g_reconn_type
 	fetch 2,mem_24g_pair_count
@@ -2120,14 +2180,10 @@
 	fetch 2,mem_24g_reconn_count
 	increase 1,pdata
 	store 2,mem_24g_reconn_count
-	fetch 1,mem_24g_reconn_count+1
-	isolate1 1,pdata	// each 8 times switch
+	isolate1 9,pdata
 	fetch 1,mem_24g_reconn_type
-	beq FAST_CONN_AND_RECEIVER,g24_reconn_fast_conn_and_receiver
-	beq FAST_CONN_AND_3_0_ADDR,g24_reconn_fast_conn_and_3_0
-	beq RECEIVER_AND_3_0_ADDR,g24_reconn_receiver_and_3_0
 	beq PAIR_AND_3_0_ADDR,p_g24_reconn_pair_and_3_0
-	branch g24_reconn_receiver_addr
+	branch g24_reconn_device_fail+7
 
 p_g24_reconn_pair_and_3_0:
 	branch g24_reconn_device_3_0_addr,true
@@ -2137,36 +2193,48 @@
 
 
 
+p_mouse_device_poweron_led_config:
+	fetch 1,mem_mouse_1io2led_led_enable
+	branch mouse_device_poweron_timer_init,blank
+	branch p_mouse_multi_led_on_enable
 
-
+p_mouse_device_discover_led_config:
+	fetch 1,mem_mouse_1io2led_led_enable
+	branch mouse_discover_setting_led_gpio,blank
+	branch p_mouse_multi_led_blink_enable
 
 
 p_mouse_24g_pairing_complete:
+	call p_mouse_soft_agc_disable
+	call p_mouse_fetch_normal_tx_power
 	call mouse_no_data_timer_init
 	arg MOUSE_24G_PAIRING_FLAG,queue
 	call mouse_disable_function_flag
-	fetch 1,mem_mouse_1io2led_led_enable
-	beq 0,mouse_24g_pairing_complete_enable_poweron_timer
-	call p_mouse_multi_led_on_enable
-	branch mouse_24g_pairing_complete_skip_poweron_timer
+	call p_mouse_device_poweron_led_config
+	branch mouse_24g_pairing_complete+3
 
 p_mouse_24g_attempt_success:
 	fetch 4,mem_24g_addr
 	store 4,mem_24g_receiver_addr
 	store 4,mem_mouse_24g_addr		// if need store 24g address to eeprom/flash,need get mem_24g_addr
 	call g24_ch_syncword_crc8_init
-	fetch 1,mem_mouse_1io2led_led_enable
-	beq 0,p_mouse_24g_attempt_success_next
-	call p_mouse_multi_led_on_enable
-	branch p_mouse_24g_attempt_success_next+1
-
-p_mouse_24g_attempt_success_next:
-	call mouse_device_poweron_timer_init
+	call p_mouse_device_poweron_led_config
 	call mouse_no_data_timer_init
-	branch mouse_24g_attempt_success
-
+	call mouse_init_sensor_reset
+	jam 0,mem_mouse_long_mult_flag
+	jam 0,mem_24g_conn_sm
+	jam 0,mem_24g_reconn_type
+	fetch 4,mem_24g_receiver_addr
+	fetch 4,mem_24g_fast_conn_addr
+	isub temp,null
+	rtn zero
+	call p_mouse_soft_agc_disable
+	call p_mouse_fetch_normal_tx_power
+	branch mouse_24g_first_store_reconn_info
 
 p_mouse_24g_attempt_fail:
+	call p_mouse_soft_agc_disable
+	call p_mouse_fetch_normal_tx_power	
 	fetch 1,mem_24g_attempt_fail_flag
 	nbranch p_mouse_24g_hibernate_set,blank
 	fetch 1,mem_24g_reconn_type
@@ -2187,9 +2255,7 @@
 	branch mouse_24g_reconn_dongle_start
 
 p_mouse_24g_start_auto_pair:
-	fetch 1,mem_mouse_1io2led_led_enable
-	beq 0,mouse_24g_start_auto_pair
-	call p_mouse_multi_led_blink_enable
+	call p_mouse_device_discover_led_config
 	branch mouse_24g_start_auto_pair+1
 	
 p_mouse_24g_start_pair_mode:
@@ -2197,13 +2263,11 @@
 	arg MOUSE_24G_PAIRING_FLAG,queue
 	call mouse_enable_function_flag
 	setarg 0
-	store 2,mem_24g_reconn_timeout	
+	store 2,mem_24g_reconn_timeout
 	call mouse_stop_discovery
 	call mouse_low_voltage_led_blink_disable
-	fetch 1,mem_mouse_1io2led_led_enable
-	beq 0,mouse_24g_start_pair_mode_enable_blink_timer
-	call p_mouse_multi_led_blink_enable
-	branch mouse_24g_start_pair_mode_skip_blink_timer
+	call p_mouse_device_discover_led_config
+	branch mouse_24g_start_pair_mode+7
 
 p_mouse_24g_auto_pair_attempt_fail:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
@@ -2763,6 +2827,11 @@
 	rtnbit1 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
 	branch mouse_le_battery_updata_timer
 
+p_mouse_le_send_conn_param_update_timer:
+	arg mem_mouse_le_send_conn_param_update_timer,regc
+	arg mouse_updata_le_param,regb
+	branch timer_single_step
+
 
 p_mouse_start_discovery:
 	fetch 2,mem_ui_state_map
@@ -2807,11 +2876,13 @@
 	isolate1 MODE_3_MOUSE,pdata
 	call check_51cmd_start_discovery,true
 	call mouse_low_voltage_led_blink_disable
-	fetch 1,mem_mouse_1io2led_led_enable
-	nbranch p_mouse_multi_led_blink_enable,blank
-	branch mouse_discover_setting_led_gpio
+	branch p_mouse_device_discover_led_config
 
 
+p_mouse_stop_discovery:
+	setarg 0
+	store 2,mem_mouse_discovery_timer
+	branch mouse_stop_discovery+1
 
 p_mouse_le_name_load:
 	fetch 8,mem_le_name_patch
@@ -2876,14 +2947,10 @@
 p_mouse_le_bb_disconnected:
 	setarg 0
 	store 2,mem_le_battery_level_updata_timer
-	jam 0,mem_mouse_le_bb_connected_flag
-	setarg LE_INTERVAL_7_5MS
-	store 2,mem_le_interval_min
-	store 2,mem_le_interval_min+2
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit1 MOUSE_ENABLE_BT_125Hz,mouse_le_bb_disconnected_next+2
-	setarg LE_INTERVAL_8_75MS
-	branch mouse_le_bb_disconnected_next
+	store 1,mem_mouse_le_send_conn_param_update
+	store 1,mem_mouse_le_send_conn_param_update_timer
+	store 1,mem_mouse_le_bb_connected_flag	
+	branch mouse_le_bb_disconnected+7
 
 p_mouse_le_ll_start_encryt:
 	fetch 1,mem_mouse_le_reconnect_flag
@@ -2892,24 +2959,29 @@
 	branch mouse_le_ll_enable_start_enc_flag
 p_mouse_le_ll_reconn_start_encryt:
 	call mouse_updata_le_param
-	jam 5,mem_le_start_encrypt_timer
+	jam 10,mem_le_start_encrypt_timer
 	branch mouse_le_ll_enable_start_enc_flag
 
 p_mouse_le_parse_conn_param_accepted:
 	fetch 1,mem_le_new_conninterval
 	sub pdata,LE_INTERVAL_15MS,null
 	nbranch mouse_le_conn_param_lpm_disable,positive
-	store 2,mem_le_interval_min
-	store 2,mem_le_interval_min+2
 	fetch 1,mem_le_new_connslavelatency
-	branch mouse_le_lpm_mult_reinit,blank
 	fetcht 1,mem_lpm_mult_init
 	isub temp,null
 	branch mouse_le_lpm_mult_reinit,positive
 	fetch 1,mem_le_new_connslavelatency
-	store 1,mem_lpm_mult_init						// mouse_le_lpm_mult_reinit function will reinit mem_lpm_mult
+	store 1,mem_lpm_mult
 	branch mouse_le_conn_param_lpm_enable
 
+
+p_mouse_le_conn_param_update_rsp_recieved:
+	fetch 1,mem_mouse_le_send_conn_param_update
+	nrtn blank
+	jam 1,mem_mouse_le_send_conn_param_update
+	jam 30,mem_mouse_le_send_conn_param_update_timer
+	rtn
+
 endif
 
 
@@ -2974,6 +3046,24 @@
 	
 ifdef CLASSIC
 
+p_send_lmp:
+	disable user
+	call lmo_fifo_process
+	fetch 1,mem_lmp_to_send
+	rtn blank
+/* lmp message to be processed. this will either be because host??? */
+/* wants to send a lmp message or because one resulted from the LMP */
+/* processing section */
+/********* outgoing lmp lookup table *************/
+	bbit1 7,send_lmp_escape
+p_send_lmp0:
+	beq LMP_DETACH,p_send_lmp_detach
+	branch send_lmp0
+
+p_send_lmp_detach:
+	call send_lmp_detach
+	jam 120,mem_conn_timer
+	rtn
 
 endif
 
Index: program_patch/24g_spec_code/patch_24g.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/24g_spec_code/patch_24g.prog	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/24g_spec_code/patch_24g.prog	(working copy)
@@ -48,9 +48,6 @@
 	call set_sync_on
 	fetcht 1,mem_24g_ch
 	call le_rf_rx_enable
-	fetch 1,core_rf_rx_agc_ctrl
-	set1 3,pdata
-	store 1,core_rf_rx_agc_ctrl
 p_g24_receive_rxon:
 	call g24_prep
 	bmark0 mark_ble_lr,p_g24_receive_nolr
@@ -100,22 +97,18 @@
 	call calc_mod_value_scale_le	
 	fetcht 1,mem_last_freq
 	call set_freq_rx
+	nop 300	
 	call rf_rx_enable
 	call p_g24_receive_rxon
-	call p_g24_end_of_packet,user3
+	call g24_end_of_packet,user3
 	rtn
 
-p_g24_end_of_packet:
-	jam 0,core_rf_ldo_en0
-	jam 0,core_rf_ldo_en1
-	branch gain_control
-
 
 p_g24_transmit_hop_process:
 	fetcht 1,mem_24g_retry
 	fetch 1,mem_24g_fast_hop_count			// 125Hz=11  250Hz=5
 	isub temp,null
-	nbranch g24_tx_fast_hop,positive		// >= (6+6)or(3+3) hop fast    fail packet count >= 2
+	nbranch p_g24_tx_fast_hop,positive		// >= (6+6)or(3+3) hop fast    fail packet count >= 2
 	increase 1,temp
 	storet 1,mem_24g_retry
 	fetch 1,mem_24g_fast_hop_count
@@ -130,6 +123,13 @@
 	beq 15,g24_hop_ch_disable
 	rtn
 
+p_g24_tx_fast_hop:
+ifdef PW_CTRL
+	call power_ctrl_txpower_incrs
+	call power_ctrl_pac_succ_decrs
+endif	
+	branch g24_ch
+
 
 p_g24_dispatch:
 	bmark1 mark_24g_rxmode,g24_receive_dispatch
@@ -142,6 +142,21 @@
 	branch g24_transmit_dispatch+2
 
 
+p_mouse_24g_fast_conn_mode_check:
+	fetch 4,mem_24g_receiver_addr
+	fetcht 4,mem_24g_fast_conn_addr
+	isub temp,null
+	branch p_mouse_soft_agc_enable,zero
+	branch p_mouse_soft_agc_disable
+
+p_mouse_soft_agc_enable:
+	jam 0,mem_gain_fix
+	jam TX_POWER_F17DB,mem_tx_power
+	rtn
+p_mouse_soft_agc_disable:
+	jam 0xff,mem_gain_fix
+	rtn
+
 p_g24_transmit_no_interrupt:
 	call g24_txdata_prep
 	nbranch p_g24_nodata_transmit,user
@@ -150,6 +165,7 @@
 ifdef PW_CTRL
 	call power_ctrl_start
 endif
+	call p_mouse_24g_fast_conn_mode_check
 	fetch 1,mem_sensor_shutdown_flag
 	nbranch p_g24_short_sleep,blank
 	fetch 8,mem_24g_long_sleep_set
@@ -169,6 +185,12 @@
 
 	fetch 4,mem_tx_time_last_delt
 	branch p_g24_short_sleep_default,blank
+p_g24_short_sleep_last_miss:
+	fetcht 4,mem_sleep_miss_temp
+	isolate1 31,temp
+	branch p_sub_miss_temp,true
+	fetch 4,mem_tx_time_last_delt
+	iadd temp,pdata	
 p_g24_short_sleep_notify:
 	fetcht 4,mem_24g_tsniff
 	isub temp,temp
@@ -181,13 +203,17 @@
 	isub temp,null
 	nbranch p_g24_short_sleep_2,positive
 p_g24_short_sleep2:
-	store 4,mem_sleep_time_temp
-	call p_g24_miss_temp_clear
-	fetch 4,mem_sleep_time_temp
 	call clk2lpo
 	storet 4,mem_sleep_counter
 	branch p_lpm_short_sleep
 
+p_sub_miss_temp:
+	arg -1,pdata
+	isub temp,regext
+	fetch 4,mem_tx_time_last_delt
+	isub  regext,pdata	
+	branch p_g24_short_sleep_notify
+
 p_g24_short_sleep_default:
 	call p_g24_miss_temp_clear
 	fetch 3,mem_24g_short_sleep_set
@@ -204,19 +230,15 @@
 	store 4,mem_sleep_miss_temp
 	rtn
 	
-p_g24_short_sleep_last_miss:
-	fetch 4,mem_tx_time_last_delt
-	fetcht 4,mem_sleep_miss_temp
-	iadd temp,pdata
-	branch p_g24_short_sleep_notify
+
 	
 p_g24_short_sleep_2:
 	jam 1,mem_sleep_miss
 	rtn
 
 p_g24_transmit_process:
-	jam 0,mem_24g_retry
 	setarg 0
+	store 1,mem_24g_retry	
 	store 2,mem_retransmit
 p_g24_transmit_loop:
 	call p_g24_transmit_receive_ack
@@ -225,7 +247,7 @@
 	nbranch p_g24_retransmit,sync
 	nbranch p_g24_retransmit,user3
 	call p_send_time_check
-	call g24_ackpayload_parse		
+	call g24_ackpayload_parse	
 ifdef G24_OTA
 	call p_g24_mouse_parse_rx
 endif
@@ -244,11 +266,9 @@
 	rtnbit0 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
 p_mouse_wheel_set_wakeup:
 	fetch 1,mem_whee_a_data_gpio
-	arg gpcfg_pullup,temp
- 	call gpio_config_function_int
+ 	call mouse_gpio_config_input_pu
 	fetch 1,mem_whee_b_data_gpio
-	arg gpcfg_pullup,temp
- 	branch gpio_config_function_int
+ 	branch mouse_gpio_config_input_pu
 
 p_g24_nodata_transmit:
 	fetch 1,mem_24g_abort_pac
@@ -261,6 +281,7 @@
 	nrtn user
 	call g24_setgpio_lpm_before
 	jam 0,mem_sleep_miss
+	jam 1,mem_long_sleep_flag
 	call p_send_time_long_wake
 	fetch 1,mem_sensor_shutdown_flag
 	ncall mouse_setgpio_hibernate,blank
@@ -313,7 +334,13 @@
 	nrtn blank
 	fetch 2,mem_retransmit
 	nrtn blank
+	fetch 4,mem_sleep_miss_temp
+	nrtn blank
 	fetch 4,mem_tx_time_last_delt
+	fetcht 4,mem_24g_tsniff
+	lshift temp,temp
+	isub temp,null
+	branch p_send_time_long_wake,positive
 	fetcht 5,mem_tx_time_sum
 	iadd temp,pdata
 	store 5,mem_tx_time_sum	
@@ -338,7 +365,6 @@
 	fetch 4,mem_24g_tsniff
 	fetcht 1,mem_tx_time_offset
 	isub temp,temp
-	increase -40,temp
 
 	copy rega,pdata
 	isub temp,pdata
@@ -348,13 +374,13 @@
 	rshift2 pdata,pdata
 	fetcht 3,mem_24g_short_sleep_set
 	iadd temp,temp
-/*
+
 	fetch 3,mem_24g_short_sleep_set_init
 	arg 0x1800,rega
 	iadd rega,pdata
 	isub temp,null
 	nbranch p_send_time_check_average_min,positive
-*/
+
 	storet 3,mem_24g_short_sleep_set
 	rtn
 
@@ -362,13 +388,13 @@
 	rshift2 pdata,temp
 	fetch 3,mem_24g_short_sleep_set
 	isub temp,temp
-/*
+
 	fetch 3,mem_24g_short_sleep_set_init
 	arg 0x1800,rega
 	isub rega,pdata
 	isub temp,null
 	branch p_send_time_check_average_min,positive
-*/
+
 	storet 3,mem_24g_short_sleep_set
 	rtn
 p_send_time_check_average_min:
@@ -391,10 +417,6 @@
 
 
 
-
-
-
-
 p_g24_pair_dispatch:
 	jam DEFAULT_24G_DEVICE,mem_24g_reconn_type
 	fetch 2,mem_24g_pair_count
@@ -492,14 +514,10 @@
 	fetch 2,mem_24g_reconn_count
 	increase 1,pdata
 	store 2,mem_24g_reconn_count
-	fetch 1,mem_24g_reconn_count+1
-	isolate1 1,pdata	// each 8 times switch
+	isolate1 9,pdata
 	fetch 1,mem_24g_reconn_type
-	beq FAST_CONN_AND_RECEIVER,g24_reconn_fast_conn_and_receiver
-	beq FAST_CONN_AND_3_0_ADDR,g24_reconn_fast_conn_and_3_0
-	beq RECEIVER_AND_3_0_ADDR,g24_reconn_receiver_and_3_0
 	beq PAIR_AND_3_0_ADDR,p_g24_reconn_pair_and_3_0
-	branch g24_reconn_receiver_addr
+	branch g24_reconn_device_fail+7
 
 p_g24_reconn_pair_and_3_0:
 	branch g24_reconn_device_3_0_addr,true
@@ -507,8 +525,3 @@
 
 
 
-
-
-
-
-
Index: program_patch/24g_spec_code/patch_24g_event_deal.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/24g_spec_code/patch_24g_event_deal.prog	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/24g_spec_code/patch_24g_event_deal.prog	(working copy)
@@ -1,30 +1,47 @@
 
+
+p_mouse_device_poweron_led_config:
+	fetch 1,mem_mouse_1io2led_led_enable
+	branch mouse_device_poweron_timer_init,blank
+	branch p_mouse_multi_led_on_enable
+
+p_mouse_device_discover_led_config:
+	fetch 1,mem_mouse_1io2led_led_enable
+	branch mouse_discover_setting_led_gpio,blank
+	branch p_mouse_multi_led_blink_enable
+
+
 p_mouse_24g_pairing_complete:
+	call p_mouse_soft_agc_disable
+	call p_mouse_fetch_normal_tx_power
 	call mouse_no_data_timer_init
 	arg MOUSE_24G_PAIRING_FLAG,queue
 	call mouse_disable_function_flag
-	fetch 1,mem_mouse_1io2led_led_enable
-	beq 0,mouse_24g_pairing_complete_enable_poweron_timer
-	call p_mouse_multi_led_on_enable
-	branch mouse_24g_pairing_complete_skip_poweron_timer
+	call p_mouse_device_poweron_led_config
+	branch mouse_24g_pairing_complete+3
 
 p_mouse_24g_attempt_success:
 	fetch 4,mem_24g_addr
 	store 4,mem_24g_receiver_addr
 	store 4,mem_mouse_24g_addr		// if need store 24g address to eeprom/flash,need get mem_24g_addr
 	call g24_ch_syncword_crc8_init
-	fetch 1,mem_mouse_1io2led_led_enable
-	beq 0,p_mouse_24g_attempt_success_next
-	call p_mouse_multi_led_on_enable
-	branch p_mouse_24g_attempt_success_next+1
-
-p_mouse_24g_attempt_success_next:
-	call mouse_device_poweron_timer_init
+	call p_mouse_device_poweron_led_config
 	call mouse_no_data_timer_init
-	branch mouse_24g_attempt_success
-
+	call mouse_init_sensor_reset
+	jam 0,mem_mouse_long_mult_flag
+	jam 0,mem_24g_conn_sm
+	jam 0,mem_24g_reconn_type
+	fetch 4,mem_24g_receiver_addr
+	fetch 4,mem_24g_fast_conn_addr
+	isub temp,null
+	rtn zero
+	call p_mouse_soft_agc_disable
+	call p_mouse_fetch_normal_tx_power
+	branch mouse_24g_first_store_reconn_info
 
 p_mouse_24g_attempt_fail:
+	call p_mouse_soft_agc_disable
+	call p_mouse_fetch_normal_tx_power	
 	fetch 1,mem_24g_attempt_fail_flag
 	nbranch p_mouse_24g_hibernate_set,blank
 	fetch 1,mem_24g_reconn_type
@@ -45,9 +62,7 @@
 	branch mouse_24g_reconn_dongle_start
 
 p_mouse_24g_start_auto_pair:
-	fetch 1,mem_mouse_1io2led_led_enable
-	beq 0,mouse_24g_start_auto_pair
-	call p_mouse_multi_led_blink_enable
+	call p_mouse_device_discover_led_config
 	branch mouse_24g_start_auto_pair+1
 	
 p_mouse_24g_start_pair_mode:
@@ -55,13 +70,11 @@
 	arg MOUSE_24G_PAIRING_FLAG,queue
 	call mouse_enable_function_flag
 	setarg 0
-	store 2,mem_24g_reconn_timeout	
+	store 2,mem_24g_reconn_timeout
 	call mouse_stop_discovery
 	call mouse_low_voltage_led_blink_disable
-	fetch 1,mem_mouse_1io2led_led_enable
-	beq 0,mouse_24g_start_pair_mode_enable_blink_timer
-	call p_mouse_multi_led_blink_enable
-	branch mouse_24g_start_pair_mode_skip_blink_timer
+	call p_mouse_device_discover_led_config
+	branch mouse_24g_start_pair_mode+7
 
 p_mouse_24g_auto_pair_attempt_fail:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
Index: program_patch/ble_spec_code/patch_ble.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/ble_spec_code/patch_ble.prog	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/ble_spec_code/patch_ble.prog	(working copy)
@@ -6,6 +6,11 @@
 	rtnbit1 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
 	branch mouse_le_battery_updata_timer
 
+p_mouse_le_send_conn_param_update_timer:
+	arg mem_mouse_le_send_conn_param_update_timer,regc
+	arg mouse_updata_le_param,regb
+	branch timer_single_step
+
 
 p_mouse_start_discovery:
 	fetch 2,mem_ui_state_map
@@ -50,11 +55,13 @@
 	isolate1 MODE_3_MOUSE,pdata
 	call check_51cmd_start_discovery,true
 	call mouse_low_voltage_led_blink_disable
-	fetch 1,mem_mouse_1io2led_led_enable
-	nbranch p_mouse_multi_led_blink_enable,blank
-	branch mouse_discover_setting_led_gpio
+	branch p_mouse_device_discover_led_config
 
 
+p_mouse_stop_discovery:
+	setarg 0
+	store 2,mem_mouse_discovery_timer
+	branch mouse_stop_discovery+1
 
 p_mouse_le_name_load:
 	fetch 8,mem_le_name_patch
Index: program_patch/ble_spec_code/patch_ble_event_deal.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/ble_spec_code/patch_ble_event_deal.prog	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/ble_spec_code/patch_ble_event_deal.prog	(working copy)
@@ -9,14 +9,10 @@
 p_mouse_le_bb_disconnected:
 	setarg 0
 	store 2,mem_le_battery_level_updata_timer
-	jam 0,mem_mouse_le_bb_connected_flag
-	setarg LE_INTERVAL_7_5MS
-	store 2,mem_le_interval_min
-	store 2,mem_le_interval_min+2
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit1 MOUSE_ENABLE_BT_125Hz,mouse_le_bb_disconnected_next+2
-	setarg LE_INTERVAL_8_75MS
-	branch mouse_le_bb_disconnected_next
+	store 1,mem_mouse_le_send_conn_param_update
+	store 1,mem_mouse_le_send_conn_param_update_timer
+	store 1,mem_mouse_le_bb_connected_flag	
+	branch mouse_le_bb_disconnected+7
 
 p_mouse_le_ll_start_encryt:
 	fetch 1,mem_mouse_le_reconnect_flag
@@ -25,24 +21,29 @@
 	branch mouse_le_ll_enable_start_enc_flag
 p_mouse_le_ll_reconn_start_encryt:
 	call mouse_updata_le_param
-	jam 5,mem_le_start_encrypt_timer
+	jam 10,mem_le_start_encrypt_timer
 	branch mouse_le_ll_enable_start_enc_flag
 
 p_mouse_le_parse_conn_param_accepted:
 	fetch 1,mem_le_new_conninterval
 	sub pdata,LE_INTERVAL_15MS,null
 	nbranch mouse_le_conn_param_lpm_disable,positive
-	store 2,mem_le_interval_min
-	store 2,mem_le_interval_min+2
 	fetch 1,mem_le_new_connslavelatency
-	branch mouse_le_lpm_mult_reinit,blank
 	fetcht 1,mem_lpm_mult_init
 	isub temp,null
 	branch mouse_le_lpm_mult_reinit,positive
 	fetch 1,mem_le_new_connslavelatency
-	store 1,mem_lpm_mult_init						// mouse_le_lpm_mult_reinit function will reinit mem_lpm_mult
+	store 1,mem_lpm_mult
 	branch mouse_le_conn_param_lpm_enable
 
+
+p_mouse_le_conn_param_update_rsp_recieved:
+	fetch 1,mem_mouse_le_send_conn_param_update
+	nrtn blank
+	jam 1,mem_mouse_le_send_conn_param_update
+	jam 30,mem_mouse_le_send_conn_param_update_timer
+	rtn
+
 endif
 
 
Index: program_patch/bt_spec_code/patch_bt.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/bt_spec_code/patch_bt.prog	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/bt_spec_code/patch_bt.prog	(working copy)
@@ -1,5 +1,23 @@
 ifdef CLASSIC
 
+p_send_lmp:
+	disable user
+	call lmo_fifo_process
+	fetch 1,mem_lmp_to_send
+	rtn blank
+/* lmp message to be processed. this will either be because host??? */
+/* wants to send a lmp message or because one resulted from the LMP */
+/* processing section */
+/********* outgoing lmp lookup table *************/
+	bbit1 7,send_lmp_escape
+p_send_lmp0:
+	beq LMP_DETACH,p_send_lmp_detach
+	branch send_lmp0
+
+p_send_lmp_detach:
+	call send_lmp_detach
+	jam 120,mem_conn_timer
+	rtn
 
 endif
 
Index: program_patch/main_patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/main_patch.prog	(revision 1416)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/main_patch.prog	(working copy)
@@ -5,16 +5,19 @@
 //define FCC
 //define FIRE_KEY
 //define UART_LOG
+//define RSSI_PATCH
+//define RSSI_SORT
 define SELECT_ANGLE
+//define DISABLE_24G_LED
 
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
+	beq patch00_3,p_main_loop
+	beq patch10_2,p_shutdown_radio
 	beq patch10_3,p_set_sync_on
-	beq patch10_4,p_set_freq_rx
-	beq patch10_5,p_rf_rx_enable
 	beq patch11_2,p_txon_next
 	beq patch11_3,p_initialize_radio_cont
-	beq patch11_4,p_save_rssi
+//	beq patch11_4,p_save_rssi	/**RSSI PATCH**/
 	beq patch15_6,p_app_init
 	beq patch18_3,p_mouse_start_work
 	beq patch18_4,p_mouse_start_reconnect_device
@@ -32,7 +35,8 @@
 	beq patch1b_6,p_mouse_idle
 	beq patch1c_1,p_mouse_led_off
 	beq patch1c_2,p_mouse_led_on
-	beq patch1b_2,p_mouse_start_discovery	/**BLE PATCH**/
+	beq patch1b_2,p_mouse_start_discovery	/**BT PATCH,APPLY TO 3.0/4.0**/
+	beq patch1b_3,p_mouse_stop_discovery	/**BT PATCH,APPLY TO 3.0/4.0**/
 	beq patch13_7,p_init_param				/**CLASSIC PATCH**/
 	beq patch1d_0,p_hid_rx_process			/**CLASSIC PATCH**/
 	branch loop
@@ -42,6 +46,7 @@
 	beq patch26_3,p_adc_init_data
 	beq patch26_4,p_enable_adc
 	beq patch30_7,p_ui_timer_check
+	beq patch35_0,p_le_enable_phy_by_pdata
 	beq patch3b_5,p_g24_dispatch
 	beq patch3b_6,p_g24_receive_packet
 	beq patch3c_1,p_g24_transmit
@@ -49,36 +54,26 @@
 	beq patch3d_1,p_g24_reconn_dispatch
 	beq patch3d_2,p_g24_transmit_no_interrupt
 	beq patch3d_4,p_g24_lpm_wait
-//	beq patch3d_5,p_power_ctrl_start
+//	beq patch3d_5,p_power_ctrl_start	/**PWR PATCH**/
+	beq patch23_2,p_send_lmp		/**CLASSIC PATCH**/
 	beq patch34_1,p_le_slave_match	/**BLE PATCH**/
 	beq patch34_3,p_le_slave_unsync	/**BLE PATCH**/
 	beq patch38_0,p_le_parse_l2cap	/**BLE PATCH**/
 	branch loop
 
 
-
-
-
-
 p_app_init:
-	set0 mark_adc_enable,mark
-ifdef G24_OTA
-	ncall p_g24_load_ota_config_poweron,wake
-endif
-ifdef BLE
-	ncall p_mouse_le_name_load,wake
+ifdef UART_LOG
+	call p_device_hardware_init
 endif
+	set0 mark_adc_enable,mark
 	call enable_authrom
 	call p_mouse_setting_config
-	call mouse_init_sunt
-ifdef UART_LOG
-	call p_device_hardware_init
+ifdef DISABLE_24G_LED
+	ncall p_mouse_judge_current_mode,wake
 endif
+	call mouse_init_sunt
 	rtn wake
-	call p_g24_report
-	fetch 3,mem_24g_short_sleep_set
-	store 3,mem_24g_short_sleep_set_init
-	call p_send_time_long_wake
 	call mouse_dpi_config
 	call mouse_usb_check_enable
 	call mouse_drawing_optima_init
@@ -88,37 +83,61 @@
 
 p_mouse_setting_config:
 	rtn wake
+/**************************************pay attention***********************************************/	
+	//before 24g param init
+ifdef G24_OTA
+	call p_g24_load_ota_config_poweron
+endif
+/**************************************pay attention***********************************************/
 	call g24_transmit_init
 	arg 0x358,temp
 	storet 2,mem_24g_rx_window
 	call g24_chmap_param_init
-	call p_mouse_gpio_init
+	call p_send_time_long_wake
+	call mouse_gpio_init
+/**************************************pay attention***********************************************/
+	//before mouse_param_init
+ifdef BLE
+	call p_mouse_le_name_load
+endif
 ifdef FCC
 	call mouse_key_check_once
 	and rega,0x07,pdata
 	beq MOUSE_LMR_BUTTON,p_fcc_mode_start
 endif
 	call mouse_param_init
-ifdef SELECT_ANGLE	
+	//after mouse_param_init
+ifdef SELECT_ANGLE
 	call p_mouse_select_angle
 endif
+	call p_mouse_g24_report_setting
+/**************************************pay attention***********************************************/
+	call p_mouse_logo_led_off
+	call p_mouse_1io2led_all_off
+	call p_mouse_device_multi_led_poweron2s_init
 ifdef FIRE_KEY
 	call p_mouse_firebutton_connect_state_check
 endif
-	call p_mouse_device_multi_led_poweron2s_init
 	call p_mouse_double_dpi_judge
-	call p_g24_short_sleep_set_8ms
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_24G_250Hz,mouse_setting_config_next
-	call p_g24_short_sleep_set_4ms
-	branch mouse_setting_config_next
+	call p_mouse_store_normal_tx_power
+	branch mouse_setting_config+5
+
+
+p_mouse_store_normal_tx_power:
+	fetch 1,mem_tx_power
+	store 1,mem_normal_tx_power
+	rtn
+
+p_mouse_fetch_normal_tx_power:
+	fetch 1,mem_normal_tx_power
+	store 1,mem_tx_power
+	rtn
 
 ifdef SELECT_ANGLE	
 p_mouse_select_angle:
 	fetch 1,mem_select_sensor_angle_gpio
 	rtneq GPIO_DISABLE
 	
-	fetch 1,mem_select_sensor_angle_gpio
 	arg gpcfg_pullup,temp
 	call gpio_config_function_int
 	fetcht 1,mem_select_sensor_angle_gpio
@@ -146,10 +165,25 @@
 	rtn
 endif
 
-p_mouse_gpio_init:
-	fetch 1,mem_mouse_1io2led_led_enable
-	ncall p_mouse_1io2led_all_off,blank
-	branch mouse_gpio_init
+ifdef DISABLE_24G_LED
+//if 24g led  and MOUSE_ENABLE_POWER_ON_LED disable, toggle bt adv mode,led no blink,
+//so bt mode MOUSE_ENABLE_POWER_ON_LED set1
+p_mouse_judge_current_mode:
+	fetch 1,mem_device_flag
+	branch p_mouse_current_24g_mode,blank
+	branch p_mouse_current_bt_mode
+
+p_mouse_current_bt_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	set1 MOUSE_ENABLE_POWER_ON_LED,pdata
+	store MOUSE_FLAG_LEN,mem_mouse_flag
+	rtn
+p_mouse_current_24g_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	set0 MOUSE_ENABLE_POWER_ON_LED,pdata
+	store MOUSE_FLAG_LEN,mem_mouse_flag
+	rtn
+endif
 
 p_mouse_cb_fuction:
 	setarg p_mouse_24g_package_data
@@ -208,9 +242,10 @@
 	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
 ifdef BLE
 	beq BT_EVT_LE_START_ENC,p_mouse_le_ll_start_encryt
-	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,p_mouse_le_parse_conn_param_accepted
 	beq BT_EVT_LE_DISCONNECTED,p_mouse_le_bb_disconnected
 	beq BT_EVT_LE_CONNECTED,p_mouse_le_bb_event_connected
+	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,p_mouse_le_parse_conn_param_accepted
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,p_mouse_le_conn_param_update_rsp_recieved	
 endif
 ifdef CLASSIC
 	beq BT_EVT_BB_CONNECTED,p_mouse_bb_event_connected
@@ -235,7 +270,10 @@
 	bbit0 MOUSE_ENABLE_24G_POWER_ON_PAIRING,p_mouse_24g_reconn_general_dongle
 	call mouse_key_check_once		// pdata output:00
 	and rega,0x07,pdata
-	branch mouse_24g_start_mode+9
+	fetcht 1,mem_mouse_commbination_key_24g
+	isub temp,null
+	branch mouse_24g_start_pair_mode,zero
+	branch p_mouse_24g_reconn_general_dongle
 	
 p_mouse_24g_reconn_dongle_start:
 	fetch 1,mem_mouse_1io2led_led_enable
@@ -281,8 +319,7 @@
 	fetcht 1,mem_matrix_public_gpio
 	call gpio_clr_wake
 	fetch 1,mem_mouse_sensor_sdio_gpio
-	arg gpcfg_output_high,temp
-	call gpio_config_function_int
+	call p_mouse_gpio_config_output_high
 	arg 3,temp
 	call mouse_gpio_config_input_pu
 	call mouse_lpm_before_common
@@ -300,6 +337,7 @@
 p_mouse_set_sensor_gpio_sleep:
 	fetch 1,mem_select_sensor_angle_gpio
 	rtneq GPIO_DISABLE
+	
 	fetch 1,mem_config_sensor_angle
 	beq MOUSE_3CLK_ANGLE,p_mouse_set_sensor_gnd_low_level
 	beq MOUSE_12CLK_ANGLE,p_mouse_set_sensor_float_high_level
@@ -350,11 +388,15 @@
 	call gpio_clr_wake
 		
 	fetch 1,mem_whee_a_data_gpio
-	arg gpcfg_pulldown,temp
-	call gpio_config_function_int
+	call mouse_gpio_config_input_pd
 	fetch 1,mem_whee_b_data_gpio
-	arg gpcfg_pulldown,temp
-	branch gpio_config_function_int
+	branch mouse_gpio_config_input_pd
+
+p_mouse_short_sleep_clear_wake:
+	call clear_wake
+	branch lpm_write_gpio_wakeup
+	
+	
 
 p_mouse_lpm_before_common:
 	fetcht 1,mem_whee_a_data_gpio		//reinit gpio pu after disable wheel wakeup
@@ -364,9 +406,9 @@
 	
 	call mouse_wheel_check
 	fetch 1,mem_mouse_sensor_sclk_gpio	// set sclk high
-	arg gpcfg_output_high,temp
- 	call gpio_config_function_int
-	branch mouse_lpm_before_common_next
+	call p_mouse_gpio_config_output_high
+
+	branch mouse_lpm_before_common+4
 
 //////////////////////////////LPM FUNC END////////////////////////////////////////
 
@@ -401,6 +443,7 @@
 	call mouse_le_enable_att_list_timer
 	call p_mouse_le_battery_updata_timer
 	call mouse_le_send_smp_security_request_timer
+	call p_mouse_le_send_conn_param_update_timer	
 endif
 ifdef CLASSIC
 	//bt
@@ -420,9 +463,7 @@
 p_mouse_store_device_info_check:
 	call mouse_store_device_info
 	fetch 1,mem_mouse_need_soft_reset
-	nbranch p_mouse_soft_reset,blank
-	rtn
-
+	rtn blank
 p_mouse_soft_reset:
 	call p_enable_rc_clock
 	branch mouse_soft_reset
@@ -504,13 +545,16 @@
 
 p_mouse_device_24g_led_off:
 	fetcht 1,mem_mouse_1io2led_multi_24gled
+p_gpio_set_high_impedance:
+	sub temp,GPIO_DISABLE,null
+	rtn zero
 	branch gpio_set_high_impedance
 p_mouse_device_bt1_led_off:
 	fetcht 1,mem_mouse_1io2led_multi_bt1led
-	branch gpio_set_high_impedance
+	branch p_gpio_set_high_impedance
 p_mouse_device_bt2_led_off:
 	fetcht 1,mem_mouse_1io2led_multi_bt2led
-	branch gpio_set_high_impedance
+	branch p_gpio_set_high_impedance
 
 p_mouse_1io2led_all_off:
 	call p_mouse_device_24g_led_off
@@ -532,7 +576,7 @@
 p_mouse_logo_led_off:
 	fetcht 1,mem_mouse_logo_led_gpio
 	fetch 1,mem_mouse_1io2led_led_enable
-	beq 1,gpio_set_high_impedance
+	beq 1,p_gpio_set_high_impedance
 	branch gpio_out_inactive
 p_mouse_logo_led_on:
 	fetcht 1,mem_mouse_logo_led_gpio
@@ -738,13 +782,15 @@
 
 //input:pdata gpio number
 p_mouse_gpio_config_output_high:
+	rtneq GPIO_DISABLE
 	arg gpcfg_output_high,temp
 	branch gpio_config_function_int
 		
 //input:pdata gpio number
 p_mouse_gpio_config_output_low:
+	rtneq GPIO_DISABLE
 	arg gpcfg_output_low,temp
-	branch gpio_config_function_int	
+	branch gpio_config_function_int
 
 
 p_mouse_dpi_check:
@@ -1125,31 +1171,24 @@
 
 //////////////////////////////24G FUNC////////////////////////////////////////
 
-p_g24_report:
-	setarg 0x17700
-	store 3,mem_24g_tsniff
-	call g24_interval_param_8ms
-	jam 30,mem_24g_fast_hop_count
-//	setarg 73500
-//	store 3,mem_24g_short_sleep_set
+p_mouse_g24_report_setting:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	rtnbit0 MOUSE_ENABLE_24G_250Hz
-	call g24_interval_param_4ms
-	jam 15,mem_24g_fast_hop_count
+	bbit0 MOUSE_ENABLE_24G_250Hz,p_mouse_g24_report_125hz
+p_mouse_g24_report_250hz:
 	setarg 0xbb80
 	store 3,mem_24g_tsniff
-	setarg 0x4800
-	store 3,mem_24g_short_sleep_set
-	rtn
-
-
-p_g24_short_sleep_set_8ms:
-	setarg 58000
+	setarg 0x6c10
 	store 3,mem_24g_short_sleep_set
+	store 3,mem_24g_short_sleep_set_init
+	jam 15,mem_24g_fast_hop_count
 	rtn
-p_g24_short_sleep_set_4ms:
-	setarg 6000
+p_mouse_g24_report_125hz:
+	setarg 0x17700
+	store 3,mem_24g_tsniff
+	setarg 0x10b60
 	store 3,mem_24g_short_sleep_set
+	store 3,mem_24g_short_sleep_set_init
+	jam 30,mem_24g_fast_hop_count
 	rtn
 
 
@@ -1161,6 +1200,9 @@
 endif
 	call mouse_motion
 	nrtn user
+	fetch 1,mem_long_sleep_flag
+	jam 0,mem_long_sleep_flag
+	ncall p_mouse_short_sleep_clear_wake,blank
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit0 MOUSE_ENABLE_KEYBOARD,p_mouse_24g_mouse_package_data
 	fetch 1,mem_customer_key
@@ -1244,24 +1286,19 @@
 	fetch 2,mem_ui_state_map
 	rtnbit1 UI_STATE_BLE_ADV
 	rtnbit1 UI_STATE_BT_RECONNECT
-	rtnbit1 UI_STATE_BT_DISCOVERY	
-	call p_rssi_sort	
+	rtnbit1 UI_STATE_BT_DISCOVERY
+ifdef RSSI_SORT
+	call p_rssi_sort	//affects bluetooth timing
 	call p_rssi_average
+else
+	fetchr rega,2,mem_rssi_signal_buf_ptr
+	call rssi_average
+endif
 	storet 1,mem_rssi_avg_received
-	call p_g24_fast_conn_mode_check
-	fetch 1,mem_soft_agc_en
-	nrtn blank
-	fetcht 1,mem_rssi_avg_received
 	branch power_ctrl_rssi_avg_compare
 
-p_g24_fast_conn_mode_check:
-	rtnmark0 mark_24g
-	fetch 4,mem_24g_receiver_addr
-	fetcht 4,mem_24g_fast_conn_addr
-	isub temp,null
-	branch p_soft_agc_en_true,zero
-	branch p_soft_agc_en_false
-	
+
+ifdef RSSI_SORT
 p_rssi_average:
 	arg mem_mouse_rssi_signal_buf_temp+6,rega
 	arg 10,pdata
@@ -1305,6 +1342,8 @@
 	istoret 1,contw
 	istore 1,contw
 	rtn
+endif
+	
 
 endif
 
Index: program_patch/patch_chip_common_bugfix.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/patch_chip_common_bugfix.prog	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/program_patch/patch_chip_common_bugfix.prog	(working copy)
@@ -52,6 +52,41 @@
 	store 1,mem_xtal_cache
 	rtn
 
+p_main_loop:
+ifdef SIMPLE_PAIRING
+	call sp_calc_sequence
+endif
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256
+endif
+ifdef SIMPLE_PAIRING
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256_check
+endif
+endif
+	call le_advertising_dispatch
+	call idle_dispatch
+	call p_app_process_idle
+	branch main_loop+7
+
+p_app_process_idle:
+	call p_ui_dispatch
+	branch app_process_idle+2
+
+p_ui_dispatch:
+	call p_ui_led_dispatch
+	branch ui_timer_check
+
+p_ui_led_dispatch:
+	fetch 1,mem_ui_led_struct_num
+	rtn blank
+	fetch 2,mem_ui_led_struct_ptr
+	copy pdata,regb
+	add regb,LED_OFFSET_LED_GPIO,regb
+	ifetch 1,regb
+	rtneq GPIO_DISABLE
+	branch ui_led_dispatch+2
+
 p_mouse_led_on:
 	copy temp,pdata
 	rtneq GPIO_DISABLE
@@ -78,7 +113,7 @@
 	setarg 0
 	store 3,core_clkpll_ctrl0// close pll
 p_lpm_short_sleep_skip_pll_set:
-	jam 140,mem_tx_time_offset
+	jam 250,mem_tx_time_offset
 	call xtal_fast_wake
 	fetch 4,mem_sleep_counter_all
 	iadd temp,pdata
@@ -114,6 +149,16 @@
 	branch initialize_radio_cont+8
 
 
+p_shutdown_radio:
+	fetch 1,mem_gain_fix	//filter gain_control
+	store 1,mem_temp
+	call shutdown_radio+1
+	jam 0,core_rf_ldo_en0	//RFPLL vco_LDO disable
+	fetch 1,mem_temp
+	store 1,mem_gain_fix
+	rtn
+
+
 p_set_sync_on:
 	jam 0x5,modem_en
 	nop 2
@@ -125,77 +170,20 @@
 	branch set_sync_on_16m
 
 
-p_set_freq_rx:
-	call set_freq_rx+1
-	setarg 0x7676
-	store 2,0x8968
-	rtn
-
-
-p_rf_rx_enable:
-	fetch 1,mem_device_flag
-	bne MODE_24G_DEVICE,rf_rx_enable+1
-
-	fetch 1,mem_soft_agc_en
-	nbranch p_rf_rx_enable_soft_agc,blank
-	nop 300
-	call rf_debug_rx_gpio_high
-	arg mem_gain_table,contr
-	iadd contr,contr
-	ifetch 1,contr
-	store 1,core_rf_rx_gain_fix
-	jam 0x2e,core_rf_rx_agc_ctrl
-	branch rf_rx_enable_no_soft_agc_next
-	
-p_rf_rx_enable_soft_agc:
-	fetch 1,core_rf_rx_agc_ctrl
-	or pdata,0x01,pdata					//disable agc		
-	store 1,core_rf_rx_agc_ctrl
-	jam 0x04,core_rf_rx_gain_fix		//set agc level
-	branch rf_rx_enable_no_soft_agc_next
-
-p_soft_agc_en_false:
-	jam 0,mem_soft_agc_en
-	rtn
-p_soft_agc_en_true:
-	jam 1,mem_soft_agc_en
-	rtn
-
-
 p_txon_next:
-	fetch 1,mem_soft_agc_en
-	nbranch p_set_tx_power_f17db,blank
-	branch set_tx_power_10db
-	//fetch 1,mem_tx_power
-	//beq TX_POWER_F30DB,p_set_tx_power_f30db
-	//beq TX_POWER_F40DB,p_set_tx_power_f40db
-	//beq TX_POWER_F50DB,p_set_tx_power_f50db
-	//beq TX_POWER_F60DB,p_set_tx_power_f60db
-	//branch txon_next+1
-/*
-p_set_tx_power_f30db:
-	jam 0x4c,core_tx_pwr_ctrl0
-	jam 0x00,core_tx_pwr_ctrl1
-	branch set_rf_ldo_cfg89
-p_set_tx_power_f40db:
-	jam 0x45,core_tx_pwr_ctrl0
-	jam 0x00,core_tx_pwr_ctrl1
-	branch set_rf_ldo_cfg89
-p_set_tx_power_f50db:
-	jam 0x42,core_tx_pwr_ctrl0
-	jam 0x00,core_tx_pwr_ctrl1
-	branch set_rf_ldo_cfg89
-p_set_tx_power_f60db:
-	jam 0x41,core_tx_pwr_ctrl0
-	jam 0x00,core_tx_pwr_ctrl1
-	branch set_rf_ldo_cfg89
-*/
-p_set_tx_power_f17db:	//F17dbm
+	fetch 1,mem_tx_power
+	beq TX_POWER_F17DB,p_set_tx_power_f17db	//fast conn
+	beq TX_POWER_F20DB,set_tx_power_f20db	//pair mode
+	branch set_tx_power_10db	//others
+
+p_set_tx_power_f17db:
 	jam 0x5b,core_tx_pwr_ctrl0
 	jam 0x01,core_tx_pwr_ctrl1
 	branch set_rf_ldo_cfg89
 
 
+ifdef RSSI_PATCH
+
 p_save_rssi:
 	// bit6 is signed bit. 
 	fetch 1,modem_nb_pow 
@@ -229,6 +217,7 @@
 	ior temp,pdata
 	rtn
 
+endif
 
 
 p_adc_init_data:
@@ -277,6 +266,16 @@
 
 
 
+p_le_enable_phy_by_pdata:
+	copy temp,pdata
+	bbit1 BIT_LE_1M_PHY,le_enable
+	bbit1 BIT_LE_2M_PHY,p_le_enable_2M
+	branch le_enable_phy_by_pdata+5
+
+p_le_enable_2M:
+	call le_enable_2M
+	jam 0x89,core_rx_bq_cfg0	//bit7 set1,improve 2M rx sensitivity
+	rtn
 
 
 
Index: sched/ble.dat
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/sched/ble.dat	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/sched/ble.dat	(working copy)
@@ -28,8 +28,8 @@
 'BT5.2 Mouse
 
 mem_le_interval_min:
-07 00 #min interval
-07 00 #max interval
+06 00 #min interval
+09 00 #max interval
 20 00 #latency
 2c 01 #timeout
 
Index: sched/common.dat
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/sched/common.dat	(revision 1400)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/mouse_public_bt/mouse_public_switch_toggle/sched/common.dat	(working copy)
@@ -2,7 +2,7 @@
 mem_lpm_xtalcnt:38
 mem_fcomp_div:18
 
-mem_tx_power:01#3dbm
+mem_tx_power:0a#10dbm
 mem_rf_init_data:ff
 mem_rf_init_ptr:mem_rf_init_data
 
@@ -12,7 +12,8 @@
 
 mem_dig_aon_vsel:00
 mem_gain_fix:ff
-mem_gain_second_agc_en:00
+mem_gain_table:04 00 00
+mem_gain_second_agc_en:08	#00-disbale,08-enable
 
 mem_spi_ncs_gpio:ff
 
@@ -21,3 +22,8 @@
 #mem_lpm_mult_init:20
 
 
+#mem_rf_debug_rx_gpio:8b
+#mem_rf_debug_tx_gpio:8c
+
+
+
