Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/format/app_mouse.format	(revision 519)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/format/app_mouse.format	(working copy)
@@ -328,6 +328,12 @@
 1 mem_mouse_logo_led_gpio
 1 mem_mouse_logo_led_on_check_count
 2 mem_mouse_logo_led_on_timer
+0 mem_sensor_s201_dpi
+1 mem_sensor_s201_dpi_0
+1 mem_sensor_s201_dpi_1
+1 mem_sensor_s201_dpi_2
+1 mem_sensor_s201_dpi_3
+1 mem_sensor_s201_dpi_4
 )
 
 
@@ -442,7 +448,7 @@
 0x01 MOUSE_DPI_LEVEL2
 0x02 MOUSE_DPI_LEVEL3
 0x03 MOUSE_DPI_LEVEL4
-
+0x04 MOUSE_DPI_LEVEL5
 
 //mouse sensor angle
 0x00 MOUSE_6CLK_ANGLE
@@ -505,7 +511,7 @@
 0X09 KA8_UL
 0X0a KA8_HD
 0X0b KA8G2
-
+0X0c S201X
 
 //SENSOR REG
 0x00 PAN_REG_PID_L
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/eeprom.dat	(revision 519)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/eeprom.dat	(working copy)
@@ -2,60 +2,68 @@
 02
 aa
 55
-6a
-04
+8a
+05
 c2
 84
 00
-0e
+10
 c0
 00
 00
-10
+12
 c0
 45
 01
-14
+5c
 c0
 45
 80
-66
+68
 c0
 4f
 80
-64
+66
 c0
 57
 00
-14
+16
 c0
 61
 80
-28
+2a
 c0
 64
 80
-79
+7b
 c0
 65
 00
-89
+8b
 c0
 67
 00
-b9
+bb
+c0
+67
+80
+ca
 c0
 68
 00
-d3
+e8
+c0
+69
+81
+47
 c0
 6b
 00
-9f
+a1
 c0
 6c
-80
-e4
+81
+19
 20
 20
 13
@@ -63,7 +71,7 @@
 c0
 10
 81
-12
+5a
 20
 20
 13
@@ -91,15 +99,15 @@
 20
 40
 00
-1c
+1e
 20
 40
 00
-46
+48
 20
 40
 00
-24
+26
 20
 40
 41
@@ -171,7 +179,7 @@
 c0
 00
 00
-2d
+2f
 20
 40
 3d
@@ -207,7 +215,7 @@
 20
 40
 00
-41
+43
 1f
 e1
 7e
@@ -259,7 +267,7 @@
 c2
 00
 00
-3c
+3e
 20
 60
 00
@@ -307,7 +315,7 @@
 20
 40
 00
-50
+52
 68
 48
 c9
@@ -319,7 +327,7 @@
 20
 40
 00
-60
+62
 20
 20
 3b
@@ -459,7 +467,7 @@
 c0
 84
 00
-73
+75
 70
 8a
 08
@@ -483,7 +491,7 @@
 20
 40
 01
-17
+5f
 20
 20
 12
@@ -507,7 +515,7 @@
 c0
 7f
 80
-82
+84
 68
 48
 c9
@@ -546,8 +554,8 @@
 93
 20
 40
-00
-f6
+01
+2b
 20
 20
 3e
@@ -647,11 +655,11 @@
 c0
 1d
 00
-a3
+a5
 c0
 1e
 00
-b1
+b3
 20
 20
 43
@@ -671,7 +679,7 @@
 c0
 01
 00
-aa
+ac
 c0
 02
 48
@@ -691,7 +699,7 @@
 c2
 97
 80
-ae
+b0
 c2
 98
 48
@@ -703,7 +711,7 @@
 20
 40
 00
-38
+3a
 20
 34
 48
@@ -727,7 +735,7 @@
 20
 22
 80
-b7
+b9
 67
 e2
 48
@@ -791,7 +799,7 @@
 24
 34
 00
-c8
+dd
 20
 40
 47
@@ -799,13 +807,89 @@
 20
 40
 00
-cb
+e0
 20
 20
 45
 44
 20
 40
+40
+72
+20
+74
+00
+00
+6f
+e0
+c9
+27
+c0
+06
+00
+d4
+6f
+e0
+c9
+92
+1f
+e0
+fe
+01
+1f
+e1
+7e
+03
+67
+e0
+c9
+92
+20
+40
+40
+95
+20
+20
+45
+ee
+6f
+e0
+c9
+92
+1f
+e0
+fe
+01
+1f
+e6
+7c
+05
+20
+42
+80
+db
+67
+e0
+c9
+92
+20
+40
+40
+95
+20
+20
+45
+ee
+58
+00
+00
+00
+20
+60
+00
+00
+20
+40
 47
 28
 70
@@ -848,14 +932,30 @@
 60
 00
 00
-20
-40
-40
+6f
+e0
+c9
+27
+1f
+e6
+7c
+0c
+24
+42
+c0
 8f
 20
 40
+01
+0b
+6f
+e0
+c9
+27
+c0
+06
 00
-d6
+ef
 20
 20
 40
@@ -863,65 +963,177 @@
 6f
 e0
 c9
-23
-c1
-7f
-80
-00
-6f
-e1
-4a
-c2
-24
-7a
+92
+c0
 00
 00
-6f
-e1
-48
-83
-24
-7a
+f5
+c0
 00
+80
+f8
+c0
+01
 00
+fb
+c0
+01
+80
+fe
+c0
+02
+01
+01
 6f
-e1
-48
-87
-24
-7a
-00
+e0
+cb
+e7
+1f
+e2
+22
 00
+20
+20
+01
+03
 6f
 e0
 cb
-a7
-24
-7a
-00
+e8
+1f
+e2
+22
 00
+20
+20
+01
+03
 6f
 e0
 cb
-c1
-20
-3a
+e9
+1f
+e2
+22
 00
-fd
-67
+20
+20
+01
+03
+6f
 e0
 cb
-a8
-20
-60
-00
+ea
+1f
+e2
+22
 00
 20
-40
-3e
-9b
 20
-40
+01
+03
+6f
+e0
+cb
+eb
+1f
+e2
+22
+00
+58
+00
+c3
+09
+20
+40
+5b
+0c
+1a
+22
+7e
+00
+1f
+ed
+7e
+00
+1f
+e0
+fe
+23
+20
+40
+5b
+0c
+58
+00
+00
+09
+20
+20
+5b
+0c
+6f
+e0
+c9
+23
+c1
+7f
+80
+00
+6f
+e1
+4a
+c2
+24
+7a
+00
+00
+6f
+e1
+48
+83
+24
+7a
+00
+00
+6f
+e1
+48
+87
+24
+7a
+00
+00
+6f
+e0
+cb
+a7
+24
+7a
+00
+00
+6f
+e0
+cb
+c1
+20
+3a
+01
+32
+67
+e0
+cb
+a8
+20
+60
+00
+00
+20
+40
+3e
+9b
+20
+40
 49
 56
 20
@@ -942,12 +1154,12 @@
 be
 20
 40
-00
-fa
+01
+2f
 20
 40
-00
-ed
+01
+22
 20
 20
 44
@@ -982,8 +1194,8 @@
 e5
 da
 40
-00
-f6
+01
+2b
 20
 20
 31
@@ -1010,8 +1222,8 @@
 a8
 da
 40
-00
-fd
+01
+32
 20
 20
 31
@@ -1067,11 +1279,11 @@
 20
 41
 01
-0c
+41
 24
 41
 01
-10
+45
 20
 20
 48
@@ -1100,6 +1312,82 @@
 60
 00
 00
+20
+40
+3f
+65
+20
+75
+80
+00
+20
+40
+42
+36
+20
+40
+41
+b5
+c0
+18
+01
+51
+c0
+18
+c2
+17
+c0
+2c
+42
+20
+20
+40
+41
+b2
+20
+00
+1a
+f4
+20
+20
+01
+4a
+6f
+e0
+c9
+c2
+c0
+68
+81
+54
+20
+20
+41
+bd
+58
+00
+00
+49
+20
+40
+5b
+0d
+c0
+50
+81
+58
+20
+20
+41
+da
+70
+49
+27
+0c
+20
+60
+00
+00
 70
 44
 84
@@ -1115,7 +1403,7 @@
 c0
 4f
 81
-17
+5f
 20
 20
 12
@@ -1132,8 +1420,8 @@
 20
 12
 2a
-b3
-99
+1e
+93
 aa
 55
 40
@@ -1165,8 +1453,8 @@
 00
 00
 08
-46
-41
+c6
+49
 02
 00
 00
@@ -1905,6 +2193,17 @@
 04
 aa
 55
+05
+00
+e7
+4b
+8a
+8b
+83
+84
+88
+aa
+55
 a2
 00
 df
@@ -2039,563 +2338,264 @@
 42
 28
 28
-41
-23
-49
-39
-4a
-b0
-4b
-a0
-4c
-90
-4d
-70
-09
-00
-ff
-ff
-09
-5a
-06
-02
-09
-69
-0d
-48
-0e
-9f
-0f
-ba
-09
-00
-ff
-ff
-aa
-55
-08
-00
-a3
-4a
-09
-5a
-0b
-f3
-09
-00
-ff
-ff
-aa
-55
-02
-00
-8d
-44
-2d
-49
-aa
-55
-01
-00
-8c
-44
-01
-aa
-55
-01
-00
-65
-48
-01
-aa
-55
-01
-00
-64
-48
-01
-aa
-55
-01
-00
-36
-48
-01
-aa
-55
-01
-00
-a8
-48
-06
-aa
-55
-02
-00
-38
-48
-c0
-12
-aa
-55
-03
-00
-54
-48
-19
-19
-1c
-aa
-55
-10
-00
-40
-48
-00
-13
-2c
-42
-06
-15
-36
-48
-0f
-1a
-3a
-4c
-11
-23
-31
-4d
-aa
-55
-01
-00
-5b
-48
-00
-aa
-55
-05
-00
-77
-48
-20
-15
-10
-05
-4e
-aa
-55
-05
-00
-8c
-48
-01
-0f
-0f
-0f
-0f
-aa
-55
-06
-00
-ad
-48
-0c
-f8
-00
-00
-77
-01
-aa
-55
-03
-00
-5c
-48
-00
-48
-60
-aa
-55
-01
-00
-7d
-48
-07
-aa
-55
-02
-00
-99
-48
-b5
-4a
-aa
-55
-01
-00
-ca
-48
-32
-aa
-55
-02
-00
-c2
-48
-14
-00
-aa
-55
-02
-00
-c0
-48
-50
-00
-aa
-55
-03
-00
-b8
-48
-00
-a6
-0e
-aa
-55
-03
-00
-b8
-49
-00
-50
-00
-aa
-55
-02
-00
-79
-44
-80
-1f
-aa
-55
-01
-00
-83
-44
-80
-aa
-55
-01
-00
-e8
-41
-01
-3d
-33
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+41
+23
+49
+39
+4a
+b0
+4b
+a0
+4c
+90
+4d
+70
+09
+00
 ff
 ff
+09
+5a
+06
+02
+09
+69
+0d
+48
+0e
+9f
+0f
+ba
+09
+00
 ff
 ff
+aa
+55
+08
+00
+a3
+4a
+09
+5a
+0b
+f3
+09
+00
 ff
 ff
+aa
+55
+02
+00
+8d
+44
+2d
+49
+aa
+55
+01
+00
+8c
+44
+01
+aa
+55
+01
+00
+65
+48
+01
+aa
+55
+01
+00
+64
+48
+01
+aa
+55
+01
+00
+36
+48
+01
+aa
+55
+01
+00
+a8
+48
+06
+aa
+55
+02
+00
+38
+48
+c0
+12
+aa
+55
+03
+00
+54
+48
+19
+19
+1c
+aa
+55
+10
+00
+40
+48
+00
+13
+2c
+42
+06
+15
+36
+48
+0f
+1a
+3a
+4c
+11
+23
+31
+4d
+aa
+55
+01
+00
+5b
+48
+00
+aa
+55
+05
+00
+77
+48
+20
+15
+10
+05
+4e
+aa
+55
+05
+00
+8c
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+06
+00
+ad
+48
+0c
+f8
+00
+00
+77
+01
+aa
+55
+03
+00
+5c
+48
+00
+48
+60
+aa
+55
+01
+00
+7d
+48
+07
+aa
+55
+02
+00
+99
+48
+b5
+4a
+aa
+55
+01
+00
+ca
+48
+32
+aa
+55
+02
+00
+c2
+48
+14
+00
+aa
+55
+02
+00
+c0
+48
+50
+00
+aa
+55
+03
+00
+b8
+48
+00
+a6
+0e
+aa
+55
+03
+00
+b8
+49
+00
+50
+00
+aa
+55
+02
+00
+79
+44
+80
+1f
+aa
+55
+01
+00
+83
+44
+80
+aa
+55
+01
+00
+e8
+41
+01
+b4
+b0
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-90
-12
+07
+45
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/memmap.format	(revision 519)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/memmap.format	(working copy)
@@ -2207,6 +2207,12 @@
 0x4be3 mem_mouse_logo_led_gpio
 0x4be4 mem_mouse_logo_led_on_check_count
 0x4be5 mem_mouse_logo_led_on_timer
+0x4be7 mem_sensor_s201_dpi
+0x4be7 mem_sensor_s201_dpi_0
+0x4be8 mem_sensor_s201_dpi_1
+0x4be9 mem_sensor_s201_dpi_2
+0x4bea mem_sensor_s201_dpi_3
+0x4beb mem_sensor_s201_dpi_4
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/program.lis	(revision 519)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/program.lis	(working copy)
@@ -1,375 +1,481 @@
               include "bt_format "
               org 0x0000
-0000 c284000e bbit1 8 ,pf_patch_ext 
-0001 c0000010 beq patch00_0 ,p_soft_reset 
-0002 c0450114 beq patch11_2 ,p_txon 
-0003 c0458066 beq patch11_3 ,p_initialize_radio_cont 
-0004 c04f8064 beq patch13_7 ,p_init_param 
-0005 c0570014 beq patch15_6 ,p_app_init 
-0006 c0618028 beq patch18_3 ,p_mouse_start_work 
-0007 c0648079 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0008 c0650089 beq patch19_2 ,p_mouse_lpm_before_common 
-0009 c06700b9 beq patch19_6 ,p_mouse_motion 
-000a c06800d3 beq patch1a_0 ,p_mouse_seting_dpi 
-000b c06b009f beq patch1a_6 ,p_mouse_priority_bb_event 
-000c c06c80e4 beq patch1b_1 ,p_mouse_bb_event_timer 
-000d 2020137c branch loop 
+0000 c2840010 bbit1 8 ,pf_patch_ext 
+0001 c0000012 beq patch00_0 ,p_soft_reset 
+0002 c045015c beq patch11_2 ,p_txon 
+0003 c0458068 beq patch11_3 ,p_initialize_radio_cont 
+0004 c04f8066 beq patch13_7 ,p_init_param 
+0005 c0570016 beq patch15_6 ,p_app_init 
+0006 c061802a beq patch18_3 ,p_mouse_start_work 
+0007 c064807b beq patch19_1 ,p_mouse_setgpio_hibernate 
+0008 c065008b beq patch19_2 ,p_mouse_lpm_before_common 
+0009 c06700bb beq patch19_6 ,p_mouse_motion 
+000a c06780ca beq patch19_7 ,p_mouse_dpi_process 
+000b c06800e8 beq patch1a_0 ,p_mouse_seting_dpi 
+000c c0698147 beq patch1a_3 ,p_mouse_init_sunt 
+000d c06b00a1 beq patch1a_6 ,p_mouse_priority_bb_event 
+000e c06c8119 beq patch1b_1 ,p_mouse_bb_event_timer 
+000f 2020137c branch loop 
 
 pf_patch_ext:
-000e c0108112 beq patch24_1 ,p_spid_init 
-000f 2020137c branch loop 
+0010 c010815a beq patch24_1 ,p_spid_init 
+0011 2020137c branch loop 
 
 p_soft_reset:
-0010 20800000 clear_stack 
-0011 204030f3 call app_param_init 
-0012 20403bfd call mouse_xtal_init 
-0013 20200804 branch soft_reset + 3 
+0012 20800000 clear_stack 
+0013 204030f3 call app_param_init 
+0014 20403bfd call mouse_xtal_init 
+0015 20200804 branch soft_reset + 3 
 
 p_app_init:
 
 p_mouse_init:
-0014 20406df3 call enable_authrom 
-0015 2040001c call p_mouse_wheel_set_wakeup 
-0016 20400046 call p_mouse_setting_config 
-0017 20400024 call p_lpm_write_ice_disable 
-0018 204041a7 call mouse_init_sunt 
-0019 20758000 rtn wake 
-001a 2040408e call mouse_dpi_config 
-001b 20203bc5 branch mouse_init + 4 
+0016 20406df3 call enable_authrom 
+0017 2040001e call p_mouse_wheel_set_wakeup 
+0018 20400048 call p_mouse_setting_config 
+0019 20400026 call p_lpm_write_ice_disable 
+001a 204041a7 call mouse_init_sunt 
+001b 20758000 rtn wake 
+001c 2040408e call mouse_dpi_config 
+001d 20203bc5 branch mouse_init + 4 
 
 p_mouse_wheel_set_wakeup:
-001c 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-001d 207a0000 rtn blank 
-001e 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-001f d8400040 arg gpcfg_pullup ,temp 
-0020 20406093 call gpio_config_function_int 
-0021 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
-0022 d8400040 arg gpcfg_pullup ,temp 
-0023 20206093 branch gpio_config_function_int 
+001e 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+001f 207a0000 rtn blank 
+0020 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
+0021 d8400040 arg gpcfg_pullup ,temp 
+0022 20406093 call gpio_config_function_int 
+0023 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+0024 d8400040 arg gpcfg_pullup ,temp 
+0025 20206093 branch gpio_config_function_int 
 
 p_lpm_write_ice_disable:
-0024 6ff10120 fetch 2 ,core_ucode_flag 
-0025 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
-0026 67f2004c store 4 ,core_lpm_reg 
-0027 20205caf branch lpm_write2_ctrl_option 
+0026 6ff10120 fetch 2 ,core_ucode_flag 
+0027 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+0028 67f2004c store 4 ,core_lpm_reg 
+0029 20205caf branch lpm_write2_ctrl_option 
 
 p_mouse_start_work:
-0028 6fe0c938 fetch 1 ,mem_device_flag 
-0029 c000002d beq mode_24g_device ,p_mouse_24g_start_mode 
-002a 20403d65 call mouse_wakeup_from_power_check 
-002b 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
-002c 20203d59 branch mouse_start_reconnect_device 
+002a 6fe0c938 fetch 1 ,mem_device_flag 
+002b c000002f beq mode_24g_device ,p_mouse_24g_start_mode 
+002c 20403d65 call mouse_wakeup_from_power_check 
+002d 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
+002e 20203d59 branch mouse_start_reconnect_device 
 
 p_mouse_24g_start_mode:
-002d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-002e c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
 002f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0030 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-0031 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-0032 20400041 call p_mouse_key_check_once 
-0033 1fe17e07 and pdata ,0x07 ,pdata 
-0034 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
-0035 98467c00 isub temp ,null 
-0036 2022c827 branch mouse_24g_start_pair_mode ,zero 
-0037 2020480c branch mouse_24g_reconn_general_dongle 
+0030 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+0031 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0032 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+0033 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+0034 20400043 call p_mouse_key_check_once 
+0035 1fe17e07 and pdata ,0x07 ,pdata 
+0036 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0037 98467c00 isub temp ,null 
+0038 2022c827 branch mouse_24g_start_pair_mode ,zero 
+0039 2020480c branch mouse_24g_reconn_general_dongle 
 
 p_g24_factory_check:
-0038 df200002 arg 2 ,loopcnt 
-0039 d8c04993 arg mem_mouse_24g_addr ,contr 
+003a df200002 arg 2 ,loopcnt 
+003b d8c04993 arg mem_mouse_24g_addr ,contr 
 
 p_pdata_0xff_check:
-003a 20407e54 call enable_user 
-003b 5800ffff setarg 0xffff 
+003c 20407e54 call enable_user 
+003d 5800ffff setarg 0xffff 
 
 p_pdata_0xff_check_loop:
-003c e8410006 ifetcht 2 ,contr 
-003d 98467c00 isub temp ,null 
-003e 2442fe56 ncall disable_user ,zero 
-003f c200003c loop p_pdata_0xff_check_loop 
-0040 20600000 rtn 
+003e e8410006 ifetcht 2 ,contr 
+003f 98467c00 isub temp ,null 
+0040 2442fe56 ncall disable_user ,zero 
+0041 c200003e loop p_pdata_0xff_check_loop 
+0042 20600000 rtn 
 
 p_mouse_key_check_once:
-0041 20404121 call mouse_check_key_gpio_once 
-0042 20404115 call mouse_check_key_gpio 
-0043 d8400000 arg 0 ,temp 
-0044 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
-0045 20600000 rtn 
+0043 20404121 call mouse_check_key_gpio_once 
+0044 20404115 call mouse_check_key_gpio 
+0045 d8400000 arg 0 ,temp 
+0046 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
+0047 20600000 rtn 
 
 p_mouse_setting_config:
-0046 20758000 rtn wake 
-0047 20402607 call g24_transmit_init 
-0048 204022ff call g24_chmap_param_init 
-0049 20403f1e call mouse_gpio_init 
-004a 20403d13 call mouse_param_init 
-004b 20400050 call p_mouse_sensor_set_angle 
-004c 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004d 20406050 call gpio_config_input 
-004e 20400060 call p_ice_gpio_set_float 
-004f 20203bf5 branch mouse_setting_config_next 
+0048 20758000 rtn wake 
+0049 20402607 call g24_transmit_init 
+004a 204022ff call g24_chmap_param_init 
+004b 20403f1e call mouse_gpio_init 
+004c 20403d13 call mouse_param_init 
+004d 20400052 call p_mouse_sensor_set_angle 
+004e 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+004f 20406050 call gpio_config_input 
+0050 20400062 call p_ice_gpio_set_float 
+0051 20203bf5 branch mouse_setting_config_next 
 
 p_mouse_sensor_set_angle:
-0050 6fe0c924 fetch 1 ,mem_sensor_angle_default 
-0051 67e0c928 store 1 ,mem_config_sensor_angle 
-0052 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0053 c17f8000 rtneq gpio_disable 
+0052 6fe0c924 fetch 1 ,mem_sensor_angle_default 
+0053 67e0c928 store 1 ,mem_config_sensor_angle 
 0054 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0055 d840003e arg gpcfg_output_low ,temp 
-0056 20406093 call gpio_config_function_int 
-0057 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
-0058 d840003e arg gpcfg_output_low ,temp 
-0059 20406093 call gpio_config_function_int 
-005a 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-005b 20403f56 call mouse_gpio_config_input_pu 
+0055 c17f8000 rtneq gpio_disable 
+0056 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0057 d840003e arg gpcfg_output_low ,temp 
+0058 20406093 call gpio_config_function_int 
+0059 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
+005a d840003e arg gpcfg_output_low ,temp 
+005b 20406093 call gpio_config_function_int 
 005c 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-005d 20406059 call gpio_get_bit 
-005e 2440c2aa ncall mouse_sensor_switch_angle ,true 
-005f 20203f54 branch mouse_gpio_config_input_pd 
+005d 20403f56 call mouse_gpio_config_input_pu 
+005e 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+005f 20406059 call gpio_get_bit 
+0060 2440c2aa ncall mouse_sensor_switch_angle ,true 
+0061 20203f54 branch mouse_gpio_config_input_pd 
 
 p_ice_gpio_set_float:
-0060 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-0061 2040607f call gpio_set_high_impedance 
-0062 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-0063 2020607f branch gpio_set_high_impedance 
+0062 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+0063 2040607f call gpio_set_high_impedance 
+0064 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0065 2020607f branch gpio_set_high_impedance 
 
 p_init_param:
-0064 70008000 jam 0 ,mem_lmo_tid2 
-0065 202013b7 branch init_param_next + 1 
+0066 70008000 jam 0 ,mem_lmo_tid2 
+0067 202013b7 branch init_param_next + 1 
 
 p_initialize_radio_cont:
-0066 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0067 2040126a call initialize_syn_afc_cfg1 
-0068 20401271 call initialize_rf_ldo_cfg1 
-0069 20401277 call initialize_rc_cal 
-006a 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-006b 708a0305 jam 5 ,core_clkpll_cfg0 
-006c 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-006d 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-006e 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-006f 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-0070 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-0071 c0840073 bne xtal_16m ,p_initialize_radio_cont_next 
-0072 708a0834 jam 0x34 ,core_clkpll_cfg5 
+0068 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0069 2040126a call initialize_syn_afc_cfg1 
+006a 20401271 call initialize_rf_ldo_cfg1 
+006b 20401277 call initialize_rc_cal 
+006c 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+006d 708a0305 jam 5 ,core_clkpll_cfg0 
+006e 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+006f 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0070 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0071 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0072 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+0073 c0840075 bne xtal_16m ,p_initialize_radio_cont_next 
+0074 708a0834 jam 0x34 ,core_clkpll_cfg5 
 
 p_initialize_radio_cont_next:
-0073 708a01ff jam 0xff ,core_clkpll_ctrl1 
-0074 20000064 nop 100 
-0075 708a020e jam 0x0e ,core_clkpll_ctrl2 
-0076 708a0003 jam 0x03 ,core_clkpll_ctrl0 
-0077 20400117 call p_set_tx_power_pair 
-0078 20201265 branch initialize_radio_cont_next2 
+0075 708a01ff jam 0xff ,core_clkpll_ctrl1 
+0076 20000064 nop 100 
+0077 708a020e jam 0x0e ,core_clkpll_ctrl2 
+0078 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+0079 2040015f call p_set_tx_power_pair 
+007a 20201265 branch initialize_radio_cont_next2 
 
 p_mouse_setgpio_hibernate:
-0079 204042e9 call mouse_set_sdio_high 
-007a 20407fdc call clear_wake 
-007b 20404015 call mouse_before_hibernate_wheel_gpio_set 
-007c 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-007d c07f8082 beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
-007e 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-007f 20406069 call gpio_out_active 
+007b 204042e9 call mouse_set_sdio_high 
+007c 20407fdc call clear_wake 
+007d 20404015 call mouse_before_hibernate_wheel_gpio_set 
+007e 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+007f c07f8084 beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
 0080 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0081 20406042 call gpio_clr_wake 
+0081 20406069 call gpio_out_active 
+0082 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0083 20406042 call gpio_clr_wake 
 
 p_mouse_setgpio_hibernate_skip_public_gpio:
-0082 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-0083 20403f56 call mouse_gpio_config_input_pu 
-0084 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0085 d840003f arg gpcfg_output_high ,temp 
-0086 20406093 call gpio_config_function_int 
-0087 204000f6 call p_mouse_logo_led_on_timeout 
-0088 20203e36 branch mouse_setgpio_hibernate + 3 
+0084 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0085 20403f56 call mouse_gpio_config_input_pu 
+0086 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0087 d840003f arg gpcfg_output_high ,temp 
+0088 20406093 call gpio_config_function_int 
+0089 2040012b call p_mouse_logo_led_on_timeout 
+008a 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-0089 20403f88 call mouse_wheel_check 
-008a 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-008b d840003f arg gpcfg_output_high ,temp 
-008c 20406093 call gpio_config_function_int 
-008d 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
-008e 793ffe03 set0 3 ,pdata 
-008f 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
-0090 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0091 20406042 call gpio_clr_wake 
-0092 20405b04 call twspi_disable 
-0093 6848c918 fetcht 1 ,mem_lbutton_gpio 
-0094 20406036 call gpio_set_wake 
-0095 6848c919 fetcht 1 ,mem_rbutton_gpio 
+008b 20403f88 call mouse_wheel_check 
+008c 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+008d d840003f arg gpcfg_output_high ,temp 
+008e 20406093 call gpio_config_function_int 
+008f 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
+0090 793ffe03 set0 3 ,pdata 
+0091 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
+0092 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0093 20406042 call gpio_clr_wake 
+0094 20405b04 call twspi_disable 
+0095 6848c918 fetcht 1 ,mem_lbutton_gpio 
 0096 20406036 call gpio_set_wake 
-0097 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0097 6848c919 fetcht 1 ,mem_rbutton_gpio 
 0098 20406036 call gpio_set_wake 
-0099 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0099 6848c91a fetcht 1 ,mem_mbutton_gpio 
 009a 20406036 call gpio_set_wake 
-009b 6848c90e fetcht 1 ,mem_fw_button_gpio 
+009b 6848c90d fetcht 1 ,mem_bk_button_gpio 
 009c 20406036 call gpio_set_wake 
-009d 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-009e 20206036 branch gpio_set_wake 
+009d 6848c90e fetcht 1 ,mem_fw_button_gpio 
+009e 20406036 call gpio_set_wake 
+009f 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+00a0 20206036 branch gpio_set_wake 
 
 p_mouse_priority_bb_event:
-009f 1a627e00 copy regc ,pdata 
-00a0 c01d00a3 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-00a1 c01e00b1 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-00a2 20204336 branch mouse_priority_bb_event + 2 
+00a1 1a627e00 copy regc ,pdata 
+00a2 c01d00a5 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+00a3 c01e00b3 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+00a4 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_fail:
-00a3 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-00a4 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
+00a5 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+00a6 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
 
 p_mouse_24g_attempt_fail_next:
-00a5 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-00a6 c00100aa beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
-00a7 c0024844 beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
-00a8 c001c849 beq receiver_and_3_0_addr ,mouse_reconn_dongle_attempt_fail 
-00a9 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
+00a7 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+00a8 c00100ac beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+00a9 c0024844 beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
+00aa c001c849 beq receiver_and_3_0_addr ,mouse_reconn_dongle_attempt_fail 
+00ab 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_fast_conn_attempt_fail:
-00aa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00ab c29780ae bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_start_auto_pair 
-00ac c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
-00ad 20204806 branch mouse_24g_reconn_dongle_start 
+00ac 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00ad c29780b0 bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_start_auto_pair 
+00ae c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+00af 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_start_auto_pair:
-00ae 20400038 call p_g24_factory_check 
-00af 20344812 branch mouse_24g_start_auto_pair_next ,user 
-00b0 20204806 branch mouse_24g_reconn_dongle_start 
+00b0 2040003a call p_g24_factory_check 
+00b1 20344812 branch mouse_24g_start_auto_pair_next ,user 
+00b2 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_attempt_success:
-00b1 6fe2483c fetch 4 ,mem_24g_addr 
-00b2 684a488d fetcht 4 ,mem_24g_fast_conn_addr 
-00b3 98467c00 isub temp ,null 
-00b4 202280b7 branch p_mouse_24g_attempt_success_skip_store_addr ,zero 
-00b5 67e24891 store 4 ,mem_24g_receiver_addr 
-00b6 67e24993 store 4 ,mem_mouse_24g_addr 
+00b3 6fe2483c fetch 4 ,mem_24g_addr 
+00b4 684a488d fetcht 4 ,mem_24g_fast_conn_addr 
+00b5 98467c00 isub temp ,null 
+00b6 202280b9 branch p_mouse_24g_attempt_success_skip_store_addr ,zero 
+00b7 67e24891 store 4 ,mem_24g_receiver_addr 
+00b8 67e24993 store 4 ,mem_mouse_24g_addr 
 
 p_mouse_24g_attempt_success_skip_store_addr:
-00b7 204048c6 call mouse_device_poweron_timer_init 
-00b8 2020484e branch mouse_24g_attempt_success 
+00b9 204048c6 call mouse_device_poweron_timer_init 
+00ba 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_motion:
-00b9 78547c00 disable user 
-00ba 58000000 setarg 0 
-00bb 67e348d1 store 6 ,mem_mouse_x 
-00bc 20404240 call mouse_check_sensor_data 
-00bd 2040408e call mouse_dpi_config 
-00be 20403f7e call mouse_zwheel 
-00bf 20403f83 call mouse_t_zwheel 
-00c0 204040dc call mouse_key 
-00c1 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00c2 1fe17e1f and_into 0x1f ,pdata 
-00c3 67e0c8d0 store 1 ,mem_mouse_key 
-00c4 243400c8 nbranch p_mouse_motion_nodata ,user 
-00c5 2040471a call mouse_drawing_optima 
-00c6 204000cb call p_mouse_logo_led_on_check 
-00c7 20204544 branch mouse_no_data_timer_init 
+00bb 78547c00 disable user 
+00bc 58000000 setarg 0 
+00bd 67e348d1 store 6 ,mem_mouse_x 
+00be 20404240 call mouse_check_sensor_data 
+00bf 2040408e call mouse_dpi_config 
+00c0 20403f7e call mouse_zwheel 
+00c1 20403f83 call mouse_t_zwheel 
+00c2 204040dc call mouse_key 
+00c3 6fe0c8d0 fetch 1 ,mem_mouse_key 
+00c4 1fe17e1f and_into 0x1f ,pdata 
+00c5 67e0c8d0 store 1 ,mem_mouse_key 
+00c6 243400dd nbranch p_mouse_motion_nodata ,user 
+00c7 2040471a call mouse_drawing_optima 
+00c8 204000e0 call p_mouse_logo_led_on_check 
+00c9 20204544 branch mouse_no_data_timer_init 
+
+p_mouse_dpi_process:
+00ca 20404072 call mouse_dpi_ghost_check 
+00cb 20740000 rtn user 
+00cc 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00cd c00600d4 beq s201x ,p_mouse_201x_5level_dpi_process 
+00ce 6fe0c992 fetch 1 ,mem_mouse_dpi 
+00cf 1fe0fe01 increase 1 ,pdata 
+00d0 1fe17e03 and pdata ,0x03 ,pdata 
+00d1 67e0c992 store 1 ,mem_mouse_dpi 
+00d2 20404095 call mouse_seting_dpi 
+00d3 202045ee branch mouse_store_device_info_delay 
+
+p_mouse_201x_5level_dpi_process:
+00d4 6fe0c992 fetch 1 ,mem_mouse_dpi 
+00d5 1fe0fe01 increase 1 ,pdata 
+00d6 1fe67c05 sub pdata ,5 ,null 
+00d7 204280db call p_mouse_dpi_recount ,zero 
+00d8 67e0c992 store 1 ,mem_mouse_dpi 
+00d9 20404095 call mouse_seting_dpi 
+00da 202045ee branch mouse_store_device_info_delay 
+
+p_mouse_dpi_recount:
+00db 58000000 setarg 0 
+00dc 20600000 rtn 
 
 p_mouse_motion_nodata:
-00c8 20404728 call mouse_drawing_optima_init 
-00c9 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
-00ca 20600000 rtn 
+00dd 20404728 call mouse_drawing_optima_init 
+00de 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
+00df 20600000 rtn 
 
 p_mouse_logo_led_on_check:
-00cb 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
-00cc 1fe0fe01 increase 1 ,pdata 
-00cd 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
-00ce 1fe67c08 sub pdata ,low_voltage_led_count ,null 
-00cf 20610000 rtn positive 
+00e0 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
+00e1 1fe0fe01 increase 1 ,pdata 
+00e2 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
+00e3 1fe67c08 sub pdata ,low_voltage_led_count ,null 
+00e4 20610000 rtn positive 
 
 p_mouse_logo_led_on:
-00d0 58000258 setarg 0x0258 
-00d1 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00d2 20600000 rtn 
+00e5 58000258 setarg 0x0258 
+00e6 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00e7 20600000 rtn 
 
 p_mouse_seting_dpi:
-00d3 2040408f call mouse_setting_dpi_4_level 
-00d4 204000d6 call p_mouse_dpi_led_blink_delay 
-00d5 20204098 branch mouse_seting_sensor_type 
+00e8 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00e9 1fe67c0c sub pdata ,s201x ,null 
+00ea 2442c08f ncall mouse_setting_dpi_4_level ,zero 
+00eb 2040010b call p_mouse_dpi_led_blink_delay 
+
+p_mouse_seting_sensor_type:
+00ec 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00ed c00600ef beq s201x ,p_mouse_seting_s201_dpi 
+00ee 20204098 branch mouse_seting_sensor_type 
+
+p_mouse_seting_s201_dpi:
+00ef 6fe0c992 fetch 1 ,mem_mouse_dpi 
+00f0 c00000f5 beq mouse_dpi_level1 ,p_mouse_set_s201_dpi_0 
+00f1 c00080f8 beq mouse_dpi_level2 ,p_mouse_set_s201_dpi_1 
+00f2 c00100fb beq mouse_dpi_level3 ,p_mouse_set_s201_dpi_2 
+00f3 c00180fe beq mouse_dpi_level4 ,p_mouse_set_s201_dpi_3 
+00f4 c0020101 beq mouse_dpi_level5 ,p_mouse_set_s201_dpi_4 
+
+p_mouse_set_s201_dpi_0:
+00f5 6fe0cbe7 fetch 1 ,mem_sensor_s201_dpi_0 
+00f6 1fe22200 copy pdata ,rega 
+00f7 20200103 branch p_mouse_dpi_s201_store 
+
+p_mouse_set_s201_dpi_1:
+00f8 6fe0cbe8 fetch 1 ,mem_sensor_s201_dpi_1 
+00f9 1fe22200 copy pdata ,rega 
+00fa 20200103 branch p_mouse_dpi_s201_store 
+
+p_mouse_set_s201_dpi_2:
+00fb 6fe0cbe9 fetch 1 ,mem_sensor_s201_dpi_2 
+00fc 1fe22200 copy pdata ,rega 
+00fd 20200103 branch p_mouse_dpi_s201_store 
+
+p_mouse_set_s201_dpi_3:
+00fe 6fe0cbea fetch 1 ,mem_sensor_s201_dpi_3 
+00ff 1fe22200 copy pdata ,rega 
+0100 20200103 branch p_mouse_dpi_s201_store 
+
+p_mouse_set_s201_dpi_4:
+0101 6fe0cbeb fetch 1 ,mem_sensor_s201_dpi_4 
+0102 1fe22200 copy pdata ,rega 
+
+p_mouse_dpi_s201_store:
+0103 5800c309 setarg 0xc309 
+0104 20405b0c call twspi_write 
+0105 1a227e00 copy rega ,pdata 
+0106 1fed7e00 lshift8 pdata ,pdata 
+0107 1fe0fe23 add pdata ,0x23 ,pdata 
+0108 20405b0c call twspi_write 
+0109 58000009 setarg 0x0009 
+010a 20205b0c branch twspi_write 
 
 p_mouse_dpi_led_blink_delay:
-00d6 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00d7 c17f8000 rtneq gpio_disable 
-00d8 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00d9 247a0000 nrtn blank 
-00da 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00db 247a0000 nrtn blank 
-00dc 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00dd 247a0000 nrtn blank 
-00de 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00df 247a0000 nrtn blank 
-00e0 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00e1 203a00fd branch p_mouse_dpi_led_blink_init ,blank 
-00e2 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00e3 20600000 rtn 
+010b 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+010c c17f8000 rtneq gpio_disable 
+010d 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+010e 247a0000 nrtn blank 
+010f 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+0110 247a0000 nrtn blank 
+0111 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+0112 247a0000 nrtn blank 
+0113 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0114 247a0000 nrtn blank 
+0115 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+0116 203a0132 branch p_mouse_dpi_led_blink_init ,blank 
+0117 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+0118 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00e4 20403e9b call mouse_adc_read 
-00e5 20404956 call mouse_low_voltage_led_timer 
-00e6 2040232b call g24_pair_timeout_timer 
-00e7 20402556 call g24_reconn_timeout_timer 
-00e8 204047cd call mouse_24g_long_sleep_param_update_timer 
-00e9 204048be call mouse_device_poweron_timer 
-00ea 204000fa call p_mouse_dpi_led_blink_delay_timer 
-00eb 204000ed call p_mouse_logo_led_on_timer 
-00ec 202044bd branch mouse_bb_event_timer + 8 
+0119 20403e9b call mouse_adc_read 
+011a 20404956 call mouse_low_voltage_led_timer 
+011b 2040232b call g24_pair_timeout_timer 
+011c 20402556 call g24_reconn_timeout_timer 
+011d 204047cd call mouse_24g_long_sleep_param_update_timer 
+011e 204048be call mouse_device_poweron_timer 
+011f 2040012f call p_mouse_dpi_led_blink_delay_timer 
+0120 20400122 call p_mouse_logo_led_on_timer 
+0121 202044bd branch mouse_bb_event_timer + 8 
 
 p_mouse_logo_led_on_timer:
-00ed 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
-00ee c17f8000 rtneq gpio_disable 
-00ef 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
-00f0 207a0000 rtn blank 
-00f1 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00f2 20406069 call gpio_out_active 
-00f3 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
-00f4 da4000f6 arg p_mouse_logo_led_on_timeout ,regb 
-00f5 20203191 branch timer_single_step_2b 
+0122 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
+0123 c17f8000 rtneq gpio_disable 
+0124 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
+0125 207a0000 rtn blank 
+0126 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+0127 20406069 call gpio_out_active 
+0128 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
+0129 da40012b arg p_mouse_logo_led_on_timeout ,regb 
+012a 20203191 branch timer_single_step_2b 
 
 p_mouse_logo_led_on_timeout:
-00f6 58000000 setarg 0 
-00f7 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00f8 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00f9 20206065 branch gpio_out_inactive 
+012b 58000000 setarg 0 
+012c 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+012d 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+012e 20206065 branch gpio_out_inactive 
 
 p_mouse_dpi_led_blink_delay_timer:
-00fa da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00fb da4000fd arg p_mouse_dpi_led_blink_init ,regb 
-00fc 2020318a branch timer_single_step 
+012f da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+0130 da400132 arg p_mouse_dpi_led_blink_init ,regb 
+0131 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00fd 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00fe c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00ff c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-0100 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0101 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-0102 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0103 67e14930 store 2 ,mem_mouse_on_time 
-0104 67e14932 store 2 ,mem_mouse_off_time 
-0105 da200000 arg 0 ,rega 
-0106 6848c992 fetcht 1 ,mem_mouse_dpi 
-0107 18408402 increase 2 ,temp 
-0108 18467c03 sub temp ,3 ,null 
-0109 2041010c call p_mouse_dpi_led_blink_init_level_4 ,positive 
-010a 24410110 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-010b 202048ff branch mouse_dpi_led_blink_init_end 
+0132 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0133 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+0134 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0135 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0136 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0137 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0138 67e14930 store 2 ,mem_mouse_on_time 
+0139 67e14932 store 2 ,mem_mouse_off_time 
+013a da200000 arg 0 ,rega 
+013b 6848c992 fetcht 1 ,mem_mouse_dpi 
+013c 18408402 increase 2 ,temp 
+013d 18467c03 sub temp ,3 ,null 
+013e 20410141 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+013f 24410145 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+0140 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-010c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-010d c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-010e 18408401 increase 1 ,temp 
-010f 20600000 rtn 
+0141 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0142 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+0143 18408401 increase 1 ,temp 
+0144 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-0110 184085fd increase -3 ,temp 
-0111 20600000 rtn 
+0145 184085fd increase -3 ,temp 
+0146 20600000 rtn 
+
+p_mouse_init_sunt:
+0147 20403f65 call mouse_sensor_spi_init 
+0148 20758000 rtn wake 
+
+p_mouse_init_sensor_wakeup:
+0149 20404236 call mouse_sensor_poweron 
+
+p_mouse_init_sensor:
+014a 204041b5 call mouse_read_sensor_id 
+014b c0180151 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+014c c018c217 beq p3065_id1 ,mouse_init_p3065 
+014d c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+014e 204041b2 call mouse_twspi_reset 
+014f 20001af4 nop 6900 
+0150 2020014a branch p_mouse_init_sensor 
+
+p_mouse_init_p32xx_id2_judge:
+0151 6fe0c9c2 fetch 1 ,mem_sensor_id2 
+0152 c0688154 beq p3205_tj3t_id2 ,p_mouse_3205_3t_init_param 
+0153 202041bd branch mouse_init_p32xx_id2_judge + 1 
+
+p_mouse_3205_3t_init_param:
+0154 58000049 setarg 0x49 
+0155 20405b0d call twspi_read 
+0156 c0508158 beq 0xa1 ,p_mouse_s201x_init_param 
+0157 202041da branch mouse_3205_3t_init_param 
+
+p_mouse_s201x_init_param:
+0158 7049270c jam s201x ,mem_config_sensor_type 
+0159 20600000 rtn 
 
 p_spid_init:
-0112 70448476 jam 0x76 ,mem_spi_init_clk 
-0113 20205cb6 branch spid_init_common 
+015a 70448476 jam 0x76 ,mem_spi_init_clk 
+015b 20205cb6 branch spid_init_common 
 
 p_txon:
-0114 6fe0c1e8 fetch 1 ,mem_tx_power 
-0115 c04f8117 beq tx_power_pair ,p_set_tx_power_pair 
-0116 2020121f branch txon_next 
+015c 6fe0c1e8 fetch 1 ,mem_tx_power 
+015d c04f815f beq tx_power_pair ,p_set_tx_power_pair 
+015e 2020121f branch txon_next 
 
 p_set_tx_power_pair:
-0117 708a3905 jam 0x05 ,core_tx_pwr_ctrl0 
-0118 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
-0119 2020122a branch set_rf_ldo_cfg89 
+015f 708a3905 jam 0x05 ,core_tx_pwr_ctrl0 
+0160 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
+0161 2020122a branch set_rf_ldo_cfg89 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/patch.prog	(revision 519)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/patch.prog	(working copy)
@@ -9,7 +9,9 @@
 	beq patch19_1,p_mouse_setgpio_hibernate
 	beq patch19_2,p_mouse_lpm_before_common
 	beq patch19_6,p_mouse_motion
+	beq patch19_7,p_mouse_dpi_process	
 	beq patch1a_0,p_mouse_seting_dpi
+	beq patch1a_3,p_mouse_init_sunt
 	beq patch1a_6,p_mouse_priority_bb_event
 	beq patch1b_1,p_mouse_bb_event_timer
 	branch loop
@@ -270,7 +272,30 @@
 	call mouse_drawing_optima
 	call p_mouse_logo_led_on_check
 	branch mouse_no_data_timer_init
+///////////////////dpi led adjust////////////////////////////////////////////////////////////////////
+p_mouse_dpi_process:
+	call mouse_dpi_ghost_check
+	rtn user
+	fetch 1,mem_config_sensor_type
+	beq S201X,p_mouse_201x_5level_dpi_process
+	fetch 1,mem_mouse_dpi
+	increase 1,pdata
+	and pdata,0x03,pdata
+	store 1,mem_mouse_dpi
+	call mouse_seting_dpi
+	branch mouse_store_device_info_delay
 
+p_mouse_201x_5level_dpi_process:
+	fetch 1,mem_mouse_dpi
+	increase 1,pdata
+	sub pdata,5,null
+	call p_mouse_dpi_recount,zero
+	store 1,mem_mouse_dpi
+	call mouse_seting_dpi
+	branch mouse_store_device_info_delay
+p_mouse_dpi_recount:
+	setarg 0
+	rtn
 p_mouse_motion_nodata:	
 	call mouse_drawing_optima_init
 	jam 0,mem_mouse_logo_led_on_check_count
@@ -289,10 +314,54 @@
 
 ///////////////////dpi led adjust////////////////////////////////////////////////////////////////////
 p_mouse_seting_dpi:
-	call mouse_setting_dpi_4_level
+	fetch 1,mem_config_sensor_type
+	sub pdata,S201X,null
+	ncall mouse_setting_dpi_4_level,zero
 	call p_mouse_dpi_led_blink_delay
+//	branch mouse_seting_sensor_type
+p_mouse_seting_sensor_type:
+	fetch 1,mem_config_sensor_type
+	beq S201X,p_mouse_seting_S201_dpi
 	branch mouse_seting_sensor_type
-
+p_mouse_seting_S201_dpi:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,p_mouse_set_S201_dpi_0	//1200
+	beq MOUSE_DPI_LEVEL2,p_mouse_set_S201_dpi_1	//1600
+	beq MOUSE_DPI_LEVEL3,p_mouse_set_S201_dpi_2	//2400
+	beq MOUSE_DPI_LEVEL4,p_mouse_set_S201_dpi_3	//3200
+	beq MOUSE_DPI_LEVEL5,p_mouse_set_S201_dpi_4	//800	
+p_mouse_set_S201_dpi_0:
+	fetch 1,mem_sensor_s201_dpi_0
+	copy pdata,rega
+	branch p_mouse_dpi_S201_store
+	
+p_mouse_set_S201_dpi_1:
+	fetch 1,mem_sensor_s201_dpi_1
+	copy pdata,rega
+	branch p_mouse_dpi_S201_store
+	
+p_mouse_set_S201_dpi_2:	
+	fetch 1,mem_sensor_s201_dpi_2
+	copy pdata,rega
+	branch p_mouse_dpi_s201_store
+
+p_mouse_set_S201_dpi_3:
+	fetch 1,mem_sensor_s201_dpi_3
+	copy pdata,rega
+	branch p_mouse_dpi_s201_store
+
+p_mouse_set_S201_dpi_4:
+	fetch 1,mem_sensor_s201_dpi_4
+	copy pdata,rega
+p_mouse_dpi_s201_store:
+	setarg 0xc309
+	call twspi_write
+	copy rega,pdata
+	lshift8 pdata,pdata
+	add pdata,0x23,pdata
+	call twspi_write
+	setarg 0x0009
+	branch twspi_write
 p_mouse_dpi_led_blink_delay:
 	fetch 1,mem_dpi_led_gpio
 	rtneq GPIO_DISABLE
@@ -369,6 +438,37 @@
 p_mouse_dpi_led_blink_count_clean:
 	increase -3,temp		// 4-->1  5-->2
 	rtn
+//////////////////////////////modify key end///////////////////////////////////////////////
+
+p_mouse_init_sunt:
+	call mouse_sensor_spi_init		
+	rtn wake
+p_mouse_init_sensor_wakeup:	
+	call mouse_sensor_poweron
+p_mouse_init_sensor:
+	call mouse_read_sensor_id
+	beq P32XX_ID1,p_mouse_init_p32xx_id2_judge
+	beq P3065_ID1,mouse_init_p3065
+	beq PKA8G2_ID1,mouse_ka8g2_id2_judge
+	call mouse_twspi_reset
+	nop 6900
+	branch p_mouse_init_sensor
+
+p_mouse_init_p32xx_id2_judge:
+	fetch 1,mem_sensor_id2
+	beq P3205_TJ3T_ID2,p_mouse_3205_3t_init_param
+	branch mouse_init_p32xx_id2_judge+1
+
+p_mouse_3205_3t_init_param:
+	setarg 0x49		// id3
+	call twspi_read
+	beq 0xa1,p_mouse_S201X_init_param
+	branch mouse_3205_3t_init_param
+
+p_mouse_S201X_init_param:
+	jam S201X,mem_config_sensor_type
+	rtn
+	
 /////////////////////////////////////////////////////////////////////////////////////////////////
 
 p_spid_init:
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/sched/mouse.dat	(revision 519)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/sched/mouse.dat	(working copy)
@@ -327,6 +327,13 @@
 10##mem_ka8g2_dpi_2	3000
 04##mem_ka8g2_dpi_3	800
 
+mem_sensor_s201_dpi:
+8a  ##1200
+8b  ##1600
+83  ##2400
+84  ##3200
+88  ##800
+
 mem_sensor_3212_init:
 09 5a
 26 34
