Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/format/app_mouse.format	(revision 646)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/format/app_mouse.format	(working copy)
@@ -337,7 +337,19 @@
 2 mem_mouse_data_y_value
 2 mem_mouse_data_xy_value
 
-1 mem_config_device_24g_led_gpio_patch
+//patch led start
+1 mem_mouse_multi_led_blink_enable
+1 mem_mouse_multi_led_gpio
+1 mem_mouse_multi_led_state
+1 mem_mouse_multi_led_type
+1 mem_mouse_multi_led_on_timer
+1 mem_mouse_multi_led_on_timer_init
+1 mem_mouse_multi_led_blink_timer_init
+1 mem_mouse_multi_led_blink_timer
+1 mem_mouse_multi_led_blink_count
+1 mem_mouse_multi_led_blink_count_limited
+1 mem_mouse_multi_led_on_poweron2s_flag
+//patch led end
 )
 
 
@@ -623,3 +635,8 @@
 0x03 ICE_REUSE_GPIO
 )
 
+(
+0 MULTI_LED_ON
+1 MULTI_LED_BLINK
+)
+
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/eeprom.dat	(revision 646)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-1e
+c2
 0c
 c2
 84
@@ -31,11 +31,11 @@
 c0
 4f
 80
-90
+92
 c0
 57
 00
-92
+94
 c0
 58
 00
@@ -43,51 +43,51 @@
 c0
 61
 81
-aa
+b3
 c0
 63
 81
-6d
+4b
 c0
 64
 81
-71
+4f
 c0
 65
 01
-7c
+5a
 c0
 66
 02
-d5
+f8
 c0
 67
 02
-79
+9c
 c0
 68
 01
-b9
+c2
 c0
 69
 81
-ca
+cf
 c0
 6b
 01
-8d
+6b
 c0
 6c
 81
-e3
+e8
 c0
 6d
 02
-36
+59
 c0
 74
 02
-41
+64
 20
 20
 13
@@ -103,31 +103,31 @@
 c0
 43
 82
-3d
+60
 c0
 50
 82
-55
+78
 c0
 54
 80
-8a
+8c
 c0
 71
-01
-09
+00
+e7
 c0
 74
-81
-10
+80
+ee
 c0
 75
 01
-2a
+08
 c0
 76
 02
-76
+99
 20
 20
 13
@@ -504,6 +504,14 @@
 20
 00
 71
+20
+40
+12
+d1
+20
+00
+00
+64
 70
 8a
 8b
@@ -595,11 +603,11 @@
 20
 40
 00
-9c
+9f
 20
 40
 00
-a4
+a7
 20
 40
 41
@@ -623,7 +631,11 @@
 20
 40
 00
-ea
+c8
+20
+40
+02
+26
 20
 20
 3b
@@ -674,8 +686,8 @@
 ff
 20
 40
-00
-b1
+3f
+1e
 20
 40
 3d
@@ -707,159 +719,11 @@
 20
 40
 00
-d6
+b4
 20
 20
 3b
 f5
-68
-48
-c4
-c1
-20
-40
-60
-69
-20
-40
-79
-b4
-68
-48
-c9
-18
-20
-40
-3f
-56
-68
-48
-c9
-19
-20
-40
-3f
-56
-68
-48
-c9
-1a
-20
-40
-3f
-56
-68
-48
-c9
-0d
-20
-40
-3f
-56
-68
-48
-c9
-0e
-20
-40
-3f
-56
-68
-48
-c9
-0f
-20
-40
-3f
-56
-68
-48
-c9
-10
-20
-40
-3f
-56
-68
-48
-c9
-1b
-20
-40
-3f
-56
-68
-48
-c9
-12
-20
-40
-3f
-56
-68
-48
-c9
-13
-20
-40
-3f
-56
-68
-48
-c9
-14
-20
-40
-3f
-56
-68
-48
-c9
-1c
-20
-40
-3f
-56
-68
-48
-c9
-1d
-20
-40
-3f
-56
-68
-48
-c9
-11
-20
-40
-3f
-56
-68
-48
-c9
-1e
-20
-40
-3f
-56
-68
-48
-ca
-ab
-20
-40
-60
-69
-68
-48
-c9
-17
-20
-20
-3f
-56
 6f
 e0
 cb
@@ -895,7 +759,7 @@
 24
 20
 80
-e0
+be
 20
 20
 3f
@@ -923,7 +787,7 @@
 20
 20
 80
-e7
+c5
 20
 20
 3f
@@ -943,7 +807,7 @@
 58
 00
 00
-ed
+cb
 67
 e1
 48
@@ -971,7 +835,7 @@
 c3
 0a
 80
-f4
+d2
 6f
 e0
 cb
@@ -990,8 +854,8 @@
 36
 c2
 80
-81
-03
+80
+e1
 68
 48
 c7
@@ -1102,8 +966,8 @@
 ff
 c0
 00
-01
-17
+00
+f5
 6f
 e1
 48
@@ -1130,12 +994,12 @@
 5b
 24
 2c
-01
-1d
+00
+fb
 24
 37
-81
-1d
+80
+fb
 20
 40
 26
@@ -1203,11 +1067,11 @@
 24
 34
 01
-39
+17
 20
 40
 01
-4d
+2b
 20
 40
 26
@@ -1219,7 +1083,7 @@
 24
 3a
 01
-34
+12
 6f
 e4
 48
@@ -1263,7 +1127,7 @@
 20
 5a
 01
-3f
+1d
 6f
 e0
 c8
@@ -1335,7 +1199,7 @@
 20
 20
 01
-2c
+0a
 70
 48
 a6
@@ -1363,11 +1227,11 @@
 24
 2c
 01
-5c
+3a
 24
 37
 81
-5c
+3a
 20
 40
 26
@@ -1375,7 +1239,7 @@
 20
 40
 01
-58
+36
 20
 20
 26
@@ -1387,7 +1251,7 @@
 24
 5a
 01
-cc
+d1
 70
 4b
 e1
@@ -1431,11 +1295,11 @@
 20
 40
 01
-66
+44
 20
 20
 01
-4e
+2c
 6f
 e0
 c8
@@ -1597,17 +1461,25 @@
 7e
 00
 c0
+1c
+81
+85
+c0
 1e
 01
-a5
+87
+c0
+1d
+01
+8d
 c0
 19
 01
-92
+72
 c0
 22
 01
-99
+79
 20
 20
 43
@@ -1619,7 +1491,7 @@
 c0
 00
 81
-96
+76
 70
 4b
 76
@@ -1688,6 +1560,18 @@
 20
 43
 86
+20
+40
+02
+18
+20
+20
+48
+57
+20
+40
+02
+18
 6f
 e2
 48
@@ -1709,6 +1593,158 @@
 48
 4e
 6f
+e0
+c8
+a5
+24
+3a
+47
+e1
+6f
+e0
+c8
+8b
+c0
+01
+01
+95
+c0
+02
+01
+a7
+c0
+01
+81
+ae
+20
+40
+02
+18
+20
+20
+48
+3a
+6f
+e4
+4b
+ab
+c2
+97
+81
+a5
+c2
+98
+01
+a5
+6f
+e2
+49
+93
+68
+4a
+49
+74
+98
+46
+7c
+00
+20
+22
+81
+9d
+20
+20
+48
+06
+d8
+e0
+00
+01
+20
+40
+46
+f0
+58
+00
+00
+00
+67
+e1
+48
+87
+20
+40
+45
+76
+20
+40
+49
+8e
+20
+40
+02
+01
+20
+20
+48
+2e
+20
+40
+02
+01
+20
+20
+48
+12
+6f
+e4
+4b
+ab
+c3
+17
+81
+ac
+6f
+e0
+cb
+b4
+c0
+00
+81
+ac
+20
+20
+48
+1a
+20
+40
+02
+18
+20
+20
+48
+3a
+6f
+e4
+4b
+ab
+c3
+17
+81
+ac
+c2
+89
+81
+ac
+c2
+89
+01
+ac
+20
+20
+48
+12
+6f
 e4
 4b
 ab
@@ -1723,7 +1759,7 @@
 c0
 00
 01
-af
+b8
 20
 20
 3d
@@ -1775,20 +1811,12 @@
 20
 40
 01
-bc
+c5
 20
 20
 40
 98
 6f
-e0
-c9
-23
-c1
-7f
-80
-00
-6f
 e1
 4a
 c2
@@ -1815,19 +1843,11 @@
 6f
 e0
 cb
-a7
-24
-7a
-00
-00
-6f
-e0
-cb
 c1
 20
 3a
 02
-0c
+31
 67
 e0
 cb
@@ -1855,7 +1875,7 @@
 c0
 18
 01
-d4
+d9
 c0
 18
 c2
@@ -1875,7 +1895,7 @@
 20
 20
 01
-cd
+d2
 6f
 e0
 c9
@@ -1883,7 +1903,7 @@
 c0
 2d
 01
-dd
+e2
 c0
 6c
 41
@@ -1911,7 +1931,7 @@
 20
 20
 01
-cd
+d2
 70
 49
 27
@@ -1938,16 +1958,12 @@
 8e
 20
 40
-01
-ee
-20
-40
 3e
 9b
 20
 40
-02
-f0
+03
+19
 20
 40
 23
@@ -1963,7 +1979,11 @@
 20
 40
 02
-09
+2e
+20
+40
+01
+f3
 20
 40
 40
@@ -1975,119 +1995,247 @@
 20
 40
 02
-21
+44
 20
 20
 44
 c0
 6f
-e4
-4b
-ab
-c4
-10
-00
-00
-6f
 e0
-cb
-a7
+cc
+14
 20
 7a
 00
 00
-1f
-e0
-ff
-ff
-67
-e0
-cb
-a7
-20
-3a
-01
-fb
 6f
 e0
 cc
-14
+17
 c0
-81
-c9
+00
+82
+08
 20
+40
+02
+15
+6f
+e0
+cc
+18
+1f
+e0
+fe
+01
+67
+e0
+cc
+18
 68
 48
 cc
+19
+98
+46
+7c
+00
+20
+42
+81
+ff
+20
+60
+00
+00
+70
+4c
+1e
+00
+20
+20
+02
+1a
+70
+4c
+1a
+05
+70
+4c
+1d
+00
+70
+4c
+1c
+01
+70
+4c
+1b
+05
+70
+4c
 14
+01
+70
+4c
+17
+01
 20
-40
 60
-69
-68
-48
+00
+00
+da
+60
+4c
+1b
+da
+40
+02
+0b
+20
+20
+31
+8a
+6f
+e0
 cc
-14
+1a
+67
+e0
+cc
+1b
+6f
+e0
+cc
+1d
 20
+3a
+02
+13
+6f
+e0
+cc
+1c
 20
-60
-69
+3a
+02
+18
+1f
+e0
+ff
+ff
+67
+e0
+cc
+1c
 6f
 e0
 cc
-14
+16
 c0
-81
-c9
-12
+00
+82
+1a
+70
+4c
+16
+01
 68
 48
 cc
-14
+15
 20
 20
-3f
-56
-68
-48
-c9
-21
-20
-40
 60
 69
+58
+00
+00
+00
+67
+e1
+cc
+1b
+6f
+e0
+cc
+1c
+24
+3a
+02
+1e
+70
+4c
+14
+00
+70
+4c
+17
+00
+70
+4c
+18
+00
+70
+4c
+16
+00
+6f
+e0
+cc
+15
+c0
+01
+82
+24
 68
 48
-c9
+cc
 15
 20
-40
-60
-69
-68
-48
-c9
-16
 20
-40
 60
-69
+65
 68
 48
-c9
-22
+cc
+15
 20
-40
-60
-69
-68
-48
-c9
-23
 20
+3f
+56
+70
+4c
+1e
+01
+70
+4c
+14
+01
+70
+4c
+17
+00
+70
+4c
+18
+00
 20
 60
-69
+00
+00
+70
+4c
+1a
+02
+70
+4c
+1d
+01
+20
+20
+02
+04
 da
 60
 4b
@@ -2095,95 +2243,87 @@
 da
 40
 02
-0c
+31
 20
 20
 31
 8a
 6f
+e4
+4b
+ab
+c2
+8e
+02
+37
+6f
 e0
 c9
-27
+92
 c0
-01
-c8
-f2
+00
+02
+3e
 c0
-05
-c8
-f2
+00
+82
+40
+20
+20
+02
+3c
 6f
 e0
 c9
-23
-67
-e0
-c9
-2f
-6f
-e1
-4b
-c2
-67
-e1
-49
-30
-67
-e1
-49
-32
-da
-20
-00
-00
-68
-48
-c9
 92
-18
+c0
+00
+02
 40
-84
+c0
+00
+82
+42
+c0
+01
 02
-18
-46
-7c
-03
+3c
+20
 20
-41
 02
-1b
-24
-41
+3e
+70
+4c
+1c
+01
+20
+20
 02
-1f
+2b
+70
+4c
+1c
+03
 20
 20
-48
-ff
-6f
-e4
-4b
-ab
-c4
-0e
-00
-00
-18
-40
-84
-01
+02
+2b
+70
+4c
+1c
+05
 20
-60
-00
-00
-18
-40
-85
-fd
 20
-60
-00
-00
+02
+2b
+70
+4c
+1c
+07
+20
+20
+02
+2b
 6f
 e0
 c9
@@ -2191,7 +2331,7 @@
 c0
 00
 02
-27
+4a
 6f
 e4
 4b
@@ -2207,7 +2347,7 @@
 20
 20
 02
-2a
+4d
 6f
 e4
 4b
@@ -2243,7 +2383,7 @@
 20
 22
 82
-31
+54
 20
 20
 44
@@ -2339,7 +2479,7 @@
 c0
 04
 82
-49
+6c
 20
 20
 4d
@@ -2439,7 +2579,7 @@
 c0
 02
 02
-62
+85
 20
 20
 19
@@ -2455,7 +2595,7 @@
 c0
 09
 02
-66
+89
 20
 20
 1c
@@ -2587,7 +2727,7 @@
 20
 40
 02
-87
+aa
 20
 20
 45
@@ -2659,11 +2799,11 @@
 c0
 00
 82
-9a
+bd
 20
 40
 02
-9b
+be
 20
 20
 47
@@ -2695,7 +2835,7 @@
 20
 40
 02
-bc
+df
 67
 e1
 4c
@@ -2715,7 +2855,7 @@
 24
 5a
 02
-b8
+db
 60
 49
 48
@@ -2751,7 +2891,7 @@
 20
 40
 02
-bc
+df
 67
 e1
 4c
@@ -2771,7 +2911,7 @@
 24
 5a
 02
-b8
+db
 60
 49
 48
@@ -2811,11 +2951,11 @@
 20
 3a
 02
-bf
+e2
 20
 20
 02
-c4
+e7
 6f
 e0
 cc
@@ -2823,7 +2963,7 @@
 20
 40
 02
-ce
+f1
 67
 e0
 cc
@@ -2847,7 +2987,7 @@
 20
 40
 02
-ce
+f1
 20
 5a
 7e
@@ -2855,11 +2995,11 @@
 20
 40
 02
-ca
+ed
 20
 20
 02
-c2
+e5
 20
 40
 47
@@ -2938,16 +3078,16 @@
 00
 24
 21
-02
-ee
+03
+11
 6f
 e0
 c4
 a0
 c0
 81
-02
-e6
+03
+09
 68
 49
 48
@@ -2994,8 +3134,8 @@
 1c
 c3
 00
-3e
-d0
+03
+13
 70
 48
 fa
@@ -3009,9 +3149,33 @@
 c8
 fc
 20
-40
-3f
-54
+40
+3f
+54
+d8
+e0
+00
+04
+20
+40
+46
+f4
+6f
+e0
+c8
+fa
+20
+7a
+00
+00
+70
+48
+fa
+00
+20
+20
+02
+1a
 6f
 e1
 4a
@@ -3036,14 +3200,6 @@
 7a
 00
 00
-6f
-e0
-cb
-a7
-24
-7a
-00
-00
 20
 40
 49
@@ -3086,26 +3242,34 @@
 08
 24
 41
-49
-6e
+03
+2e
 c0
 01
-c9
-70
+82
+15
 c0
 02
-c9
-76
+82
+1a
 c0
 03
-c9
-70
+82
+15
 20
 60
 00
 00
+70
+48
+f8
 01
-77
+20
+20
+02
+1a
+6a
+4a
 aa
 55
 40
@@ -3276,7 +3440,7 @@
 80
 aa
 55
-09
+17
 00
 0d
 49
@@ -3289,19 +3453,6 @@
 05
 04
 ff
-aa
-55
-01
-00
-14
-4c
-03
-aa
-55
-0e
-00
-16
-49
 ff
 08
 0b
@@ -3336,6 +3487,21 @@
 55
 01
 00
+15
+4c
+03
+aa
+55
+02
+00
+19
+4c
+14
+05
+aa
+55
+01
+00
 58
 0b
 ff
@@ -3904,10 +4070,10 @@
 2a
 3f
 15
-06
-0c
-10
-04
+14
+1b
+11
+0e
 aa
 55
 74
@@ -4354,176 +4520,10 @@
 aa
 aa
 55
-e8
-7d
-38
-61
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+32
+7e
+18
+5f
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-11
-6f
+85
+a8
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/memmap.format	(revision 646)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/memmap.format	(working copy)
@@ -2212,7 +2212,17 @@
 0x4c0e mem_mouse_data_x_value
 0x4c10 mem_mouse_data_y_value
 0x4c12 mem_mouse_data_xy_value
-0x4c14 mem_config_device_24g_led_gpio_patch
+0x4c14 mem_mouse_multi_led_blink_enable
+0x4c15 mem_mouse_multi_led_gpio
+0x4c16 mem_mouse_multi_led_state
+0x4c17 mem_mouse_multi_led_type
+0x4c18 mem_mouse_multi_led_on_timer
+0x4c19 mem_mouse_multi_led_on_timer_init
+0x4c1a mem_mouse_multi_led_blink_timer_init
+0x4c1b mem_mouse_multi_led_blink_timer
+0x4c1c mem_mouse_multi_led_blink_count
+0x4c1d mem_mouse_multi_led_blink_count_limited
+0x4c1e mem_mouse_multi_led_on_poweron2s_flag
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/program.lis	(revision 646)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/program.lis	(working copy)
@@ -6,33 +6,33 @@
 0003 c0418048 beq patch10_3 ,p_set_sync_on 
 0004 c0450031 beq patch11_2 ,p_txon_next 
 0005 c045807d beq patch11_3 ,p_initialize_radio_cont 
-0006 c04f8090 beq patch13_7 ,p_init_param 
-0007 c0570092 beq patch15_6 ,p_app_init 
+0006 c04f8092 beq patch13_7 ,p_init_param 
+0007 c0570094 beq patch15_6 ,p_app_init 
 0008 c0580071 beq patch16_0 ,p_app_evt_100ms_loop 
-0009 c06181aa beq patch18_3 ,p_mouse_start_work 
-000a c063816d beq patch18_7 ,p_mouse_app_enter_hibernate 
-000b c0648171 beq patch19_1 ,p_mouse_setgpio_hibernate 
-000c c065017c beq patch19_2 ,p_mouse_lpm_before_common 
-000d c06602d5 beq patch19_4 ,p_mouse_adc_read_start 
-000e c0670279 beq patch19_6 ,p_mouse_motion 
-000f c06801b9 beq patch1a_0 ,p_mouse_seting_dpi 
-0010 c06981ca beq patch1a_3 ,p_mouse_init_sunt 
-0011 c06b018d beq patch1a_6 ,p_mouse_priority_bb_event 
-0012 c06c81e3 beq patch1b_1 ,p_mouse_bb_event_timer 
-0013 c06d0236 beq patch1b_2 ,p_mouse_start_discovery 
-0014 c0740241 beq patch1d_0 ,p_hid_rx_process 
+0009 c06181b3 beq patch18_3 ,p_mouse_start_work 
+000a c063814b beq patch18_7 ,p_mouse_app_enter_hibernate 
+000b c064814f beq patch19_1 ,p_mouse_setgpio_hibernate 
+000c c065015a beq patch19_2 ,p_mouse_lpm_before_common 
+000d c06602f8 beq patch19_4 ,p_mouse_adc_read_start 
+000e c067029c beq patch19_6 ,p_mouse_motion 
+000f c06801c2 beq patch1a_0 ,p_mouse_seting_dpi 
+0010 c06981cf beq patch1a_3 ,p_mouse_init_sunt 
+0011 c06b016b beq patch1a_6 ,p_mouse_priority_bb_event 
+0012 c06c81e8 beq patch1b_1 ,p_mouse_bb_event_timer 
+0013 c06d0259 beq patch1b_2 ,p_mouse_start_discovery 
+0014 c0740264 beq patch1d_0 ,p_hid_rx_process 
 0015 2020137c branch loop 
 
 pf_patch_ext:
 0016 c0198051 beq patch26_3 ,p_adc_init_data 
 0017 c01a0056 beq patch26_4 ,p_enable_adc 
-0018 c043823d beq patch30_7 ,p_ui_timer_check 
-0019 c0508255 beq patch34_1 ,p_le_slave_match 
-001a c054808a beq patch35_1 ,p_le_enable 
-001b c0710109 beq patch3c_2 ,p_g24_pair_dispatch 
-001c c0748110 beq patch3d_1 ,p_g24_reconn_dispatch 
-001d c075012a beq patch3d_2 ,p_g24_transmit_no_interrupt 
-001e c0760276 beq patch3d_4 ,p_g24_lpm_wait 
+0018 c0438260 beq patch30_7 ,p_ui_timer_check 
+0019 c0508278 beq patch34_1 ,p_le_slave_match 
+001a c054808c beq patch35_1 ,p_le_enable 
+001b c07100e7 beq patch3c_2 ,p_g24_pair_dispatch 
+001c c07480ee beq patch3d_1 ,p_g24_reconn_dispatch 
+001d c0750108 beq patch3d_2 ,p_g24_transmit_no_interrupt 
+001e c0760299 beq patch3d_4 ,p_g24_lpm_wait 
 001f 2020137c branch loop 
 
 p_soft_reset:
@@ -149,822 +149,917 @@
 007c 20200071 branch p_app_evt_100ms_loop 
 
 p_initialize_radio_cont:
-007d 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-007e 2040126a call initialize_syn_afc_cfg1 
-007f 20401271 call initialize_rf_ldo_cfg1 
-0080 20401277 call initialize_rc_cal 
-0081 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-0082 708a0305 jam 5 ,core_clkpll_cfg0 
-0083 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-0084 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-0085 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-0086 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-0087 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
-0088 70892140 jam 0x40 ,core_rx_ctrl1 
-0089 2020125d branch initialize_radio_cont + 8 
+007d 204012d1 call init_lpm_ctrl 
+007e 20000064 nop 100 
+007f 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0080 2040126a call initialize_syn_afc_cfg1 
+0081 20401271 call initialize_rf_ldo_cfg1 
+0082 20401277 call initialize_rc_cal 
+0083 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0084 708a0305 jam 5 ,core_clkpll_cfg0 
+0085 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0086 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0087 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0088 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0089 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
+008a 70892140 jam 0x40 ,core_rx_ctrl1 
+008b 2020125d branch initialize_radio_cont + 8 
 
 p_le_enable:
-008a 204016a6 call le_enable + 1 
-008b 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
-008c 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
-008d 1fe1fe0f or pdata ,0x0f ,pdata 
-008e 67f08a43 store 1 ,core_syn_cal_ctrl 
-008f 20600000 rtn 
+008c 204016a6 call le_enable + 1 
+008d 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+008e 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+008f 1fe1fe0f or pdata ,0x0f ,pdata 
+0090 67f08a43 store 1 ,core_syn_cal_ctrl 
+0091 20600000 rtn 
 
 p_init_param:
-0090 70008000 jam 0 ,mem_lmo_tid2 
-0091 202013b7 branch init_param_next + 1 
+0092 70008000 jam 0 ,mem_lmo_tid2 
+0093 202013b7 branch init_param_next + 1 
 
 p_app_init:
 
 p_mouse_init:
-0092 20406df3 call enable_authrom 
-0093 2040009c call p_mouse_wheel_set_wakeup 
-0094 204000a4 call p_mouse_setting_config 
-0095 204041a7 call mouse_init_sunt 
-0096 20758000 rtn wake 
-0097 2040408e call mouse_dpi_config 
-0098 20403d8a call mouse_usb_check_enable 
-0099 20404728 call mouse_drawing_optima_init 
-009a 204000ea call p_mouse_cb_fuction 
-009b 20203bc8 branch mouse_init + 7 
+0094 20406df3 call enable_authrom 
+0095 2040009f call p_mouse_wheel_set_wakeup 
+0096 204000a7 call p_mouse_setting_config 
+0097 204041a7 call mouse_init_sunt 
+0098 20758000 rtn wake 
+0099 2040408e call mouse_dpi_config 
+009a 20403d8a call mouse_usb_check_enable 
+009b 20404728 call mouse_drawing_optima_init 
+009c 204000c8 call p_mouse_cb_fuction 
+009d 20400226 call p_mouse_mode_24g_device_multi_led_on 
+009e 20203bc8 branch mouse_init + 7 
 
 p_mouse_wheel_set_wakeup:
-009c 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-009d 207a0000 rtn blank 
-009e 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-009f d8400040 arg gpcfg_pullup ,temp 
-00a0 20406093 call gpio_config_function_int 
-00a1 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+009f 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+00a0 207a0000 rtn blank 
+00a1 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
 00a2 d8400040 arg gpcfg_pullup ,temp 
-00a3 20206093 branch gpio_config_function_int 
+00a3 20406093 call gpio_config_function_int 
+00a4 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+00a5 d8400040 arg gpcfg_pullup ,temp 
+00a6 20206093 branch gpio_config_function_int 
 
 p_mouse_setting_config:
-00a4 20758000 rtn wake 
-00a5 20402607 call g24_transmit_init 
-00a6 204022ff call g24_chmap_param_init 
-00a7 204000b1 call p_mouse_gpio_init 
-00a8 20403d13 call mouse_param_init 
-00a9 58010680 setarg 67200 
-00aa 67e1c8ad store 3 ,mem_24g_short_sleep_set 
-00ab 58000708 setarg 1800 
-00ac 67e14885 store 2 ,mem_24g_reconn_timeout_init 
-00ad d8401e00 arg 0x1e00 ,temp 
-00ae 60494838 storet 2 ,mem_24g_rx_window 
-00af 204000d6 call p_mouse_sensor_set_angle 
-00b0 20203bf5 branch mouse_setting_config + 5 
-
-p_mouse_gpio_init:
-00b1 6848c4c1 fetcht 1 ,mem_eeprom_wp_gpio 
-00b2 20406069 call gpio_config_output 
-00b3 204079b4 call usb_offline_check_init 
-00b4 6848c918 fetcht 1 ,mem_lbutton_gpio 
-00b5 20403f56 call mouse_gpio_config_input_pu 
-00b6 6848c919 fetcht 1 ,mem_rbutton_gpio 
-00b7 20403f56 call mouse_gpio_config_input_pu 
-00b8 6848c91a fetcht 1 ,mem_mbutton_gpio 
-00b9 20403f56 call mouse_gpio_config_input_pu 
-00ba 6848c90d fetcht 1 ,mem_bk_button_gpio 
-00bb 20403f56 call mouse_gpio_config_input_pu 
-00bc 6848c90e fetcht 1 ,mem_fw_button_gpio 
-00bd 20403f56 call mouse_gpio_config_input_pu 
-00be 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-00bf 20403f56 call mouse_gpio_config_input_pu 
-00c0 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00c1 20403f56 call mouse_gpio_config_input_pu 
-00c2 6848c91b fetcht 1 ,mem_config_select_device_button_gpio 
-00c3 20403f56 call mouse_gpio_config_input_pu 
-00c4 6848c912 fetcht 1 ,mem_customer_key_gpio 
-00c5 20403f56 call mouse_gpio_config_input_pu 
-00c6 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-00c7 20403f56 call mouse_gpio_config_input_pu 
-00c8 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-00c9 20403f56 call mouse_gpio_config_input_pu 
-00ca 6848c91c fetcht 1 ,mem_whee_ta_data_gpio 
-00cb 20403f56 call mouse_gpio_config_input_pu 
-00cc 6848c91d fetcht 1 ,mem_whee_tb_data_gpio 
-00cd 20403f56 call mouse_gpio_config_input_pu 
-00ce 6848c911 fetcht 1 ,mem_sensor_motion_gpio 
-00cf 20403f56 call mouse_gpio_config_input_pu 
-00d0 6848c91e fetcht 1 ,mem_device_switch_gpio 
-00d1 20403f56 call mouse_gpio_config_input_pu 
-00d2 6848caab fetcht 1 ,mem_sensor_reset_gpio 
-00d3 20406069 call gpio_config_output 
-00d4 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-00d5 20203f56 branch mouse_gpio_config_input_pu 
+00a7 20758000 rtn wake 
+00a8 20402607 call g24_transmit_init 
+00a9 204022ff call g24_chmap_param_init 
+00aa 20403f1e call mouse_gpio_init 
+00ab 20403d13 call mouse_param_init 
+00ac 58010680 setarg 67200 
+00ad 67e1c8ad store 3 ,mem_24g_short_sleep_set 
+00ae 58000708 setarg 1800 
+00af 67e14885 store 2 ,mem_24g_reconn_timeout_init 
+00b0 d8401e00 arg 0x1e00 ,temp 
+00b1 60494838 storet 2 ,mem_24g_rx_window 
+00b2 204000b4 call p_mouse_sensor_set_angle 
+00b3 20203bf5 branch mouse_setting_config + 5 
 
 p_mouse_sensor_set_angle:
-00d6 6fe0cbe3 fetch 1 ,mem_sensor_angle_connect_gnd 
-00d7 67e0c928 store 1 ,mem_config_sensor_angle 
-00d8 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-00d9 c17f8000 rtneq gpio_disable 
-00da 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-00db 20403f56 call mouse_gpio_config_input_pu 
-00dc 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-00dd 20406059 call gpio_get_bit 
-00de 242080e0 nbranch p_mouse_sensor_switch_angle_next ,true 
-00df 20203f54 branch mouse_gpio_config_input_pd 
+00b4 6fe0cbe3 fetch 1 ,mem_sensor_angle_connect_gnd 
+00b5 67e0c928 store 1 ,mem_config_sensor_angle 
+00b6 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+00b7 c17f8000 rtneq gpio_disable 
+00b8 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+00b9 20403f56 call mouse_gpio_config_input_pu 
+00ba 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+00bb 20406059 call gpio_get_bit 
+00bc 242080be nbranch p_mouse_sensor_switch_angle_next ,true 
+00bd 20203f54 branch mouse_gpio_config_input_pd 
 
 p_mouse_sensor_switch_angle_next:
-00e0 6fe0cbe5 fetch 1 ,mem_sensor_angle_connect_vin 
-00e1 67e0c928 store 1 ,mem_config_sensor_angle 
-00e2 20403f54 call mouse_gpio_config_input_pd 
-00e3 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-00e4 20406059 call gpio_get_bit 
-00e5 202080e7 branch p_mouse_sensor_switch_angle_impedance ,true 
-00e6 20203f56 branch mouse_gpio_config_input_pu 
+00be 6fe0cbe5 fetch 1 ,mem_sensor_angle_connect_vin 
+00bf 67e0c928 store 1 ,mem_config_sensor_angle 
+00c0 20403f54 call mouse_gpio_config_input_pd 
+00c1 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+00c2 20406059 call gpio_get_bit 
+00c3 202080c5 branch p_mouse_sensor_switch_angle_impedance ,true 
+00c4 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_sensor_switch_angle_impedance:
-00e7 6fe0cbe4 fetch 1 ,mem_sensor_angle_high_impedance 
-00e8 67e0c928 store 1 ,mem_config_sensor_angle 
-00e9 20203f58 branch mouse_gpio_set_high_impedance 
+00c5 6fe0cbe4 fetch 1 ,mem_sensor_angle_high_impedance 
+00c6 67e0c928 store 1 ,mem_config_sensor_angle 
+00c7 20203f58 branch mouse_gpio_set_high_impedance 
 
 p_mouse_cb_fuction:
-00ea 580000ed setarg p_mouse_24g_package_data 
-00eb 67e1489b store 2 ,mem_cb_24g_transmit_data 
-00ec 20203bd1 branch mouse_cb_fuction + 2 
+00c8 580000cb setarg p_mouse_24g_package_data 
+00c9 67e1489b store 2 ,mem_cb_24g_transmit_data 
+00ca 20203bd1 branch mouse_cb_fuction + 2 
 
 p_mouse_24g_package_data:
-00ed c6930000 rtnmark0 mark_24g 
-00ee 20403f70 call mouse_motion 
-00ef 24740000 nrtn user 
-00f0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00f1 c30a80f4 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-00f2 6fe0cb8b fetch 1 ,mem_customer_key 
-00f3 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
+00cb c6930000 rtnmark0 mark_24g 
+00cc 20403f70 call mouse_motion 
+00cd 24740000 nrtn user 
+00ce 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00cf c30a80d2 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+00d0 6fe0cb8b fetch 1 ,mem_customer_key 
+00d1 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-00f4 204042cb call mouse_data_xy_release 
-00f5 6fe0c836 fetch 1 ,mem_24g_data_type 
-00f6 c2808103 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
-00f7 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
-00f8 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00f9 9841fe00 ior temp ,pdata 
-00fa 67e0c8d0 store 1 ,mem_mouse_key 
-00fb 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
-00fc 6fe0c8d5 fetch 1 ,mem_mouse_z 
-00fd 9840fe00 iadd temp ,pdata 
-00fe 67e0c8d5 store 1 ,mem_mouse_z 
-00ff 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
-0100 6fe0c8d6 fetch 1 ,mem_mouse_tz 
-0101 9840fe00 iadd temp ,pdata 
-0102 67e0c8d6 store 1 ,mem_mouse_tz 
+00d2 204042cb call mouse_data_xy_release 
+00d3 6fe0c836 fetch 1 ,mem_24g_data_type 
+00d4 c28080e1 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
+00d5 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
+00d6 6fe0c8d0 fetch 1 ,mem_mouse_key 
+00d7 9841fe00 ior temp ,pdata 
+00d8 67e0c8d0 store 1 ,mem_mouse_key 
+00d9 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
+00da 6fe0c8d5 fetch 1 ,mem_mouse_z 
+00db 9840fe00 iadd temp ,pdata 
+00dc 67e0c8d5 store 1 ,mem_mouse_z 
+00dd 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
+00de 6fe0c8d6 fetch 1 ,mem_mouse_tz 
+00df 9840fe00 iadd temp ,pdata 
+00e0 67e0c8d6 store 1 ,mem_mouse_tz 
 
 p_mouse_24g_mouse_package_data_now:
-0103 70483601 jam type_ms ,mem_24g_data_type 
-0104 da200007 arg 7 ,rega 
-0105 da4048d0 arg mem_mouse_key ,regb 
-0106 6fe148d5 fetch 2 ,mem_mouse_z 
-0107 207a0000 rtn blank 
-0108 202026e1 branch g24_transmit_by_interrupt_enable 
+00e1 70483601 jam type_ms ,mem_24g_data_type 
+00e2 da200007 arg 7 ,rega 
+00e3 da4048d0 arg mem_mouse_key ,regb 
+00e4 6fe148d5 fetch 2 ,mem_mouse_z 
+00e5 207a0000 rtn blank 
+00e6 202026e1 branch g24_transmit_by_interrupt_enable 
 
 p_g24_pair_dispatch:
-0109 6fe14c0c fetch 2 ,mem_24g_pair_count 
-010a 1fe0fe01 increase 1 ,pdata 
-010b 67e14c0c store 2 ,mem_24g_pair_count 
-010c 6fe0cc0c fetch 1 ,mem_24g_pair_count 
-010d 1fe17eff and pdata ,0xff ,pdata 
-010e c0002341 beq 0 ,g24_pair_dispatch + 1 
-010f 20600000 rtn 
+00e7 6fe14c0c fetch 2 ,mem_24g_pair_count 
+00e8 1fe0fe01 increase 1 ,pdata 
+00e9 67e14c0c store 2 ,mem_24g_pair_count 
+00ea 6fe0cc0c fetch 1 ,mem_24g_pair_count 
+00eb 1fe17eff and pdata ,0xff ,pdata 
+00ec c0002341 beq 0 ,g24_pair_dispatch + 1 
+00ed 20600000 rtn 
 
 p_g24_reconn_dispatch:
-0110 6fe14889 fetch 2 ,mem_24g_reconn_count 
-0111 1fe17eff and pdata ,0xff ,pdata 
-0112 c0000117 beq 0 ,p_g24_reconn_dispatch_next 
-0113 6fe14889 fetch 2 ,mem_24g_reconn_count 
-0114 1fe0fe01 increase 1 ,pdata 
-0115 67e14889 store 2 ,mem_24g_reconn_count 
-0116 20600000 rtn 
+00ee 6fe14889 fetch 2 ,mem_24g_reconn_count 
+00ef 1fe17eff and pdata ,0xff ,pdata 
+00f0 c00000f5 beq 0 ,p_g24_reconn_dispatch_next 
+00f1 6fe14889 fetch 2 ,mem_24g_reconn_count 
+00f2 1fe0fe01 increase 1 ,pdata 
+00f3 67e14889 store 2 ,mem_24g_reconn_count 
+00f4 20600000 rtn 
 
 p_g24_reconn_dispatch_next:
-0117 2040259a call g24_reconn_data_prep 
-0118 2040265b call g24_transmit_receive_ack 
-0119 242c011d nbranch p_g24_reconn_device_fail ,sync 
-011a 2437811d nbranch p_g24_reconn_device_fail ,user3 
-011b 20402672 call g24_ackpayload_parse 
-011c 20202586 branch g24_reconn_receiver_succ 
+00f5 2040259a call g24_reconn_data_prep 
+00f6 2040265b call g24_transmit_receive_ack 
+00f7 242c00fb nbranch p_g24_reconn_device_fail ,sync 
+00f8 243780fb nbranch p_g24_reconn_device_fail ,user3 
+00f9 20402672 call g24_ackpayload_parse 
+00fa 20202586 branch g24_reconn_receiver_succ 
 
 p_g24_reconn_device_fail:
-011d 6fe0c88c fetch 1 ,mem_24g_fast_conn_enable 
-011e 203a22cb branch g24_ch ,blank 
-011f 6fe14889 fetch 2 ,mem_24g_reconn_count 
-0120 1fe0fe01 increase 1 ,pdata 
-0121 67e14889 store 2 ,mem_24g_reconn_count 
-0122 6fe0c88a fetch 1 ,mem_24g_reconn_count + 1 
-0123 2feffe00 isolate1 0 ,pdata 
-0124 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-0125 c000a5ad beq fast_conn_and_receiver ,g24_reconn_fast_conn_and_receiver 
-0126 c00125af beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn_and_3_0 
-0127 c001a5b1 beq receiver_and_3_0_addr ,g24_reconn_receiver_and_3_0 
-0128 c00225b3 beq pair_and_3_0_addr ,g24_reconn_pair_and_3_0 
-0129 2020256e branch g24_reconn_receiver_addr 
+00fb 6fe0c88c fetch 1 ,mem_24g_fast_conn_enable 
+00fc 203a22cb branch g24_ch ,blank 
+00fd 6fe14889 fetch 2 ,mem_24g_reconn_count 
+00fe 1fe0fe01 increase 1 ,pdata 
+00ff 67e14889 store 2 ,mem_24g_reconn_count 
+0100 6fe0c88a fetch 1 ,mem_24g_reconn_count + 1 
+0101 2feffe00 isolate1 0 ,pdata 
+0102 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+0103 c000a5ad beq fast_conn_and_receiver ,g24_reconn_fast_conn_and_receiver 
+0104 c00125af beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn_and_3_0 
+0105 c001a5b1 beq receiver_and_3_0_addr ,g24_reconn_receiver_and_3_0 
+0106 c00225b3 beq pair_and_3_0_addr ,g24_reconn_pair_and_3_0 
+0107 2020256e branch g24_reconn_receiver_addr 
 
 p_g24_transmit_no_interrupt:
-012a 20402631 call g24_txdata_prep 
-012b 24340139 nbranch p_g24_nodata_transmit ,user 
+0108 20402631 call g24_txdata_prep 
+0109 24340117 nbranch p_g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-012c 2040014d call p_g24_transmit_process 
-012d 204026ee call power_ctrl_start 
-012e 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-012f 243a0134 nbranch p_g24_short_sleep ,blank 
-0130 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
-0131 67e4485c store 8 ,mem_24g_enter_hibernate 
-0132 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
-0133 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
+010a 2040012b call p_g24_transmit_process 
+010b 204026ee call power_ctrl_start 
+010c 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+010d 243a0112 nbranch p_g24_short_sleep ,blank 
+010e 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
+010f 67e4485c store 8 ,mem_24g_enter_hibernate 
+0110 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+0111 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-0134 204026bb call g24_lpm_wait 
-0135 24740000 nrtn user 
-0136 20407fdc call clear_wake 
-0137 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-0138 202026b8 branch g24_long_sleep2 
+0112 204026bb call g24_lpm_wait 
+0113 24740000 nrtn user 
+0114 20407fdc call clear_wake 
+0115 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+0116 202026b8 branch g24_long_sleep2 
 
 p_g24_nodata_transmit:
-0139 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-013a 205a013f call p_g24_send_abort_packet ,blank 
-013b 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-013c c1008000 rtneq g24_tx_timer_int_enable 
-013d 2040269f call g24_search_receiver 
-013e 202026b5 branch g24_long_sleep 
+0117 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+0118 205a011d call p_g24_send_abort_packet ,blank 
+0119 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+011a c1008000 rtneq g24_tx_timer_int_enable 
+011b 2040269f call g24_search_receiver 
+011c 202026b5 branch g24_long_sleep 
 
 p_g24_send_abort_packet:
-013f 70483601 jam type_ms ,mem_24g_data_type 
-0140 7048a701 jam 1 ,mem_24g_abort_pac 
-0141 20402642 call g24_transmit_rf_ctrl_clear 
-0142 67e0c7c6 store 1 ,mem_24g_txbuf 
-0143 58000000 setarg 0 
-0144 67e3c7c7 store 7 ,mem_24g_txbuf + 1 
-0145 6fe248a9 fetch 4 ,mem_24g_device_addr 
-0146 67e247ce store 4 ,mem_24g_txbuf + 8 
-0147 7048350c jam 12 ,mem_24g_datalen 
-0148 6fe0c836 fetch 1 ,mem_24g_data_type 
-0149 79207e03 set1 bit_abort ,pdata 
-014a 67e0c836 store 1 ,mem_24g_data_type 
-014b 20402291 call g24_transmit_prep 
-014c 2020012c branch p_g24_transmit_start 
+011d 70483601 jam type_ms ,mem_24g_data_type 
+011e 7048a701 jam 1 ,mem_24g_abort_pac 
+011f 20402642 call g24_transmit_rf_ctrl_clear 
+0120 67e0c7c6 store 1 ,mem_24g_txbuf 
+0121 58000000 setarg 0 
+0122 67e3c7c7 store 7 ,mem_24g_txbuf + 1 
+0123 6fe248a9 fetch 4 ,mem_24g_device_addr 
+0124 67e247ce store 4 ,mem_24g_txbuf + 8 
+0125 7048350c jam 12 ,mem_24g_datalen 
+0126 6fe0c836 fetch 1 ,mem_24g_data_type 
+0127 79207e03 set1 bit_abort ,pdata 
+0128 67e0c836 store 1 ,mem_24g_data_type 
+0129 20402291 call g24_transmit_prep 
+012a 2020010a branch p_g24_transmit_start 
 
 p_g24_transmit_process:
-014d 7048a600 jam 0 ,mem_24g_retry 
+012b 7048a600 jam 0 ,mem_24g_retry 
 
 p_g24_transmit_loop:
-014e 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
-014f 34730200 until clkn_rt ,meet 
-0150 2040265b call g24_transmit_receive_ack 
-0151 6fe0c82c fetch 1 ,mem_24g_no_ack 
-0152 c000a651 beq no_ack_24g ,g24_transmit_no_ack 
-0153 242c015c nbranch p_g24_retransmit ,sync 
-0154 2437815c nbranch p_g24_retransmit ,user3 
-0155 20402672 call g24_ackpayload_parse 
-0156 20400158 call p_mouse_wakeup_24g 
-0157 20202651 branch g24_transmit_no_ack 
+012c 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+012d 34730200 until clkn_rt ,meet 
+012e 2040265b call g24_transmit_receive_ack 
+012f 6fe0c82c fetch 1 ,mem_24g_no_ack 
+0130 c000a651 beq no_ack_24g ,g24_transmit_no_ack 
+0131 242c013a nbranch p_g24_retransmit ,sync 
+0132 2437813a nbranch p_g24_retransmit ,user3 
+0133 20402672 call g24_ackpayload_parse 
+0134 20400136 call p_mouse_wakeup_24g 
+0135 20202651 branch g24_transmit_no_ack 
 
 p_mouse_wakeup_24g:
-0158 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0159 245a01cc ncall p_mouse_init_sensor_wakeup ,blank 
-015a 704be100 jam 0 ,mem_sensor_shutdown_flag 
-015b 20600000 rtn 
+0136 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+0137 245a01d1 ncall p_mouse_init_sensor_wakeup ,blank 
+0138 704be100 jam 0 ,mem_sensor_shutdown_flag 
+0139 20600000 rtn 
 
 p_g24_retransmit:
-015c 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-015d 247a0000 nrtn blank 
-015e 6fe148a3 fetch 2 ,mem_24g_txfail_cnt 
-015f 1fe0fe01 increase 1 ,pdata 
-0160 67e148a3 store 2 ,mem_24g_txfail_cnt 
-0161 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
-0162 c280a679 bbit1 1 ,g24_tx_attempt_fail 
-0163 2040267e call g24_transmit_hop_process 
-0164 20400166 call p_delay_40ms 
-0165 2020014e branch p_g24_transmit_loop 
+013a 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+013b 247a0000 nrtn blank 
+013c 6fe148a3 fetch 2 ,mem_24g_txfail_cnt 
+013d 1fe0fe01 increase 1 ,pdata 
+013e 67e148a3 store 2 ,mem_24g_txfail_cnt 
+013f 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
+0140 c280a679 bbit1 1 ,g24_tx_attempt_fail 
+0141 2040267e call g24_transmit_hop_process 
+0142 20400144 call p_delay_40ms 
+0143 2020012c branch p_g24_transmit_loop 
 
 p_delay_40ms:
-0166 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
-0167 1fe67c00 sub pdata ,0x00 ,null 
-0168 20610000 rtn positive 
-0169 df200028 arg 40 ,loopcnt 
+0144 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
+0145 1fe67c00 sub pdata ,0x00 ,null 
+0146 20610000 rtn positive 
+0147 df200028 arg 40 ,loopcnt 
 
 p_delay_ms_wait:
-016a 20002ee0 nop 12000 
-016b c2007d13 loop delay_ms_wait 
-016c 20600000 rtn 
+0148 20002ee0 nop 12000 
+0149 c2007d13 loop delay_ms_wait 
+014a 20600000 rtn 
 
 p_mouse_app_enter_hibernate:
-016d 58000006 setarg pan_reg_config 
-016e 20405b0d call twspi_read 
-016f c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0170 20203e21 branch mouse_app_enter_hibernate + 1 
+014b 58000006 setarg pan_reg_config 
+014c 20405b0d call twspi_read 
+014d c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+014e 20203e21 branch mouse_app_enter_hibernate + 1 
 
 p_mouse_setgpio_hibernate:
-0171 204042e9 call mouse_set_sdio_high 
-0172 20407fdc call clear_wake 
-0173 20404015 call mouse_before_hibernate_wheel_gpio_set 
-0174 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0175 20406069 call gpio_out_active 
-0176 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0177 20406042 call gpio_clr_wake 
-0178 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0179 d840003f arg gpcfg_output_high ,temp 
-017a 20406093 call gpio_config_function_int 
-017b 20203e36 branch mouse_setgpio_hibernate + 3 
+014f 204042e9 call mouse_set_sdio_high 
+0150 20407fdc call clear_wake 
+0151 20404015 call mouse_before_hibernate_wheel_gpio_set 
+0152 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0153 20406069 call gpio_out_active 
+0154 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0155 20406042 call gpio_clr_wake 
+0156 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0157 d840003f arg gpcfg_output_high ,temp 
+0158 20406093 call gpio_config_function_int 
+0159 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-017c 20403f88 call mouse_wheel_check 
-017d 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-017e d840003f arg gpcfg_output_high ,temp 
-017f 20406093 call gpio_config_function_int 
-0180 20405b04 call twspi_disable 
-0181 6848c918 fetcht 1 ,mem_lbutton_gpio 
-0182 20406036 call gpio_set_wake 
-0183 6848c919 fetcht 1 ,mem_rbutton_gpio 
-0184 20406036 call gpio_set_wake 
-0185 6848c91a fetcht 1 ,mem_mbutton_gpio 
-0186 20406036 call gpio_set_wake 
-0187 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0188 20406036 call gpio_set_wake 
-0189 6848c90e fetcht 1 ,mem_fw_button_gpio 
-018a 20406036 call gpio_set_wake 
-018b 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-018c 20206036 branch gpio_set_wake 
+015a 20403f88 call mouse_wheel_check 
+015b 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+015c d840003f arg gpcfg_output_high ,temp 
+015d 20406093 call gpio_config_function_int 
+015e 20405b04 call twspi_disable 
+015f 6848c918 fetcht 1 ,mem_lbutton_gpio 
+0160 20406036 call gpio_set_wake 
+0161 6848c919 fetcht 1 ,mem_rbutton_gpio 
+0162 20406036 call gpio_set_wake 
+0163 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0164 20406036 call gpio_set_wake 
+0165 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0166 20406036 call gpio_set_wake 
+0167 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0168 20406036 call gpio_set_wake 
+0169 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+016a 20206036 branch gpio_set_wake 
 
 p_mouse_priority_bb_event:
-018d 1a627e00 copy regc ,pdata 
-018e c01e01a5 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-018f c0190192 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-0190 c0220199 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-0191 20204336 branch mouse_priority_bb_event + 2 
+016b 1a627e00 copy regc ,pdata 
+016c c01c8185 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+016d c01e0187 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+016e c01d018d beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+016f c0190172 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+0170 c0220179 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+0171 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-0192 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0193 c0008196 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-0194 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-0195 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0172 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0173 c0008176 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+0174 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+0175 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-0196 2040436c call mouse_updata_le_param 
-0197 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-0198 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0176 2040436c call mouse_updata_le_param 
+0177 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+0178 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-0199 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-019a 1fe67c0c sub pdata ,le_interval_15ms ,null 
-019b 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-019c 67e14372 store 2 ,mem_le_interval_min 
-019d 67e14374 store 2 ,mem_le_interval_min + 2 
-019e 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-019f 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-01a0 98467c00 isub temp ,null 
-01a1 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-01a2 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-01a3 67e0cb8a store 1 ,mem_lpm_mult_init 
-01a4 20204386 branch mouse_le_conn_param_lpm_enable 
+0179 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+017a 1fe67c0c sub pdata ,le_interval_15ms ,null 
+017b 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+017c 67e14372 store 2 ,mem_le_interval_min 
+017d 67e14374 store 2 ,mem_le_interval_min + 2 
+017e 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+017f 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+0180 98467c00 isub temp ,null 
+0181 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+0182 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+0183 67e0cb8a store 1 ,mem_lpm_mult_init 
+0184 20204386 branch mouse_le_conn_param_lpm_enable 
+
+p_mouse_24g_pairing_complete:
+0185 20400218 call p_mouse_discovey_led_blink_off 
+0186 20204857 branch mouse_24g_pairing_complete 
 
 p_mouse_24g_attempt_success:
-01a5 6fe2483c fetch 4 ,mem_24g_addr 
-01a6 67e24891 store 4 ,mem_24g_receiver_addr 
-01a7 67e24993 store 4 ,mem_mouse_24g_addr 
-01a8 204048c6 call mouse_device_poweron_timer_init 
-01a9 2020484e branch mouse_24g_attempt_success 
+0187 20400218 call p_mouse_discovey_led_blink_off 
+0188 6fe2483c fetch 4 ,mem_24g_addr 
+0189 67e24891 store 4 ,mem_24g_receiver_addr 
+018a 67e24993 store 4 ,mem_mouse_24g_addr 
+018b 204048c6 call mouse_device_poweron_timer_init 
+018c 2020484e branch mouse_24g_attempt_success 
+
+p_mouse_24g_attempt_fail:
+018d 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+018e 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
+018f 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+0190 c0010195 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+0191 c00201a7 beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
+0192 c00181ae beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
+0193 20400218 call p_mouse_multi_led_blink_off 
+0194 2020483a branch mouse_24g_attempt_fail_enter_hibernate + 1 
+
+p_mouse_24g_fast_conn_attempt_fail:
+0195 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0196 c29781a5 bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_start_auto_pair 
+0197 c29801a5 bbit1 mouse_enable_auto_24g_paring ,p_mouse_24g_start_auto_pair 
+0198 6fe24993 fetch 4 ,mem_mouse_24g_addr 
+0199 684a4974 fetcht 4 ,mem_mouse_compare_addr_ff 
+019a 98467c00 isub temp ,null 
+019b 2022819d branch p_mouse_24g_start_pair_mode ,zero 
+019c 20204806 branch mouse_24g_reconn_dongle_start 
+
+p_mouse_24g_start_pair_mode:
+019d d8e00001 arg mouse_24g_pairing_flag ,queue 
+019e 204046f0 call mouse_enable_function_flag 
+019f 58000000 setarg 0 
+01a0 67e14887 store 2 ,mem_24g_reconn_timeout 
+01a1 20404576 call mouse_stop_discovery 
+01a2 2040498e call mouse_low_voltage_led_blink_disable 
+01a3 20400201 call p_mouse_discovery_multi_led_blink 
+01a4 2020482e branch mouse_24g_start_pair_mode + 7 
+
+p_mouse_24g_start_auto_pair:
+01a5 20400201 call p_mouse_discovery_multi_led_blink 
+01a6 20204812 branch mouse_24g_start_auto_pair + 1 
+
+p_mouse_24g_auto_pair_attempt_fail:
+01a7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01a8 c31781ac bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+01a9 6fe0cbb4 fetch 1 ,mem_device_number 
+01aa c00081ac beq 1 ,p_mouse_24g_attempt_fail_enter_hibernate 
+01ab 2020481a branch mouse_24g_first_bluetooth_reconnect 
+
+p_mouse_24g_attempt_fail_enter_hibernate:
+01ac 20400218 call p_mouse_multi_led_blink_off 
+01ad 2020483a branch mouse_24g_attempt_fail_enter_hibernate + 1 
+
+p_mouse_reconn_dongle_attempt_fail:
+01ae 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01af c31781ac bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+01b0 c28981ac bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
+01b1 c28901ac bbit1 mouse_enable_flash ,p_mouse_24g_attempt_fail_enter_hibernate 
+01b2 20204812 branch mouse_24g_start_auto_pair + 1 
 
 p_mouse_start_work:
-01aa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01ab c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-01ac 6fe0c938 fetch 1 ,mem_device_flag 
-01ad c00001af beq mode_24g_device ,p_mouse_24g_start_mode 
-01ae 20203d57 branch mouse_start_work + 5 
+01b3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01b4 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+01b5 6fe0c938 fetch 1 ,mem_device_flag 
+01b6 c00001b8 beq mode_24g_device ,p_mouse_24g_start_mode 
+01b7 20203d57 branch mouse_start_work + 5 
 
 p_mouse_24g_start_mode:
-01af 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01b0 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-01b1 20403d65 call mouse_wakeup_from_power_check 
-01b2 20344806 branch mouse_24g_reconn_dongle_start ,user 
-01b3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01b4 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-01b5 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-01b6 20404110 call mouse_key_check_once 
-01b7 1a217e07 and rega ,0x07 ,pdata 
-01b8 202047ff branch mouse_24g_start_mode + 9 
+01b8 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01b9 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+01ba 20403d65 call mouse_wakeup_from_power_check 
+01bb 20344806 branch mouse_24g_reconn_dongle_start ,user 
+01bc 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01bd c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+01be c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+01bf 20404110 call mouse_key_check_once 
+01c0 1a217e07 and rega ,0x07 ,pdata 
+01c1 202047ff branch mouse_24g_start_mode + 9 
 
 p_mouse_seting_dpi:
-01b9 2040408f call mouse_setting_dpi_4_level 
-01ba 204001bc call p_mouse_dpi_led_blink_delay 
-01bb 20204098 branch mouse_seting_sensor_type 
+01c2 2040408f call mouse_setting_dpi_4_level 
+01c3 204001c5 call p_mouse_dpi_led_blink_delay 
+01c4 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-01bc 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-01bd c17f8000 rtneq gpio_disable 
-01be 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-01bf 247a0000 nrtn blank 
-01c0 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-01c1 247a0000 nrtn blank 
-01c2 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-01c3 247a0000 nrtn blank 
-01c4 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-01c5 247a0000 nrtn blank 
-01c6 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-01c7 203a020c branch p_mouse_dpi_led_blink_init ,blank 
-01c8 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-01c9 20600000 rtn 
+01c5 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+01c6 247a0000 nrtn blank 
+01c7 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+01c8 247a0000 nrtn blank 
+01c9 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+01ca 247a0000 nrtn blank 
+01cb 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+01cc 203a0231 branch p_mouse_dpi_led_blink_init ,blank 
+01cd 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+01ce 20600000 rtn 
 
 p_mouse_init_sunt:
-01ca 20403f65 call mouse_sensor_spi_init 
-01cb 20758000 rtn wake 
+01cf 20403f65 call mouse_sensor_spi_init 
+01d0 20758000 rtn wake 
 
 p_mouse_init_sensor_wakeup:
-01cc 20404236 call mouse_sensor_poweron 
+01d1 20404236 call mouse_sensor_poweron 
 
 p_mouse_init_sensor:
-01cd 204041b5 call mouse_read_sensor_id 
-01ce c01801d4 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-01cf c018c217 beq p3065_id1 ,mouse_init_p3065 
-01d0 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
-01d1 204041b2 call mouse_twspi_reset 
-01d2 20001af4 nop 6900 
-01d3 202001cd branch p_mouse_init_sensor 
+01d2 204041b5 call mouse_read_sensor_id 
+01d3 c01801d9 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+01d4 c018c217 beq p3065_id1 ,mouse_init_p3065 
+01d5 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+01d6 204041b2 call mouse_twspi_reset 
+01d7 20001af4 nop 6900 
+01d8 202001d2 branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-01d4 6fe0c9c2 fetch 1 ,mem_sensor_id2 
-01d5 c02d01dd beq p_mx8650 ,p_mouse_mx8650_init_param 
-01d6 c06c41cb beq p8009_id2 ,mouse_8009_init_param 
-01d7 c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
-01d8 c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
-01d9 c00141ea beq p3212_id2 ,mouse_3212_init_param 
-01da c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
-01db c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
-01dc 202001cd branch p_mouse_init_sensor 
+01d9 6fe0c9c2 fetch 1 ,mem_sensor_id2 
+01da c02d01e2 beq p_mx8650 ,p_mouse_mx8650_init_param 
+01db c06c41cb beq p8009_id2 ,mouse_8009_init_param 
+01dc c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+01dd c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+01de c00141ea beq p3212_id2 ,mouse_3212_init_param 
+01df c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
+01e0 c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
+01e1 202001d2 branch p_mouse_init_sensor 
 
 p_mouse_mx8650_init_param:
-01dd 70492705 jam mx8650 ,mem_config_sensor_type 
-01de 20404232 call mouse_sensor_reset 
-01df 20407d12 call delay_10ms 
-01e0 da604be6 arg mem_sensor_8650_init_new ,regc 
-01e1 2040422b call mouse_sensor_wr_seq 
-01e2 2020408e branch mouse_dpi_config 
+01e2 70492705 jam mx8650 ,mem_config_sensor_type 
+01e3 20404232 call mouse_sensor_reset 
+01e4 20407d12 call delay_10ms 
+01e5 da604be6 arg mem_sensor_8650_init_new ,regc 
+01e6 2040422b call mouse_sensor_wr_seq 
+01e7 2020408e branch mouse_dpi_config 
 
 p_mouse_bb_event_timer:
-01e3 204001ee call p_mouse_device_poweron_timer 
-01e4 20403e9b call mouse_adc_read 
-01e5 204002f0 call p_mouse_low_voltage_led_timer 
-01e6 2040232b call g24_pair_timeout_timer 
-01e7 20402556 call g24_reconn_timeout_timer 
-01e8 204047cd call mouse_24g_long_sleep_param_update_timer 
-01e9 20400209 call p_mouse_dpi_led_blink_delay_timer 
-01ea 2040407c call mouse_dpi_key_check_long_press 
-01eb 204044cc call mouse_bt_discovery_check 
-01ec 20400221 call p_mouse_commbination_key_process 
-01ed 202044c0 branch mouse_bb_event_timer + 11 
-
-p_mouse_device_poweron_timer:
-01ee 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01ef c4100000 rtnbit0 mouse_enable_power_on_led 
-01f0 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-01f1 207a0000 rtn blank 
-01f2 1fe0ffff increase -1 ,pdata 
-01f3 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
-01f4 203a01fb branch p_mouse_device_led_off ,blank 
-
-p_mouse_device_led_on:
-01f5 6fe0cc14 fetch 1 ,mem_config_device_24g_led_gpio_patch 
-01f6 c081c920 bne ice_reuse_gpio ,mouse_device_led_on 
-01f7 6848cc14 fetcht 1 ,mem_config_device_24g_led_gpio_patch 
-01f8 20406069 call gpio_config_output 
-01f9 6848cc14 fetcht 1 ,mem_config_device_24g_led_gpio_patch 
-01fa 20206069 branch gpio_out_active 
-
-p_mouse_device_led_off:
-01fb 6fe0cc14 fetch 1 ,mem_config_device_24g_led_gpio_patch 
-01fc c081c912 bne ice_reuse_gpio ,mouse_device_led_off 
-
-p_mouse_reuse_ice_gpio_config_input:
-01fd 6848cc14 fetcht 1 ,mem_config_device_24g_led_gpio_patch 
-01fe 20203f56 branch mouse_gpio_config_input_pu 
-
-p_mouse_led_config_ouput:
-01ff 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
-0200 20406069 call gpio_config_output 
-0201 6848c915 fetcht 1 ,mem_config_device_24g_led_gpio 
-0202 20406069 call gpio_config_output 
-0203 6848c916 fetcht 1 ,mem_config_device_bt1_led_gpio 
-0204 20406069 call gpio_config_output 
-0205 6848c922 fetcht 1 ,mem_config_device_bt2_led_gpio 
-0206 20406069 call gpio_config_output 
-0207 6848c923 fetcht 1 ,mem_dpi_led_gpio 
-0208 20206069 branch gpio_config_output 
+01e8 20403e9b call mouse_adc_read 
+01e9 20400319 call p_mouse_low_voltage_led_timer 
+01ea 2040232b call g24_pair_timeout_timer 
+01eb 20402556 call g24_reconn_timeout_timer 
+01ec 204047cd call mouse_24g_long_sleep_param_update_timer 
+01ed 2040022e call p_mouse_dpi_led_blink_delay_timer 
+01ee 204001f3 call p_mouse_multi_led_blink_timer 
+01ef 2040407c call mouse_dpi_key_check_long_press 
+01f0 204044cc call mouse_bt_discovery_check 
+01f1 20400244 call p_mouse_commbination_key_process 
+01f2 202044c0 branch mouse_bb_event_timer + 11 
+
+p_mouse_multi_led_blink_timer:
+01f3 6fe0cc14 fetch 1 ,mem_mouse_multi_led_blink_enable 
+01f4 207a0000 rtn blank 
+01f5 6fe0cc17 fetch 1 ,mem_mouse_multi_led_type 
+01f6 c0008208 beq multi_led_blink ,p_mouse_multi_led_type_blink 
+
+p_mouse_multi_led_type_on:
+01f7 20400215 call p_mouse_multi_led_on 
+01f8 6fe0cc18 fetch 1 ,mem_mouse_multi_led_on_timer 
+01f9 1fe0fe01 increase 1 ,pdata 
+01fa 67e0cc18 store 1 ,mem_mouse_multi_led_on_timer 
+01fb 6848cc19 fetcht 1 ,mem_mouse_multi_led_on_timer_init 
+01fc 98467c00 isub temp ,null 
+01fd 204281ff call p_mouse_multi_led_off_poweron2s ,zero 
+01fe 20600000 rtn 
+
+p_mouse_multi_led_off_poweron2s:
+01ff 704c1e00 jam 0 ,mem_mouse_multi_led_on_poweron2s_flag 
+0200 2020021a branch p_mouse_multi_led_off 
+
+p_mouse_discovery_multi_led_blink:
+0201 704c1a05 jam 5 ,mem_mouse_multi_led_blink_timer_init 
+
+p_mouse_discovery_multi_led_blink1:
+0202 704c1d00 jam 0 ,mem_mouse_multi_led_blink_count_limited 
+0203 704c1c01 jam 1 ,mem_mouse_multi_led_blink_count 
+
+p_mouse_multi_led_blink_enable:
+0204 704c1b05 jam 5 ,mem_mouse_multi_led_blink_timer 
+0205 704c1401 jam on ,mem_mouse_multi_led_blink_enable 
+0206 704c1701 jam multi_led_blink ,mem_mouse_multi_led_type 
+0207 20600000 rtn 
+
+p_mouse_multi_led_type_blink:
+0208 da604c1b arg mem_mouse_multi_led_blink_timer ,regc 
+0209 da40020b arg p_mouse_multi_led_type_blink_timeout ,regb 
+020a 2020318a branch timer_single_step 
+
+p_mouse_multi_led_type_blink_timeout:
+020b 6fe0cc1a fetch 1 ,mem_mouse_multi_led_blink_timer_init 
+020c 67e0cc1b store 1 ,mem_mouse_multi_led_blink_timer 
+020d 6fe0cc1d fetch 1 ,mem_mouse_multi_led_blink_count_limited 
+020e 203a0213 branch p_mouse_multi_led_blink_count_no_limited ,blank 
+020f 6fe0cc1c fetch 1 ,mem_mouse_multi_led_blink_count 
+0210 203a0218 branch p_mouse_multi_led_blink_off ,blank 
+0211 1fe0ffff increase -1 ,pdata 
+0212 67e0cc1c store 1 ,mem_mouse_multi_led_blink_count 
+
+p_mouse_multi_led_blink_count_no_limited:
+0213 6fe0cc16 fetch 1 ,mem_mouse_multi_led_state 
+0214 c000821a beq on ,p_mouse_multi_led_off 
+
+p_mouse_multi_led_on:
+0215 704c1601 jam on ,mem_mouse_multi_led_state 
+0216 6848cc15 fetcht 1 ,mem_mouse_multi_led_gpio 
+0217 20206069 branch gpio_out_active 
+
+p_mouse_discovey_led_blink_off:
+
+p_mouse_multi_led_blink_off:
+0218 58000000 setarg 0 
+0219 67e1cc1b store 3 ,mem_mouse_multi_led_blink_timer 
+
+p_mouse_multi_led_off:
+021a 6fe0cc1c fetch 1 ,mem_mouse_multi_led_blink_count 
+021b 243a021e nbranch p_mouse_multi_led_off_wait_blink_over ,blank 
+021c 704c1400 jam 0 ,mem_mouse_multi_led_blink_enable 
+021d 704c1700 jam 0 ,mem_mouse_multi_led_type 
+
+p_mouse_multi_led_off_wait_blink_over:
+021e 704c1800 jam 0 ,mem_mouse_multi_led_on_timer 
+021f 704c1600 jam off ,mem_mouse_multi_led_state 
+
+p_mouse_multi_led_gpio_set_high:
+0220 6fe0cc15 fetch 1 ,mem_mouse_multi_led_gpio 
+0221 c0018224 beq ice_reuse_gpio ,p_mouse_multi_led_gpio_config_input 
+0222 6848cc15 fetcht 1 ,mem_mouse_multi_led_gpio 
+0223 20206065 branch gpio_out_inactive 
+
+p_mouse_multi_led_gpio_config_input:
+0224 6848cc15 fetcht 1 ,mem_mouse_multi_led_gpio 
+0225 20203f56 branch mouse_gpio_config_input_pu 
+
+p_mouse_mode_bt_device1_multi_led_on:
+
+p_mouse_mode_24g_device_multi_led_on:
+0226 704c1e01 jam 1 ,mem_mouse_multi_led_on_poweron2s_flag 
+0227 704c1401 jam on ,mem_mouse_multi_led_blink_enable 
+0228 704c1700 jam multi_led_on ,mem_mouse_multi_led_type 
+0229 704c1800 jam 0 ,mem_mouse_multi_led_on_timer 
+022a 20600000 rtn 
+
+p_mouse_dpi_multi_led_blink:
+022b 704c1a02 jam 2 ,mem_mouse_multi_led_blink_timer_init 
+022c 704c1d01 jam 1 ,mem_mouse_multi_led_blink_count_limited 
+022d 20200204 branch p_mouse_multi_led_blink_enable 
 
 p_mouse_dpi_led_blink_delay_timer:
-0209 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-020a da40020c arg p_mouse_dpi_led_blink_init ,regb 
-020b 2020318a branch timer_single_step 
+022e da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+022f da400231 arg p_mouse_dpi_led_blink_init ,regb 
+0230 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-020c 6fe0c927 fetch 1 ,mem_config_sensor_type 
-020d c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-020e c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-020f 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0210 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-0211 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0212 67e14930 store 2 ,mem_mouse_on_time 
-0213 67e14932 store 2 ,mem_mouse_off_time 
-0214 da200000 arg 0 ,rega 
-0215 6848c992 fetcht 1 ,mem_mouse_dpi 
-0216 18408402 increase 2 ,temp 
-0217 18467c03 sub temp ,3 ,null 
-0218 2041021b call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0219 2441021f ncall p_mouse_dpi_led_blink_count_clean ,positive 
-021a 202048ff branch mouse_dpi_led_blink_init_end 
-
-p_mouse_dpi_led_blink_init_level_4:
-021b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-021c c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-021d 18408401 increase 1 ,temp 
-021e 20600000 rtn 
-
-p_mouse_dpi_led_blink_count_clean:
-021f 184085fd increase -3 ,temp 
-0220 20600000 rtn 
+0231 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0232 c28e0237 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_led_blink_four_level 
+
+p_mouse_dpi_led_blink_three_level:
+0233 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0234 c000023e beq 0 ,p_mouse_dpi_led_blink_twice 
+0235 c0008240 beq 1 ,p_mouse_dpi_led_blink_thrice 
+0236 2020023c branch p_mouse_dpi_led_blink_once 
+
+p_mouse_dpi_led_blink_four_level:
+0237 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0238 c0000240 beq 0 ,p_mouse_dpi_led_blink_thrice 
+0239 c0008242 beq 1 ,p_mouse_dpi_led_blink_quartic 
+023a c001023c beq 2 ,p_mouse_dpi_led_blink_once 
+023b 2020023e branch p_mouse_dpi_led_blink_twice 
+
+p_mouse_dpi_led_blink_once:
+023c 704c1c01 jam 1 ,mem_mouse_multi_led_blink_count 
+023d 2020022b branch p_mouse_dpi_multi_led_blink 
+
+p_mouse_dpi_led_blink_twice:
+023e 704c1c03 jam 3 ,mem_mouse_multi_led_blink_count 
+023f 2020022b branch p_mouse_dpi_multi_led_blink 
+
+p_mouse_dpi_led_blink_thrice:
+0240 704c1c05 jam 5 ,mem_mouse_multi_led_blink_count 
+0241 2020022b branch p_mouse_dpi_multi_led_blink 
+
+p_mouse_dpi_led_blink_quartic:
+0242 704c1c07 jam 7 ,mem_mouse_multi_led_blink_count 
+0243 2020022b branch p_mouse_dpi_multi_led_blink 
 
 p_mouse_commbination_key_process:
-0221 6fe0c938 fetch 1 ,mem_device_flag 
-0222 c0000227 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-0223 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0224 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-0225 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0226 2020022a branch p_mouse_commbination_key_start 
+0244 6fe0c938 fetch 1 ,mem_device_flag 
+0245 c000024a beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+0246 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0247 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+0248 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+0249 2020024d branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-0227 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0228 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-0229 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+024a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+024b c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+024c 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-022a 6048cb9d storet 1 ,mem_mouse_commbination_key 
-022b 20404115 call mouse_check_key_gpio 
-022c 1fe17e07 and pdata ,0x07 ,pdata 
-022d 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-022e 98467c00 isub temp ,null 
-022f 20228231 branch p_mouse_commbination_key_down ,zero 
-0230 202044eb branch mouse_commbination_key_up 
+024d 6048cb9d storet 1 ,mem_mouse_commbination_key 
+024e 20404115 call mouse_check_key_gpio 
+024f 1fe17e07 and pdata ,0x07 ,pdata 
+0250 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+0251 98467c00 isub temp ,null 
+0252 20228254 branch p_mouse_commbination_key_down ,zero 
+0253 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-0231 204044f6 call mouse_combination_ui_timer 
-0232 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-0233 c1008000 rtneq commbination_key_state_down 
-0234 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-0235 20600000 rtn 
+0254 204044f6 call mouse_combination_ui_timer 
+0255 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+0256 c1008000 rtneq commbination_key_state_down 
+0257 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+0258 20600000 rtn 
 
 p_mouse_start_discovery:
-0236 6fe1478c fetch 2 ,mem_ui_state_map 
-0237 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-0238 2040c581 call mouse_stop_le_adv ,true 
-0239 6fe1478c fetch 2 ,mem_ui_state_map 
-023a 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-023b 2040c322 call mouse_cancel_reconnect ,true 
-023c 20204554 branch mouse_start_discovery + 1 
+0259 6fe1478c fetch 2 ,mem_ui_state_map 
+025a 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+025b 2040c581 call mouse_stop_le_adv ,true 
+025c 6fe1478c fetch 2 ,mem_ui_state_map 
+025d 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+025e 2040c322 call mouse_cancel_reconnect ,true 
+025f 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-023d 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-023e 245a7861 ncall ui_timer_init ,blank 
-023f 704be200 jam 0 ,mem_power_on_flag 
-0240 20207851 branch ui_timer_check + 1 
+0260 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0261 245a7861 ncall ui_timer_init ,blank 
+0262 704be200 jam 0 ,mem_power_on_flag 
+0263 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-0241 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-0242 1fe20c00 copy pdata ,contr 
-0243 efe08006 ifetch 1 ,contr 
-0244 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-0245 1fe1040f and pdata ,0x0f ,temp 
-0246 1ff1fe00 rshift4 pdata ,pdata 
-0247 c0048249 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-0248 20204d93 branch hid_rx_process + 7 
+0264 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0265 1fe20c00 copy pdata ,contr 
+0266 efe08006 ifetch 1 ,contr 
+0267 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+0268 1fe1040f and pdata ,0x0f ,temp 
+0269 1ff1fe00 rshift4 pdata ,pdata 
+026a c004826c beq hid_type_set_idle ,p_hid_rx_process_handshake 
+026b 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-0249 da200001 arg 1 ,rega 
-024a 20404dc0 call hid_malloc_tx_buff 
-024b 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-024c e7e10005 istore 2 ,contw 
-024d 58000000 setarg 0 
-024e e7e08005 istore 1 ,contw 
-024f 70095001 jam 1 ,mem_ui_data_txbuff_length 
-0250 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-0251 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-0252 67e0c4e2 store 1 ,mem_hid_control_state 
-0253 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-0254 20207871 branch ui_ipc_send_event 
+026c da200001 arg 1 ,rega 
+026d 20404dc0 call hid_malloc_tx_buff 
+026e 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+026f e7e10005 istore 2 ,contw 
+0270 58000000 setarg 0 
+0271 e7e08005 istore 1 ,contw 
+0272 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0273 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+0274 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0275 67e0c4e2 store 1 ,mem_hid_control_state 
+0276 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0277 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-0255 6fe0c3dd fetch 1 ,mem_le_md_count 
-0256 1fe0fe01 pincrease 1 
-0257 67e0c3dd store 1 ,mem_le_md_count 
-0258 c006165a beq le_md_max_count ,le_slave_cont 
-0259 2040191b call le_acknowledge 
-025a 2040196a call le_prepare_tx 
-025b 6fe082bd fetch 1 ,mem_le_tx_phy 
-025c 2040168b call le_enable_phy_by_pdata 
-025d 20401838 call le_transmit 
-025e 20201655 branch le_slave_match + 10 
+0278 6fe0c3dd fetch 1 ,mem_le_md_count 
+0279 1fe0fe01 pincrease 1 
+027a 67e0c3dd store 1 ,mem_le_md_count 
+027b c006165a beq le_md_max_count ,le_slave_cont 
+027c 2040191b call le_acknowledge 
+027d 2040196a call le_prepare_tx 
+027e 6fe082bd fetch 1 ,mem_le_tx_phy 
+027f 2040168b call le_enable_phy_by_pdata 
+0280 20401838 call le_transmit 
+0281 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-025f efe10006 ifetch 2 ,contr 
-0260 c0020262 beq le_l2cap_cid_att ,p_le_parse_att 
-0261 202019e4 branch le_parse_l2cap + 10 
+0282 efe10006 ifetch 2 ,contr 
+0283 c0020285 beq le_l2cap_cid_att ,p_le_parse_att 
+0284 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-0262 efe18006 ifetch 3 ,contr 
-0263 67e1c436 store 3 ,mem_le_att_opcode 
-0264 c0090266 beq attop_write_request ,p_le_parse_att_write_request 
-0265 20201cd3 branch le_parse_att + 2 
+0285 efe18006 ifetch 3 ,contr 
+0286 67e1c436 store 3 ,mem_le_att_opcode 
+0287 c0090289 beq attop_write_request ,p_le_parse_att_write_request 
+0288 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-0266 18c22200 copy contr ,rega 
-0267 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0268 1fe0a5fd add pdata ,-3 ,regb 
-0269 20401a25 call le_writeatt_cb 
-026a 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-026b c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-026c 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-026d 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-026e 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-026f c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-0270 5800001a setarg 0x001a 
-0271 68494437 fetcht 2 ,mem_le_att_handle 
-0272 98467c00 isub temp ,null 
-0273 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-0274 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-0275 20201ec9 branch le_send_att_error_response 
+0289 18c22200 copy contr ,rega 
+028a 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+028b 1fe0a5fd add pdata ,-3 ,regb 
+028c 20401a25 call le_writeatt_cb 
+028d 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+028e c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+028f 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0290 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+0291 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0292 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+0293 5800001a setarg 0x001a 
+0294 68494437 fetcht 2 ,mem_le_att_handle 
+0295 98467c00 isub temp ,null 
+0296 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0297 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+0298 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-0276 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0277 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-0278 202026bc branch g24_lpm_wait + 1 
+0299 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+029a 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+029b 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-0279 78547c00 disable user 
-027a 58000000 setarg 0 
-027b 67e348d1 store 6 ,mem_mouse_x 
-027c 20404240 call mouse_check_sensor_data 
-027d 2040408e call mouse_dpi_config 
-027e 20403f7e call mouse_zwheel 
-027f 20403f83 call mouse_t_zwheel 
-0280 204040dc call mouse_key 
-0281 6fe0c8d0 fetch 1 ,mem_mouse_key 
-0282 1fe17e1f and_into 0x1f ,pdata 
-0283 67e0c8d0 store 1 ,mem_mouse_key 
-0284 24344728 nbranch mouse_drawing_optima_init ,user 
-0285 20400287 call p_mouse_drawing_optima 
-0286 20204544 branch mouse_no_data_timer_init 
+029c 78547c00 disable user 
+029d 58000000 setarg 0 
+029e 67e348d1 store 6 ,mem_mouse_x 
+029f 20404240 call mouse_check_sensor_data 
+02a0 2040408e call mouse_dpi_config 
+02a1 20403f7e call mouse_zwheel 
+02a2 20403f83 call mouse_t_zwheel 
+02a3 204040dc call mouse_key 
+02a4 6fe0c8d0 fetch 1 ,mem_mouse_key 
+02a5 1fe17e1f and_into 0x1f ,pdata 
+02a6 67e0c8d0 store 1 ,mem_mouse_key 
+02a7 24344728 nbranch mouse_drawing_optima_init ,user 
+02a8 204002aa call p_mouse_drawing_optima 
+02a9 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_drawing_optima:
-0287 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0288 c41c0000 rtnbit0 mouse_enable_smoother 
-0289 6fe0c927 fetch 1 ,mem_config_sensor_type 
-028a c1018000 rtneq p3212 
-028b c1000000 rtneq p3205 
-028c 6fe248d1 fetch 4 ,mem_mouse_x 
-028d 207a0000 rtn blank 
-028e 204047bd call mouse_data_abs_check 
-028f 58000003 setarg 0x03 
-0290 204047b3 call mouse_pdata_greater_than_check 
-0291 205a47af call mouse_disable_asm ,blank 
-0292 245a47b1 ncall mouse_enable_asm ,blank 
-0293 58000002 setarg 0x02 
-0294 204047b8 call mouse_data_less_than_check 
-0295 205a47af call mouse_disable_asm ,blank 
-0296 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
-0297 c000829a beq 1 ,p_mouse_drawing_optima_modify 
-0298 2040029b call p_mouse_drawing_optima_modify + 1 
-0299 20204728 branch mouse_drawing_optima_init 
+02aa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02ab c41c0000 rtnbit0 mouse_enable_smoother 
+02ac 6fe0c927 fetch 1 ,mem_config_sensor_type 
+02ad c1018000 rtneq p3212 
+02ae c1000000 rtneq p3205 
+02af 6fe248d1 fetch 4 ,mem_mouse_x 
+02b0 207a0000 rtn blank 
+02b1 204047bd call mouse_data_abs_check 
+02b2 58000003 setarg 0x03 
+02b3 204047b3 call mouse_pdata_greater_than_check 
+02b4 205a47af call mouse_disable_asm ,blank 
+02b5 245a47b1 ncall mouse_enable_asm ,blank 
+02b6 58000002 setarg 0x02 
+02b7 204047b8 call mouse_data_less_than_check 
+02b8 205a47af call mouse_disable_asm ,blank 
+02b9 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
+02ba c00082bd beq 1 ,p_mouse_drawing_optima_modify 
+02bb 204002be call p_mouse_drawing_optima_modify + 1 
+02bc 20204728 branch mouse_drawing_optima_init 
 
 p_mouse_drawing_optima_modify:
-029a 2040472d call mouse_drawing_optima_modify 
-029b 6fe148d1 fetch 2 ,mem_mouse_x 
-029c 68494c0e fetcht 2 ,mem_mouse_data_x_value 
-029d 98408400 iadd temp ,temp 
-029e 60494c0e storet 2 ,mem_mouse_data_x_value 
-029f 60494c12 storet 2 ,mem_mouse_data_xy_value 
-02a0 204002bc call p_mouse_xy_data_judge 
-02a1 67e14c12 store 2 ,mem_mouse_data_xy_value 
-02a2 68494c0e fetcht 2 ,mem_mouse_data_x_value 
-02a3 98467e00 isub temp ,pdata 
-02a4 684948d1 fetcht 2 ,mem_mouse_x 
-02a5 245a02b8 ncall p_mouse_xy_data_judge_compensate ,blank 
-02a6 604948d1 storet 2 ,mem_mouse_x 
-02a7 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
-02a8 67e14c0e store 2 ,mem_mouse_data_x_value 
-02a9 6fe148d3 fetch 2 ,mem_mouse_y 
-02aa 68494c10 fetcht 2 ,mem_mouse_data_y_value 
-02ab 98408400 iadd temp ,temp 
-02ac 60494c10 storet 2 ,mem_mouse_data_y_value 
-02ad 60494c12 storet 2 ,mem_mouse_data_xy_value 
-02ae 204002bc call p_mouse_xy_data_judge 
-02af 67e14c12 store 2 ,mem_mouse_data_xy_value 
-02b0 68494c10 fetcht 2 ,mem_mouse_data_y_value 
-02b1 98467e00 isub temp ,pdata 
-02b2 684948d3 fetcht 2 ,mem_mouse_y 
-02b3 245a02b8 ncall p_mouse_xy_data_judge_compensate ,blank 
-02b4 604948d3 storet 2 ,mem_mouse_y 
-02b5 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
-02b6 67e14c10 store 2 ,mem_mouse_data_y_value 
-02b7 20600000 rtn 
+02bd 2040472d call mouse_drawing_optima_modify 
+02be 6fe148d1 fetch 2 ,mem_mouse_x 
+02bf 68494c0e fetcht 2 ,mem_mouse_data_x_value 
+02c0 98408400 iadd temp ,temp 
+02c1 60494c0e storet 2 ,mem_mouse_data_x_value 
+02c2 60494c12 storet 2 ,mem_mouse_data_xy_value 
+02c3 204002df call p_mouse_xy_data_judge 
+02c4 67e14c12 store 2 ,mem_mouse_data_xy_value 
+02c5 68494c0e fetcht 2 ,mem_mouse_data_x_value 
+02c6 98467e00 isub temp ,pdata 
+02c7 684948d1 fetcht 2 ,mem_mouse_x 
+02c8 245a02db ncall p_mouse_xy_data_judge_compensate ,blank 
+02c9 604948d1 storet 2 ,mem_mouse_x 
+02ca 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02cb 67e14c0e store 2 ,mem_mouse_data_x_value 
+02cc 6fe148d3 fetch 2 ,mem_mouse_y 
+02cd 68494c10 fetcht 2 ,mem_mouse_data_y_value 
+02ce 98408400 iadd temp ,temp 
+02cf 60494c10 storet 2 ,mem_mouse_data_y_value 
+02d0 60494c12 storet 2 ,mem_mouse_data_xy_value 
+02d1 204002df call p_mouse_xy_data_judge 
+02d2 67e14c12 store 2 ,mem_mouse_data_xy_value 
+02d3 68494c10 fetcht 2 ,mem_mouse_data_y_value 
+02d4 98467e00 isub temp ,pdata 
+02d5 684948d3 fetcht 2 ,mem_mouse_y 
+02d6 245a02db ncall p_mouse_xy_data_judge_compensate ,blank 
+02d7 604948d3 storet 2 ,mem_mouse_y 
+02d8 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02d9 67e14c10 store 2 ,mem_mouse_data_y_value 
+02da 20600000 rtn 
 
 p_mouse_xy_data_judge_compensate:
-02b8 98408400 iadd temp ,temp 
-02b9 58000000 setarg 0x00 
-02ba 67e14c12 store 2 ,mem_mouse_data_xy_value 
-02bb 20600000 rtn 
+02db 98408400 iadd temp ,temp 
+02dc 58000000 setarg 0x00 
+02dd 67e14c12 store 2 ,mem_mouse_data_xy_value 
+02de 20600000 rtn 
 
 p_mouse_xy_data_judge:
-02bc 6fe0cc13 fetch 1 ,mem_mouse_data_xy_value + 1 
-02bd 203a02bf branch p_mouse_current_xy_pdata_offset ,blank 
-02be 202002c4 branch p_mouse_current_xy_ndata_offset 
+02df 6fe0cc13 fetch 1 ,mem_mouse_data_xy_value + 1 
+02e0 203a02e2 branch p_mouse_current_xy_pdata_offset ,blank 
+02e1 202002e7 branch p_mouse_current_xy_ndata_offset 
 
 p_mouse_current_xy_pdata_offset:
-02bf 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
-02c0 204002ce call p_mouse_current_xy_get_1_25_times 
-02c1 67e0cc12 store 1 ,mem_mouse_data_xy_value 
+02e2 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
+02e3 204002f1 call p_mouse_current_xy_get_1_25_times 
+02e4 67e0cc12 store 1 ,mem_mouse_data_xy_value 
 
 p_mouse_xy_data_offset_new:
-02c2 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
-02c3 20600000 rtn 
+02e5 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02e6 20600000 rtn 
 
 p_mouse_current_xy_ndata_offset:
-02c4 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
-02c5 204047ab call mouse_pdata_invert 
-02c6 204002ce call p_mouse_current_xy_get_1_25_times 
-02c7 205a7e5e call disable_blank ,blank 
-02c8 204002ca call p_mouse_pdata_get_new_value 
-02c9 202002c2 branch p_mouse_xy_data_offset_new 
+02e7 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
+02e8 204047ab call mouse_pdata_invert 
+02e9 204002f1 call p_mouse_current_xy_get_1_25_times 
+02ea 205a7e5e call disable_blank ,blank 
+02eb 204002ed call p_mouse_pdata_get_new_value 
+02ec 202002e5 branch p_mouse_xy_data_offset_new 
 
 p_mouse_pdata_get_new_value:
-02ca 204047ac call mouse_rega_in_out 
-02cb 1fe67e00 sub pdata ,0 ,pdata 
-02cc 67e0cc12 store 1 ,mem_mouse_data_xy_value 
-02cd 20600000 rtn 
+02ed 204047ac call mouse_rega_in_out 
+02ee 1fe67e00 sub pdata ,0 ,pdata 
+02ef 67e0cc12 store 1 ,mem_mouse_data_xy_value 
+02f0 20600000 rtn 
 
 p_mouse_current_xy_get_1_25_times:
-02ce 1fe67c03 sub pdata ,3 ,null 
-02cf 20610000 rtn positive 
-02d0 1feffe05 mul32 pdata ,5 ,pdata 
-02d1 1fe6fc04 div pdata ,4 
-02d2 20407def call wait_div_end 
-02d3 1807fe00 quotient pdata 
-02d4 20600000 rtn 
+02f1 1fe67c03 sub pdata ,3 ,null 
+02f2 20610000 rtn positive 
+02f3 1feffe05 mul32 pdata ,5 ,pdata 
+02f4 1fe6fc04 div pdata ,4 
+02f5 20407def call wait_div_end 
+02f6 1807fe00 quotient pdata 
+02f7 20600000 rtn 
 
 p_mouse_adc_read_start:
-02d5 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-02d6 247a0000 nrtn blank 
-02d7 20400056 call p_enable_adc 
-02d8 7048f600 jam 0 ,mem_adc_read_timer 
-02d9 20406125 call vdd_calculate_by_mode 
-02da 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
-02db d8400012 arg 0x0012 ,temp 
-02dc 98467c00 isub temp ,null 
-02dd 242102ee nbranch p_mouse_adc_gpio_connect_gnd ,positive 
-02de 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
-02df c08102e6 bne adc_config_gpio ,p_mouse_adc_data_process 
-02e0 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
-02e1 184ffe08 mul32 temp ,8 ,pdata 
-02e2 1fe6fc0a div pdata ,10 
-02e3 20407dec call get_div_result 
-02e4 9840fe00 iadd temp ,pdata 
-02e5 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
+02f8 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+02f9 247a0000 nrtn blank 
+02fa 20400056 call p_enable_adc 
+02fb 7048f600 jam 0 ,mem_adc_read_timer 
+02fc 20406125 call vdd_calculate_by_mode 
+02fd 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
+02fe d8400012 arg 0x0012 ,temp 
+02ff 98467c00 isub temp ,null 
+0300 24210311 nbranch p_mouse_adc_gpio_connect_gnd ,positive 
+0301 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
+0302 c0810309 bne adc_config_gpio ,p_mouse_adc_data_process 
+0303 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
+0304 184ffe08 mul32 temp ,8 ,pdata 
+0305 1fe6fc0a div pdata ,10 
+0306 20407dec call get_div_result 
+0307 9840fe00 iadd temp ,pdata 
+0308 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
 
 p_mouse_adc_data_process:
-02e6 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
-02e7 20403ed8 call mouse_adc_bat_percent_lowpower_out 
-02e8 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
-02e9 c2813f1a bbit1 2 ,mouse_adc_button_press 
-02ea c280bf1c bbit1 1 ,mouse_power_down 
-02eb c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
-02ec 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
-02ed 20203ece branch mouse_adc_low_voltage 
+0309 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
+030a 20403ed8 call mouse_adc_bat_percent_lowpower_out 
+030b 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
+030c c2813f1a bbit1 2 ,mouse_adc_button_press 
+030d c280bf1c bbit1 1 ,mouse_power_down 
+030e c3000313 bbit0 0 ,p_mouse_adc_no_low_voltage 
+030f 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+0310 20203ece branch mouse_adc_low_voltage 
 
 p_mouse_adc_gpio_connect_gnd:
-02ee 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
-02ef 20403f54 call mouse_gpio_config_input_pd 
+0311 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
+0312 20403f54 call mouse_gpio_config_input_pd 
+
+p_mouse_adc_no_low_voltage:
+0313 d8e00004 arg mouse_low_voltage_flag ,queue 
+0314 204046f4 call mouse_disable_function_flag 
+0315 6fe0c8fa fetch 1 ,mem_mouse_adc_last_low_voltage_flag 
+0316 207a0000 rtn blank 
+0317 7048fa00 jam 0 ,mem_mouse_adc_last_low_voltage_flag 
+0318 2020021a branch p_mouse_multi_led_off 
 
 p_mouse_low_voltage_led_timer:
-02f0 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-02f1 247a0000 nrtn blank 
-02f2 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-02f3 247a0000 nrtn blank 
-02f4 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-02f5 247a0000 nrtn blank 
-02f6 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-02f7 247a0000 nrtn blank 
-02f8 20404904 call mouse_check_dpi_blink 
-02f9 20740000 rtn user 
-02fa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-02fb c4108000 rtnbit0 mouse_enable_low_voltage_led 
-02fc c4020000 rtnbit0 mouse_low_voltage_flag 
-02fd c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
-02fe 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
-02ff 1fe0fe01 increase 1 ,pdata 
-0300 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
-0301 1fe67c08 sub pdata ,8 ,null 
-0302 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
-0303 c001c970 beq 3 ,mouse_low_voltage_led_on 
-0304 c002c976 beq 5 ,mouse_low_voltage_led_off 
-0305 c003c970 beq 7 ,mouse_low_voltage_led_on 
-0306 20600000 rtn 
+0319 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+031a 247a0000 nrtn blank 
+031b 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+031c 247a0000 nrtn blank 
+031d 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+031e 247a0000 nrtn blank 
+031f 20404904 call mouse_check_dpi_blink 
+0320 20740000 rtn user 
+0321 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0322 c4108000 rtnbit0 mouse_enable_low_voltage_led 
+0323 c4020000 rtnbit0 mouse_low_voltage_flag 
+0324 c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+0325 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+0326 1fe0fe01 increase 1 ,pdata 
+0327 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
+0328 1fe67c08 sub pdata ,8 ,null 
+0329 2441032e ncall p_mouse_adc_low_volatage_led_timer_count_clean ,positive 
+032a c0018215 beq 3 ,p_mouse_multi_led_on 
+032b c002821a beq 5 ,p_mouse_multi_led_off 
+032c c0038215 beq 7 ,p_mouse_multi_led_on 
+032d 20600000 rtn 
+
+p_mouse_adc_low_volatage_led_timer_count_clean:
+032e 7048f801 jam 1 ,mem_adc_low_volatage_led_timer_count 
+032f 2020021a branch p_mouse_multi_led_off 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/program/patch.prog	(revision 646)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/program/patch.prog	(working copy)
@@ -172,7 +172,10 @@
 
 
 p_initialize_radio_cont:
-
+	//config osc_xtal_ctrim
+	call init_lpm_ctrl
+	nop 100
+	
 	jam 0xe6,core_syn_aac_cfg1
 
 	call initialize_syn_afc_cfg1
@@ -216,6 +219,7 @@
 	call mouse_usb_check_enable
 	call mouse_drawing_optima_init
 	call p_mouse_cb_fuction
+	call p_mouse_mode_24g_device_multi_led_on
 	branch mouse_init+7
 p_mouse_wheel_set_wakeup:
 	fetch 1,mem_sensor_shutdown_flag
@@ -231,7 +235,7 @@
 	rtn wake
 	call g24_transmit_init
 	call g24_chmap_param_init
-	call p_mouse_gpio_init
+	call mouse_gpio_init
 	call mouse_param_init
 	setarg 67200
 	store 3,mem_24g_short_sleep_set
@@ -241,75 +245,7 @@
 	storet 2,mem_24g_rx_window
 	call p_mouse_sensor_set_angle
 	branch mouse_setting_config+5
-p_mouse_gpio_init:
-	fetcht 1,mem_eeprom_wp_gpio
-	call gpio_config_output
-	call usb_offline_check_init
-	fetcht 1,mem_lbutton_gpio
-	call mouse_gpio_config_input_pu
-	fetcht 1,mem_rbutton_gpio
-	call mouse_gpio_config_input_pu
-	fetcht 1,mem_mbutton_gpio
-	call mouse_gpio_config_input_pu
-	fetcht 1,mem_bk_button_gpio
-	call mouse_gpio_config_input_pu
-	fetcht 1,mem_fw_button_gpio
-	call mouse_gpio_config_input_pu
-	fetcht 1,mem_dpi_button_gpio
-	call mouse_gpio_config_input_pu
-
-	fetcht 1,mem_matrix_public_gpio
-	call mouse_gpio_config_input_pu
-
-	fetcht 1,mem_config_select_device_button_gpio
-	call mouse_gpio_config_input_pu
-
-	fetcht 1,mem_customer_key_gpio
-	call mouse_gpio_config_input_pu
-
-	fetcht 1,mem_whee_a_data_gpio
-	call mouse_gpio_config_input_pu
-
-	fetcht 1,mem_whee_b_data_gpio
-	call mouse_gpio_config_input_pu
-
-	fetcht 1,mem_whee_ta_data_gpio
-	call mouse_gpio_config_input_pu
-	fetcht 1,mem_whee_tb_data_gpio
-	call mouse_gpio_config_input_pu
-
-	fetcht 1,mem_sensor_motion_gpio
-	call mouse_gpio_config_input_pu
-
-	fetcht 1,mem_device_switch_gpio
-	call mouse_gpio_config_input_pu
-	
-
-	fetcht 1,mem_sensor_reset_gpio
-	call gpio_config_output
-
-//	fetcht 1,mem_config_low_voltage_alarm_gpio
-//	call gpio_config_output
-
-//	fetcht 1,mem_config_device_24g_led_gpio
-//	call gpio_config_output
-
-//	fetcht 1,mem_config_device_bt1_led_gpio
-//	call gpio_config_output
-//	
-//	fetcht 1,mem_config_device_bt2_led_gpio
-//	call gpio_config_output
-
-//	fetcht 1,mem_dpi_led_gpio
-//	call gpio_config_output
 
-	fetcht 1,mem_select_sensor_angle_gpio
-	branch mouse_gpio_config_input_pu
-	
-
-
-
-	
 p_mouse_sensor_set_angle:
 	fetch 1,mem_sensor_angle_connect_gnd
 	store 1,mem_config_sensor_angle
@@ -525,14 +461,6 @@
 	arg gpcfg_output_high,temp
  	call gpio_config_function_int
 
-//	fetch 1,mem_gpio_wakeup_low+2	//clear gpio19 wakeup
-//	set0 3,pdata
-//	store 1,mem_gpio_wakeup_low+2
-
-//	fetch 1,mem_gpio_wakeup_low		//clear gpio3 wakeup
-//	set0 3,pdata
-//	store 1,mem_gpio_wakeup_low
-
 	call twspi_disable
 	
 	fetcht 1,mem_lbutton_gpio
@@ -552,10 +480,11 @@
 
 p_mouse_priority_bb_event:
 	copy regc,pdata
+	beq BT_EVT_24G_PAIRING_COMPLETE,p_mouse_24g_pairing_complete
 	beq BT_EVT_24G_ATTEMPT_SUCCESS,p_mouse_24g_attempt_success
-ifdef define G24_AUTO_PAIR_NERVER_BEEN_PAIRED	
+//ifdef define G24_AUTO_PAIR_NERVER_BEEN_PAIRED	
 	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
-endif
+//endif
 	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
 	branch mouse_priority_bb_event+2
@@ -584,33 +513,73 @@
 	store 1,mem_lpm_mult_init						// mouse_le_lpm_mult_reinit function will reinit mem_lpm_mult
 	branch mouse_le_conn_param_lpm_enable
 
+p_mouse_24g_pairing_complete:
+	call p_mouse_discovey_led_blink_off
+	branch mouse_24g_pairing_complete
 
 
 p_mouse_24g_attempt_success:
+	call p_mouse_discovey_led_blink_off
 	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 mouse_device_poweron_timer_init
 	branch mouse_24g_attempt_success
 
-ifdef define G24_AUTO_PAIR_NERVER_BEEN_PAIRED
+//ifdef define G24_AUTO_PAIR_NERVER_BEEN_PAIRED
 p_mouse_24g_attempt_fail:
 	fetch 1,mem_24g_attempt_fail_flag
 	nbranch mouse_24g_hibernate_set,blank
 	fetch 1,mem_24g_reconn_type
 	beq FAST_CONN_AND_3_0_ADDR,p_mouse_24g_fast_conn_attempt_fail
-	branch mouse_24g_attempt_fail+4
+	beq PAIR_AND_3_0_ADDR,p_mouse_24g_auto_pair_attempt_fail
+	beq RECEIVER_AND_3_0_ADDR,p_mouse_reconn_dongle_attempt_fail
+	call p_mouse_multi_led_blink_off
+	branch mouse_24g_attempt_fail_enter_hibernate+1
 
 p_mouse_24g_fast_conn_attempt_fail:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
-	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_start_auto_pair
-	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_start_auto_pair
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_start_auto_pair
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,p_mouse_24g_start_auto_pair
 	fetch 4,mem_mouse_24g_addr		// auto pair first time
 	fetcht 4,mem_mouse_compare_addr_ff
 	isub temp,null
-	branch mouse_24g_start_pair_mode,zero
+	branch p_mouse_24g_start_pair_mode,zero
 	branch mouse_24g_reconn_dongle_start
-endif	
+
+p_mouse_24g_start_pair_mode:
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	call mouse_enable_function_flag
+	setarg 0
+	store 2,mem_24g_reconn_timeout	
+	call mouse_stop_discovery
+	call mouse_low_voltage_led_blink_disable
+	call p_mouse_discovery_multi_led_blink
+	branch mouse_24g_start_pair_mode+7
+
+p_mouse_24g_start_auto_pair:
+	call p_mouse_discovery_multi_led_blink
+	branch mouse_24g_start_auto_pair+1
+
+p_mouse_24g_auto_pair_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_attempt_fail_enter_hibernate
+	fetch 1,mem_device_number
+	beq 1,p_mouse_24g_attempt_fail_enter_hibernate		//24g first mode and only 2.4g device
+	branch mouse_24g_first_bluetooth_reconnect
+
+p_mouse_24g_attempt_fail_enter_hibernate:
+	call p_mouse_multi_led_blink_off	
+	branch mouse_24g_attempt_fail_enter_hibernate+1
+
+p_mouse_reconn_dongle_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_EEPROM,p_mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_FLASH,p_mouse_24g_attempt_fail_enter_hibernate
+	branch mouse_24g_start_auto_pair+1
+
+//endif	
 
 p_mouse_start_work:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
@@ -639,16 +608,12 @@
 	branch mouse_seting_sensor_type
 
 p_mouse_dpi_led_blink_delay:
-	fetch 1,mem_dpi_led_gpio
-	rtneq GPIO_DISABLE
 	fetch 2,mem_mouse_discovery_timer
 	nrtn blank
 	fetch 2,mem_24g_pair_timeout
 	nrtn blank
 	fetch 2,mem_24g_reconn_timeout
 	nrtn blank
-	fetch 1,mem_mouse_device_poweron_timer_count
-	nrtn blank
 	fetch 1,mem_mouse_dpi_led_delay_count_init
 	branch p_mouse_dpi_led_blink_init,blank
 	store 1,mem_mouse_dpi_led_delay_count  //delay 1s led blink
@@ -686,7 +651,6 @@
 	branch mouse_dpi_config
 
 p_mouse_bb_event_timer:
-	call p_mouse_device_poweron_timer
 	call mouse_adc_read
 	call p_mouse_low_voltage_led_timer
 	//24g
@@ -695,81 +659,136 @@
 	call mouse_24g_long_sleep_param_update_timer
 	//led
 	call p_mouse_dpi_led_blink_delay_timer
+	call p_mouse_multi_led_blink_timer
 
 	call mouse_dpi_key_check_long_press
 	call mouse_bt_discovery_check
 	call p_mouse_commbination_key_process
 	branch mouse_bb_event_timer+11
 
-p_mouse_device_poweron_timer:
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	rtnbit0 MOUSE_ENABLE_POWER_ON_LED
-	fetch 1,mem_mouse_device_poweron_timer_count
+p_mouse_multi_led_blink_timer:
+	fetch 1,mem_mouse_multi_led_blink_enable
 	rtn blank
+	fetch 1,mem_mouse_multi_led_type
+	beq MULTI_LED_BLINK,p_mouse_multi_led_type_blink
+p_mouse_multi_led_type_on:
+	call p_mouse_multi_led_on
+	fetch 1,mem_mouse_multi_led_on_timer
+	increase 1,pdata
+	store 1,mem_mouse_multi_led_on_timer
+	fetcht 1,mem_mouse_multi_led_on_timer_init
+	isub temp,null
+	call p_mouse_multi_led_off_poweron2s,zero
+	rtn
+
+p_mouse_multi_led_off_poweron2s:
+	jam 0,mem_mouse_multi_led_on_poweron2s_flag
+	branch p_mouse_multi_led_off
+
+p_mouse_discovery_multi_led_blink:
+	jam 5,mem_mouse_multi_led_blink_timer_init	//300ms
+p_mouse_discovery_multi_led_blink1:	
+	jam 0,mem_mouse_multi_led_blink_count_limited
+	jam 1,mem_mouse_multi_led_blink_count//0 will clear mem_mouse_multi_led_blink_enable/mem_mouse_multi_led_type
+p_mouse_multi_led_blink_enable:
+	jam 5,mem_mouse_multi_led_blink_timer
+	jam ON,mem_mouse_multi_led_blink_enable
+	jam MULTI_LED_BLINK,mem_mouse_multi_led_type
+	rtn
+
+p_mouse_multi_led_type_blink:
+	arg mem_mouse_multi_led_blink_timer,regc
+	arg p_mouse_multi_led_type_blink_timeout,regb
+	branch timer_single_step
+p_mouse_multi_led_type_blink_timeout:
+	fetch 1,mem_mouse_multi_led_blink_timer_init
+	store 1,mem_mouse_multi_led_blink_timer
+	fetch 1,mem_mouse_multi_led_blink_count_limited
+	branch p_mouse_multi_led_blink_count_no_limited,blank
+	fetch 1,mem_mouse_multi_led_blink_count
+	branch p_mouse_multi_led_blink_off,blank
 	increase -1,pdata
-	store 1,mem_mouse_device_poweron_timer_count
-	branch p_mouse_device_led_off,blank
-p_mouse_device_led_on:
-	fetch 1,mem_config_device_24g_led_gpio_patch
-	bne ICE_REUSE_GPIO,mouse_device_led_on
-	fetcht 1,mem_config_device_24g_led_gpio_patch
-	call gpio_config_output
-	fetcht 1,mem_config_device_24g_led_gpio_patch
+	store 1,mem_mouse_multi_led_blink_count
+p_mouse_multi_led_blink_count_no_limited:
+	fetch 1,mem_mouse_multi_led_state
+	beq ON,p_mouse_multi_led_off
+p_mouse_multi_led_on:
+	jam ON,mem_mouse_multi_led_state	
+	fetcht 1,mem_mouse_multi_led_gpio
 	branch gpio_out_active
 
-p_mouse_device_led_off:
-	fetch 1,mem_config_device_24g_led_gpio_patch
-	bne ICE_REUSE_GPIO,mouse_device_led_off
-p_mouse_reuse_ice_gpio_config_input:	//ice gpio config led
-	fetcht 1,mem_config_device_24g_led_gpio_patch
-	branch mouse_gpio_config_input_pu
+p_mouse_discovey_led_blink_off:
+//	fetch 1,mem_mouse_multi_led_on_timer
+//	nrtn blank
+//	fetch 1,mem_mouse_multi_led_on_poweron2s_flag
+//	nrtn blank
+p_mouse_multi_led_blink_off:
+	setarg 0
+	store 3,mem_mouse_multi_led_blink_timer
+p_mouse_multi_led_off:
+	fetch 1,mem_mouse_multi_led_blink_count
+	nbranch p_mouse_multi_led_off_wait_blink_over,blank
+	jam 0,mem_mouse_multi_led_blink_enable
+	jam 0,mem_mouse_multi_led_type
+p_mouse_multi_led_off_wait_blink_over:
+	jam 0,mem_mouse_multi_led_on_timer
+	jam OFF,mem_mouse_multi_led_state
+p_mouse_multi_led_gpio_set_high:
+	fetch 1,mem_mouse_multi_led_gpio
+	beq ICE_REUSE_GPIO,p_mouse_multi_led_gpio_config_input
+	fetcht 1,mem_mouse_multi_led_gpio
+	branch gpio_out_inactive
 
-p_mouse_led_config_ouput:
-	fetcht 1,mem_config_low_voltage_alarm_gpio
-	call gpio_config_output
+p_mouse_multi_led_gpio_config_input:
+	fetcht 1,mem_mouse_multi_led_gpio
+	branch mouse_gpio_config_input_pu
 
-	fetcht 1,mem_config_device_24g_led_gpio
-	call gpio_config_output
+p_mouse_mode_bt_device1_multi_led_on:
+p_mouse_mode_24g_device_multi_led_on:
+	jam 1,mem_mouse_multi_led_on_poweron2s_flag
+	jam ON,mem_mouse_multi_led_blink_enable
+	jam MULTI_LED_ON,mem_mouse_multi_led_type
+	jam 0,mem_mouse_multi_led_on_timer
+	rtn
 
-	fetcht 1,mem_config_device_bt1_led_gpio
-	call gpio_config_output
-	
-	fetcht 1,mem_config_device_bt2_led_gpio
-	call gpio_config_output
+p_mouse_dpi_multi_led_blink:
+	jam 2,mem_mouse_multi_led_blink_timer_init	//200ms
+	jam 1,mem_mouse_multi_led_blink_count_limited
+	branch p_mouse_multi_led_blink_enable
 
-	fetcht 1,mem_dpi_led_gpio
-	branch gpio_config_output
 p_mouse_dpi_led_blink_delay_timer:
 	arg mem_mouse_dpi_led_delay_count,regc
 	arg p_mouse_dpi_led_blink_init,regb
 	branch timer_single_step	
 	
-p_mouse_dpi_led_blink_init:	//result:    level3: 2  3  1     level4: 3  4  1  2
-	fetch 1,mem_config_sensor_type
-	beq P3212,mouse_dpi_led_blink_init		//result:    level3: 1  2  3     level4: 2  3  4  1
-	beq KA8G2,mouse_dpi_led_blink_init	//result:    level3: 1  2  3     level4: 2  3  4  1
-	fetch 1,mem_dpi_led_gpio
-	store 1,mem_mouse_struct_led_gpio
-	fetch 2,mem_mouse_dpi_led_blink_time
-	store 2,mem_mouse_on_time
-	store 2,mem_mouse_off_time
-	arg 0,rega
-	fetcht 1,mem_mouse_dpi
-	increase 2,temp	// 2 3 4 (5)
-	sub temp,3,null
-	call p_mouse_dpi_led_blink_init_level_4,positive
-	ncall p_mouse_dpi_led_blink_count_clean,positive
-	branch mouse_dpi_led_blink_init_end
-
-p_mouse_dpi_led_blink_init_level_4:
+p_mouse_dpi_led_blink_init:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	rtnbit0 MOUSE_ENABLE_DPI_LEVEL_4
-	increase 1,temp  	// 2-->3   3-->4
-	rtn
+	bbit1 MOUSE_ENABLE_DPI_LEVEL_4,p_mouse_dpi_led_blink_four_level
+p_mouse_dpi_led_blink_three_level:	
+	fetch 1,mem_mouse_dpi
+	beq 0,p_mouse_dpi_led_blink_twice
+	beq 1,p_mouse_dpi_led_blink_thrice
+	branch p_mouse_dpi_led_blink_once
+p_mouse_dpi_led_blink_four_level:
+	fetch 1,mem_mouse_dpi
+	beq 0,p_mouse_dpi_led_blink_thrice
+	beq 1,p_mouse_dpi_led_blink_quartic
+	beq 2,p_mouse_dpi_led_blink_once
+	branch p_mouse_dpi_led_blink_twice
+
+p_mouse_dpi_led_blink_once:
+	jam 1,mem_mouse_multi_led_blink_count
+	branch p_mouse_dpi_multi_led_blink
+p_mouse_dpi_led_blink_twice:
+	jam 3,mem_mouse_multi_led_blink_count
+	branch p_mouse_dpi_multi_led_blink
+p_mouse_dpi_led_blink_thrice:
+	jam 5,mem_mouse_multi_led_blink_count
+	branch p_mouse_dpi_multi_led_blink
+p_mouse_dpi_led_blink_quartic:	
+	jam 7,mem_mouse_multi_led_blink_count
+	branch p_mouse_dpi_multi_led_blink
 
-p_mouse_dpi_led_blink_count_clean:
-	increase -3,temp		// 4-->1  5-->2
-	rtn
 /////////////////////////////////////////////////////////////////////////////////////////////////
 
 p_mouse_commbination_key_process:
@@ -1072,13 +1091,21 @@
 	fetch 1,mem_adc_power_flag
 	bbit1 2,mouse_adc_button_press
 	bbit1 1,mouse_power_down
-	bbit0 0,mouse_adc_no_low_voltage
+	bbit0 0,p_mouse_adc_no_low_voltage
 	jam 1,mem_mouse_adc_last_low_voltage_flag
 	branch mouse_adc_low_voltage
 p_mouse_adc_gpio_connect_gnd:
 	fetcht 1,mem_adc_channel_gpio
 	call mouse_gpio_config_input_pd
 
+p_mouse_adc_no_low_voltage:
+	arg MOUSE_LOW_VOLTAGE_FLAG,queue
+	call mouse_disable_function_flag
+	fetch 1,mem_mouse_adc_last_low_voltage_flag
+	rtn blank
+	jam 0,mem_mouse_adc_last_low_voltage_flag
+	branch p_mouse_multi_led_off
+
 p_mouse_low_voltage_led_timer:
 	fetch 2,mem_mouse_discovery_timer
 	nrtn blank
@@ -1086,8 +1113,6 @@
 	nrtn blank
 	fetch 2,mem_24g_reconn_timeout
 	nrtn blank
-	fetch 1,mem_mouse_device_poweron_timer_count
-	nrtn blank
 	call mouse_check_dpi_blink
 	rtn user
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
@@ -1098,9 +1123,13 @@
 	increase 1,pdata
 	store 1,mem_adc_low_volatage_led_timer_count
 	sub pdata,8,null
-	ncall mouse_adc_low_volatage_led_timer_count_clean,positive
-	beq 3,mouse_low_voltage_led_on
-	beq 5,mouse_low_voltage_led_off
-	beq 7,mouse_low_voltage_led_on
+	ncall p_mouse_adc_low_volatage_led_timer_count_clean,positive
+	beq 3,p_mouse_multi_led_on
+	beq 5,p_mouse_multi_led_off
+	beq 7,p_mouse_multi_led_on
 	rtn
 
+p_mouse_adc_low_volatage_led_timer_count_clean:
+	jam 1,mem_adc_low_volatage_led_timer_count
+	branch p_mouse_multi_led_off
+
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/sched/mouse.dat	(revision 646)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/sched/mouse.dat	(working copy)
@@ -114,7 +114,6 @@
 mem_whee_a_data_gpio:05
 mem_whee_b_data_gpio:04
 mem_config_device_24g_led_gpio:ff
-mem_config_device_24g_led_gpio_patch:03
 mem_config_device_bt1_led_gpio:ff
 mem_select_sensor_angle_gpio:08
 
@@ -141,6 +140,10 @@
 mem_sensor_angle_connect_vin:02	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 
 
+mem_mouse_multi_led_gpio:03
+mem_mouse_multi_led_on_timer_init:14
+mem_mouse_multi_led_blink_timer_init:05
+
 mem_usb_offline_check_gpio:ff
 
 
@@ -315,10 +318,10 @@
 3f ##mem_3212_dpi_2	2400
 15##mem_3212_dpi_3   	800
 
-06##mem_ka8g2_dpi_0	1200
-0c##mem_ka8g2_dpi_1	2400
-10##mem_ka8g2_dpi_2	3000
-04##mem_ka8g2_dpi_3	800
+14##mem_ka8g2_dpi_0	1200
+1b##mem_ka8g2_dpi_1	1600
+11##mem_ka8g2_dpi_2	1000
+0e##mem_ka8g2_dpi_3	800
 
 mem_sensor_3212_init:
 09 5a
