Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_public_RGB/output/eeprom.dat	(revision 4356)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_public_RGB/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-56
+52
 1a
 c2
 84
@@ -83,7 +83,7 @@
 c0
 67
 86
-5d
+5c
 c0
 68
 03
@@ -91,7 +91,7 @@
 c0
 68
 85
-b8
+b7
 c0
 69
 80
@@ -99,7 +99,7 @@
 c0
 6a
 05
-9d
+9c
 c0
 6b
 02
@@ -119,7 +119,7 @@
 c0
 6f
 06
-0a
+09
 c0
 6f
 80
@@ -199,7 +199,7 @@
 c0
 76
 86
-8d
+8c
 20
 20
 13
@@ -1143,7 +1143,7 @@
 20
 40
 05
-af
+ae
 20
 20
 3b
@@ -1407,7 +1407,7 @@
 20
 40
 05
-ec
+eb
 20
 40
 26
@@ -1847,7 +1847,7 @@
 20
 20
 05
-af
+ae
 20
 40
 26
@@ -2075,7 +2075,7 @@
 20
 20
 06
-0f
+0e
 6f
 e0
 c9
@@ -2199,11 +2199,11 @@
 20
 40
 05
-a8
+a7
 20
 40
 05
-af
+ae
 20
 20
 3e
@@ -2251,7 +2251,7 @@
 20
 40
 06
-04
+03
 d8
 40
 00
@@ -2507,7 +2507,7 @@
 20
 40
 06
-04
+03
 20
 20
 3e
@@ -3059,7 +3059,7 @@
 20
 40
 05
-af
+ae
 20
 20
 02
@@ -4311,7 +4311,7 @@
 20
 40
 05
-9d
+9c
 20
 20
 04
@@ -4951,7 +4951,7 @@
 20
 40
 05
-af
+ae
 20
 40
 04
@@ -5559,7 +5559,7 @@
 20
 40
 05
-b6
+b5
 6f
 e0
 c8
@@ -5575,15 +5575,15 @@
 24
 34
 05
-95
+94
 20
 40
 05
-92
+91
 20
 40
 05
-9a
+99
 20
 20
 45
@@ -5632,10 +5632,14 @@
 05
 c2
 8e
+c0
+03
+85
+81
 20
 20
-05
-80
+42
+4c
 20
 40
 42
@@ -5651,7 +5655,7 @@
 c0
 7f
 85
-87
+88
 68
 48
 c9
@@ -5676,38 +5680,30 @@
 98
 42
 66
-58
-00
-00
-02
 20
 40
-5b
-0d
-c3
-03
-85
-8e
-20
+42
+59
+6f
+e0
+c8
+d1
+68
+48
+c8
+d3
+98
+40
+fe
+00
 20
-05
-91
-c2
-81
-85
-91
-c2
-82
-05
-91
+3a
+7e
+56
 20
 60
 00
 00
-20
-20
-42
-59
 70
 4c
 98
@@ -5763,7 +5759,7 @@
 c0
 05
 85
-a4
+a3
 20
 40
 42
@@ -5783,7 +5779,7 @@
 20
 40
 05
-ab
+aa
 da
 60
 4b
@@ -5803,7 +5799,7 @@
 c0
 05
 85
-ab
+aa
 20
 20
 42
@@ -5839,7 +5835,7 @@
 c0
 05
 85
-b4
+b3
 20
 20
 42
@@ -5855,7 +5851,7 @@
 20
 40
 05
-b8
+b7
 20
 20
 40
@@ -5875,27 +5871,27 @@
 20
 40
 05
-c3
+c2
 20
 40
 05
-c8
+c7
 20
 40
 05
-cd
+cc
 20
 40
 05
-d2
+d1
 20
 40
 05
-df
+de
 20
 40
 05
-f1
+f0
 1a
 22
 7e
@@ -5911,7 +5907,7 @@
 20
 40
 06
-04
+03
 20
 40
 41
@@ -5931,7 +5927,7 @@
 20
 40
 06
-04
+03
 20
 40
 41
@@ -5951,7 +5947,7 @@
 20
 40
 06
-04
+03
 20
 40
 41
@@ -5995,7 +5991,7 @@
 c0
 7f
 85
-db
+da
 20
 20
 41
@@ -6007,7 +6003,7 @@
 20
 40
 06
-07
+06
 68
 48
 c9
@@ -6047,7 +6043,7 @@
 c0
 7f
 85
-e8
+e7
 20
 20
 41
@@ -6059,7 +6055,7 @@
 20
 40
 06
-07
+06
 68
 48
 c9
@@ -6139,7 +6135,7 @@
 20
 40
 06
-07
+06
 68
 48
 c9
@@ -6199,11 +6195,11 @@
 20
 40
 06
-0f
+0e
 20
 40
 06
-21
+20
 20
 20
 46
@@ -6231,7 +6227,7 @@
 20
 40
 06
-16
+15
 20
 20
 40
@@ -6259,7 +6255,7 @@
 c0
 7f
 86
-1d
+1c
 20
 20
 40
@@ -6271,7 +6267,7 @@
 20
 40
 06
-07
+06
 68
 48
 c9
@@ -6295,7 +6291,7 @@
 24
 3a
 06
-2a
+29
 6f
 e0
 cc
@@ -6303,11 +6299,11 @@
 20
 40
 06
-04
+03
 20
 40
 06
-35
+34
 68
 48
 cc
@@ -6331,7 +6327,7 @@
 20
 40
 06
-07
+06
 70
 4c
 3f
@@ -6347,11 +6343,11 @@
 20
 40
 06
-4e
+4d
 20
 40
 06
-39
+38
 68
 48
 cc
@@ -6375,7 +6371,7 @@
 20
 40
 06
-44
+43
 67
 e0
 cc
@@ -6387,7 +6383,7 @@
 20
 3a
 06
-40
+3f
 6f
 e0
 cc
@@ -6451,11 +6447,11 @@
 c0
 03
 86
-59
+58
 c0
 00
 06
-5b
+5a
 20
 60
 00
@@ -6495,11 +6491,11 @@
 c0
 03
 86
-59
+58
 c0
 00
 06
-5b
+5a
 20
 60
 00
@@ -6543,7 +6539,7 @@
 c2
 9e
 86
-69
+68
 18
 42
 7e
@@ -6575,7 +6571,7 @@
 24
 3a
 06
-86
+85
 6f
 e4
 4b
@@ -6583,7 +6579,7 @@
 c2
 8e
 06
-7a
+79
 18
 42
 7e
@@ -6595,11 +6591,11 @@
 c0
 00
 06
-76
+75
 c0
 01
 06
-74
+73
 20
 60
 00
@@ -6611,7 +6607,7 @@
 20
 20
 06
-66
+65
 58
 00
 00
@@ -6619,7 +6615,7 @@
 20
 20
 06
-66
+65
 58
 00
 00
@@ -6627,7 +6623,7 @@
 20
 20
 06
-66
+65
 58
 00
 00
@@ -6635,7 +6631,7 @@
 20
 20
 06
-66
+65
 18
 42
 7e
@@ -6647,15 +6643,15 @@
 c0
 00
 06
-76
+75
 c0
 01
 06
-78
+77
 c0
 01
 86
-74
+73
 20
 60
 00
@@ -6671,15 +6667,15 @@
 c0
 00
 06
-78
+77
 c0
 00
 86
-74
+73
 c0
 01
 86
-72
+71
 20
 60
 00
@@ -6691,7 +6687,7 @@
 c2
 8e
 06
-80
+7f
 18
 42
 7e
@@ -6703,11 +6699,11 @@
 c0
 00
 06
-72
+71
 c0
 00
 86
-74
+73
 20
 60
 00
@@ -6744,8 +6740,8 @@
 20
 26
 f6
-c8
-f5
+64
+ec
 aa
 55
 40
@@ -8012,16 +8008,16 @@
 02
 40
 00
-59
+55
 1f
 55
 aa
 aa
 55
-35
+31
 7c
-ae
-c1
+81
+84
 ff
 ff
 ff
@@ -8188,5 +8184,9 @@
 ff
 ff
 ff
-84
-c9
+ff
+ff
+ff
+ff
+36
+60
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_public_RGB/output/program.lis	(revision 4356)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_public_RGB/output/program.lis	(working copy)
@@ -19,16 +19,16 @@
 0010 c065026b beq patch19_2 ,p_mouse_lpm_before_common 
 0011 c06600f8 beq patch19_4 ,p_mouse_adc_read_start 
 0012 c0670565 beq patch19_6 ,p_mouse_motion 
-0013 c067865d beq patch19_7 ,p_mouse_dpi_process 
+0013 c067865c beq patch19_7 ,p_mouse_dpi_process 
 0014 c0680355 beq patch1a_0 ,p_mouse_seting_dpi 
-0015 c06885b8 beq patch1a_1 ,p_mouse_check_key_gpio 
+0015 c06885b7 beq patch1a_1 ,p_mouse_check_key_gpio 
 0016 c0698050 beq patch1a_3 ,p_mouse_init_sunt 
-0017 c06a059d beq patch1a_4 ,p_mouse_sensor_poweron 
+0017 c06a059c beq patch1a_4 ,p_mouse_sensor_poweron 
 0018 c06b028d beq patch1a_6 ,p_mouse_priority_bb_event 
 0019 c06c8396 beq patch1b_1 ,p_mouse_bb_event_timer 
 001a c06d04d3 beq patch1b_2 ,p_mouse_start_discovery 
 001b c06d84ff beq patch1b_3 ,p_mouse_stop_discovery 
-001c c06f060a beq patch1b_6 ,p_mouse_idle 
+001c c06f0609 beq patch1b_6 ,p_mouse_idle 
 001d c06f807d beq patch1b_7 ,p_mouse_ready_reconnection_by_button 
 001e c0708075 beq patch1c_1 ,p_mouse_led_off 
 001f c0710071 beq patch1c_2 ,p_mouse_led_on 
@@ -50,7 +50,7 @@
 002d c0748305 beq patch3d_1 ,p_g24_reconn_dispatch 
 002e c07501cd beq patch3d_2 ,p_g24_transmit_no_interrupt 
 002f c0760556 beq patch3d_4 ,p_g24_lpm_wait 
-0030 c076868d beq patch3d_5 ,p_power_ctrl_start 
+0030 c076868c beq patch3d_5 ,p_power_ctrl_start 
 0031 2020137c branch loop 
 
 p_efuse_vdd_off:
@@ -368,7 +368,7 @@
 0119 20403d8a call mouse_usb_check_enable 
 011a 20404728 call mouse_drawing_optima_init 
 011b 20400188 call p_mouse_cb_fuction 
-011c 204005af call p_mouse_sensor_powerdown 
+011c 204005ae call p_mouse_sensor_powerdown 
 011d 20203bc9 branch mouse_init + 8 
 
 p_mouse_double_dpi_judge:
@@ -454,7 +454,7 @@
 
 p_mouse_setting_config:
 015d 20758000 rtn wake 
-015e 204005ec call p_mouse_customer_key_connect_vin 
+015e 204005eb call p_mouse_customer_key_connect_vin 
 015f 20402607 call g24_transmit_init 
 0160 204022ff call g24_chmap_param_init 
 0161 20403f1e call mouse_gpio_init 
@@ -588,7 +588,7 @@
 01c9 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
 01ca 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 01cb 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-01cc 202005af branch p_mouse_sensor_powerdown 
+01cc 202005ae branch p_mouse_sensor_powerdown 
 
 p_g24_transmit_no_interrupt:
 01cd 20402631 call g24_txdata_prep 
@@ -665,7 +665,7 @@
 p_mouse_dpi_check_once:
 0203 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
 0204 c4140000 rtnbit0 mouse_enable_select_device_by_dpi_button 
-0205 2020060f branch p_mouse_dpi_check 
+0205 2020060e branch p_mouse_dpi_check 
 
 p_mouse_select_device_by_pb_button:
 0206 6fe0c91b fetch 1 ,mem_config_select_device_button_gpio 
@@ -710,8 +710,8 @@
 0221 58000006 setarg pan_reg_config 
 0222 20405b0d call twspi_read 
 0223 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0224 204005a8 call p_mouse_sensor_reset 
-0225 204005af call p_mouse_sensor_powerdown 
+0224 204005a7 call p_mouse_sensor_reset 
+0225 204005ae call p_mouse_sensor_powerdown 
 0226 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -725,7 +725,7 @@
 022e 6848c910 fetcht 1 ,mem_matrix_public_gpio 
 022f 20406042 call gpio_clr_wake 
 0230 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0231 20400604 call p_mouse_gpio_config_output_high 
+0231 20400603 call p_mouse_gpio_config_output_high 
 0232 d8400003 arg 3 ,temp 
 0233 20403f56 call mouse_gpio_config_input_pu 
 0234 2040026b call p_mouse_lpm_before_common 
@@ -805,7 +805,7 @@
 026e 20406050 call gpio_config_input 
 026f 20403f88 call mouse_wheel_check 
 0270 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0271 20400604 call p_mouse_gpio_config_output_high 
+0271 20400603 call p_mouse_gpio_config_output_high 
 0272 20203e44 branch mouse_lpm_before_common + 4 
 
 p_g24_nodata_transmit:
@@ -983,7 +983,7 @@
 02f8 58000000 setarg 0 
 02f9 67e3c8d0 store 7 ,mem_mouse_key 
 02fa 704be101 jam 1 ,mem_sensor_shutdown_flag 
-02fb 204005af call p_mouse_sensor_powerdown 
+02fb 204005ae call p_mouse_sensor_powerdown 
 02fc 20200278 branch p_g24_long_sleep 
 
 p_g24_pair_dispatch:
@@ -1404,7 +1404,7 @@
 0433 2020318a branch timer_single_step 
 
 p_mouse_device_connect_init_sensor_or_led:
-0434 2040059d call p_mouse_sensor_poweron 
+0434 2040059c call p_mouse_sensor_poweron 
 0435 2020043e branch p_mouse_device_poweron_led_config 
 
 p_mouse_device_multi_led_poweron_init:
@@ -1648,7 +1648,7 @@
 
 p_mouse_start_discovery:
 04d3 20400440 call p_mouse_device_discover_led_config 
-04d4 204005af call p_mouse_sensor_powerdown 
+04d4 204005ae call p_mouse_sensor_powerdown 
 04d5 20400490 call p_mouse_logo_led_off 
 04d6 6fe1478c fetch 2 ,mem_ui_state_map 
 04d7 2feffe0b isolate1 ui_state_ble_adv ,pdata 
@@ -1836,13 +1836,13 @@
 0569 2040408e call mouse_dpi_config 
 056a 20403f7e call mouse_zwheel 
 056b 20403f83 call mouse_t_zwheel 
-056c 204005b6 call p_mouse_key 
+056c 204005b5 call p_mouse_key 
 056d 6fe0c8d0 fetch 1 ,mem_mouse_key 
 056e 1fe17e1f and_into 0x1f ,pdata 
 056f 67e0c8d0 store 1 ,mem_mouse_key 
-0570 24340595 nbranch p_mouse_low_power_led_delay_off ,user 
-0571 20400592 call p_mouse_work_state_flag 
-0572 2040059a call p_mouse_drawing_optima 
+0570 24340594 nbranch p_mouse_low_power_led_delay_off ,user 
+0571 20400591 call p_mouse_work_state_flag 
+0572 20400599 call p_mouse_drawing_optima 
 0573 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_check_sensor_data:
@@ -1857,402 +1857,395 @@
 057c c002424c beq p3065_xy ,mouse_p32xx_sensor_motion 
 057d c0034295 beq p8009 ,mouse_p8009_sensor_motion 
 057e c005c28e beq ka8g2 ,mouse_pka8g2_sensor_motion 
-057f 20200580 branch p_mouse_p32xx_sensor_motion 
+057f c0038581 beq p6520 ,p_mouse_p32xx_sensor_motion 
+0580 2020424c branch mouse_p32xx_sensor_motion 
 
 p_mouse_p32xx_sensor_motion:
-0580 204042c4 call mouse_clear_sensor_data 
-0581 78547c00 disable user 
-0582 6fe0c911 fetch 1 ,mem_sensor_motion_gpio 
-0583 c07f8587 beq gpio_disable ,p_mouse_p32xx_sensor_motion_2 
-0584 6848c911 fetcht 1 ,mem_sensor_motion_gpio 
-0585 20406059 call gpio_get_bit 
-0586 24608000 nrtn true 
+0581 204042c4 call mouse_clear_sensor_data 
+0582 78547c00 disable user 
+0583 6fe0c911 fetch 1 ,mem_sensor_motion_gpio 
+0584 c07f8588 beq gpio_disable ,p_mouse_p32xx_sensor_motion_2 
+0585 6848c911 fetcht 1 ,mem_sensor_motion_gpio 
+0586 20406059 call gpio_get_bit 
+0587 24608000 nrtn true 
 
 p_mouse_p32xx_sensor_motion_2:
-0587 58000000 setarg pan_reg_pid_l 
-0588 20405b0d call twspi_read 
-0589 c0984266 bne p32xx_id1 ,mouse_p3065_judge 
-
-p_mouse_p32xx_sensor_motion_3:
-058a 58000002 setarg pan_reg_motion_staus 
-058b 20405b0d call twspi_read 
-058c c303858e bbit0 7 ,p_mouse_p32xx_sensor_overflow_check 
-058d 20200591 branch p_mouse_p32xx_sensor_motion_1 
-
-p_mouse_p32xx_sensor_overflow_check:
-058e c2818591 bbit1 3 ,p_mouse_p32xx_sensor_motion_1 
-058f c2820591 bbit1 4 ,p_mouse_p32xx_sensor_motion_1 
+0588 58000000 setarg pan_reg_pid_l 
+0589 20405b0d call twspi_read 
+058a c0984266 bne p32xx_id1 ,mouse_p3065_judge 
+058b 20404259 call mouse_p32xx_sensor_motion_1 + 3 
+058c 6fe0c8d1 fetch 1 ,mem_mouse_x 
+058d 6848c8d3 fetcht 1 ,mem_mouse_y 
+058e 9840fe00 iadd temp ,pdata 
+058f 203a7e56 branch disable_user ,blank 
 0590 20600000 rtn 
 
-p_mouse_p32xx_sensor_motion_1:
-0591 20204259 branch mouse_p32xx_sensor_motion_1 + 3 
-
 p_mouse_work_state_flag:
-0592 704c9800 jam 0 ,mem_low_power_led_flag 
-0593 704c9900 jam 0 ,mem_24g_low_power_stop_blink 
-0594 20600000 rtn 
+0591 704c9800 jam 0 ,mem_low_power_led_flag 
+0592 704c9900 jam 0 ,mem_24g_low_power_stop_blink 
+0593 20600000 rtn 
 
 p_mouse_low_power_led_delay_off:
-0595 20404728 call mouse_drawing_optima_init 
-0596 6fe0cc99 fetch 1 ,mem_24g_low_power_stop_blink 
-0597 247a0000 nrtn blank 
-0598 704c996a jam 0x6a ,mem_24g_low_power_stop_blink 
-0599 20600000 rtn 
+0594 20404728 call mouse_drawing_optima_init 
+0595 6fe0cc99 fetch 1 ,mem_24g_low_power_stop_blink 
+0596 247a0000 nrtn blank 
+0597 704c996a jam 0x6a ,mem_24g_low_power_stop_blink 
+0598 20600000 rtn 
 
 p_mouse_drawing_optima:
-059a 6fe0c927 fetch 1 ,mem_config_sensor_type 
-059b c1018000 rtneq p3212 
-059c 2020471a branch mouse_drawing_optima 
+0599 6fe0c927 fetch 1 ,mem_config_sensor_type 
+059a c1018000 rtneq p3212 
+059b 2020471a branch mouse_drawing_optima 
 
 p_mouse_sensor_poweron:
-059d 20403f65 call mouse_sensor_spi_init 
-059e 6fe0c927 fetch 1 ,mem_config_sensor_type 
-059f c00585a4 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-05a0 20404232 call mouse_sensor_reset 
-05a1 da604aa3 arg mem_sensor_poweron_init ,regc 
-05a2 2040422b call mouse_sensor_wr_seq 
-05a3 2020408e branch mouse_dpi_config 
+059c 20403f65 call mouse_sensor_spi_init 
+059d 6fe0c927 fetch 1 ,mem_config_sensor_type 
+059e c00585a3 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+059f 20404232 call mouse_sensor_reset 
+05a0 da604aa3 arg mem_sensor_poweron_init ,regc 
+05a1 2040422b call mouse_sensor_wr_seq 
+05a2 2020408e branch mouse_dpi_config 
 
 p_mouse_ka8g2_sensor_init:
-05a4 204005ab call p_mouse_ka8g2_sensor_reset 
-05a5 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-05a6 2040422b call mouse_sensor_wr_seq 
-05a7 2020408e branch mouse_dpi_config 
+05a3 204005aa call p_mouse_ka8g2_sensor_reset 
+05a4 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+05a5 2040422b call mouse_sensor_wr_seq 
+05a6 2020408e branch mouse_dpi_config 
 
 p_mouse_sensor_reset:
-05a8 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05a9 c00585ab beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-05aa 20204232 branch mouse_sensor_reset 
+05a7 6fe0c927 fetch 1 ,mem_config_sensor_type 
+05a8 c00585aa beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+05a9 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-05ab 58009706 setarg 0x9706 
-05ac 20405b0c call twspi_write 
-05ad 20002ee0 nop 12000 
-05ae 20600000 rtn 
+05aa 58009706 setarg 0x9706 
+05ab 20405b0c call twspi_write 
+05ac 20002ee0 nop 12000 
+05ad 20600000 rtn 
 
 p_mouse_sensor_powerdown:
-05af 204041a7 call mouse_init_sunt 
-05b0 20403f65 call mouse_sensor_spi_init 
-05b1 6fe0c927 fetch 1 ,mem_config_sensor_type 
-05b2 c00585b4 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-05b3 2020423e branch mouse_sensor_powerdown_end 
+05ae 204041a7 call mouse_init_sunt 
+05af 20403f65 call mouse_sensor_spi_init 
+05b0 6fe0c927 fetch 1 ,mem_config_sensor_type 
+05b1 c00585b3 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+05b2 2020423e branch mouse_sensor_powerdown_end 
 
 p_mouse_ka8g2_sensor_powerdown:
-05b4 58001f06 setarg 0x1f06 
-05b5 20205b0c branch twspi_write 
+05b3 58001f06 setarg 0x1f06 
+05b4 20205b0c branch twspi_write 
 
 p_mouse_key:
-05b6 204005b8 call p_mouse_check_key_gpio 
-05b7 202040dd branch mouse_key + 1 
+05b5 204005b7 call p_mouse_check_key_gpio 
+05b6 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-05b8 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-05b9 245a4121 ncall mouse_check_key_gpio_once ,blank 
-05ba da200000 arg 0 ,rega 
-05bb 204005c3 call p_mouse_check_lkey_gpio 
-05bc 204005c8 call p_mouse_check_rkey_gpio 
-05bd 204005cd call p_mouse_check_mkey_gpio 
-05be 204005d2 call p_mouse_check_bkkey_gpio 
-05bf 204005df call p_mouse_check_fwkey_gpio 
+05b7 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+05b8 245a4121 ncall mouse_check_key_gpio_once ,blank 
+05b9 da200000 arg 0 ,rega 
+05ba 204005c2 call p_mouse_check_lkey_gpio 
+05bb 204005c7 call p_mouse_check_rkey_gpio 
+05bc 204005cc call p_mouse_check_mkey_gpio 
+05bd 204005d1 call p_mouse_check_bkkey_gpio 
+05be 204005de call p_mouse_check_fwkey_gpio 
 
 p_mouse_check_key_gpio_next:
-05c0 204005f1 call p_mouse_check_customerkey_gpio 
-05c1 1a227e00 copy rega ,pdata 
-05c2 20600000 rtn 
+05bf 204005f0 call p_mouse_check_customerkey_gpio 
+05c0 1a227e00 copy rega ,pdata 
+05c1 20600000 rtn 
 
 p_mouse_check_lkey_gpio:
-05c3 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-05c4 20400604 call p_mouse_gpio_config_output_high 
-05c5 20404124 call mouse_check_lkey_gpio 
-05c6 6848c918 fetcht 1 ,mem_lbutton_gpio 
-05c7 20203f56 branch mouse_gpio_config_input_pu 
+05c2 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+05c3 20400603 call p_mouse_gpio_config_output_high 
+05c4 20404124 call mouse_check_lkey_gpio 
+05c5 6848c918 fetcht 1 ,mem_lbutton_gpio 
+05c6 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-05c8 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-05c9 20400604 call p_mouse_gpio_config_output_high 
-05ca 2040412a call mouse_check_rkey_gpio 
-05cb 6848c919 fetcht 1 ,mem_rbutton_gpio 
-05cc 20203f56 branch mouse_gpio_config_input_pu 
+05c7 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+05c8 20400603 call p_mouse_gpio_config_output_high 
+05c9 2040412a call mouse_check_rkey_gpio 
+05ca 6848c919 fetcht 1 ,mem_rbutton_gpio 
+05cb 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-05cd 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-05ce 20400604 call p_mouse_gpio_config_output_high 
-05cf 20404130 call mouse_check_mkey_gpio 
-05d0 6848c91a fetcht 1 ,mem_mbutton_gpio 
-05d1 20203f56 branch mouse_gpio_config_input_pu 
+05cc 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+05cd 20400603 call p_mouse_gpio_config_output_high 
+05ce 20404130 call mouse_check_mkey_gpio 
+05cf 6848c91a fetcht 1 ,mem_mbutton_gpio 
+05d0 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-05d2 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-05d3 c17f8000 rtneq gpio_disable 
-05d4 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-05d5 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-05d6 1fe22600 copy pdata ,regc 
-05d7 6848c90d fetcht 1 ,mem_bk_button_gpio 
-05d8 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05d9 c07f85db beq gpio_disable ,p_mouse_3io6key_bk_check 
-05da 2020413e branch mouse_check_bkkey_gpio_next 
+05d1 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+05d2 c17f8000 rtneq gpio_disable 
+05d3 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+05d4 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+05d5 1fe22600 copy pdata ,regc 
+05d6 6848c90d fetcht 1 ,mem_bk_button_gpio 
+05d7 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05d8 c07f85da beq gpio_disable ,p_mouse_3io6key_bk_check 
+05d9 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-05db 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-05dc 20400607 call p_mouse_gpio_config_output_low 
-05dd 6848c90d fetcht 1 ,mem_bk_button_gpio 
-05de 2020414b branch mouse_3io6key_bk_check 
+05da 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+05db 20400606 call p_mouse_gpio_config_output_low 
+05dc 6848c90d fetcht 1 ,mem_bk_button_gpio 
+05dd 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-05df 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-05e0 c17f8000 rtneq gpio_disable 
-05e1 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-05e2 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-05e3 1fe22600 copy pdata ,regc 
-05e4 6848c90e fetcht 1 ,mem_fw_button_gpio 
-05e5 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05e6 c07f85e8 beq gpio_disable ,p_mouse_3io6key_fw_check 
-05e7 20204157 branch mouse_check_fwkey_gpio_next 
+05de 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+05df c17f8000 rtneq gpio_disable 
+05e0 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+05e1 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+05e2 1fe22600 copy pdata ,regc 
+05e3 6848c90e fetcht 1 ,mem_fw_button_gpio 
+05e4 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05e5 c07f85e7 beq gpio_disable ,p_mouse_3io6key_fw_check 
+05e6 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-05e8 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-05e9 20400607 call p_mouse_gpio_config_output_low 
-05ea 6848c90e fetcht 1 ,mem_fw_button_gpio 
-05eb 20204164 branch mouse_3io6key_fw_check 
+05e7 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+05e8 20400606 call p_mouse_gpio_config_output_low 
+05e9 6848c90e fetcht 1 ,mem_fw_button_gpio 
+05ea 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_customer_key_connect_vin:
-05ec 6fe0c912 fetch 1 ,mem_customer_key_gpio 
-05ed c17f8000 rtneq gpio_disable 
-05ee c4038000 rtnbit0 7 
-05ef 704ccd01 jam 1 ,mem_mouse_customer_key_connect_vin_flag 
-05f0 20600000 rtn 
+05eb 6fe0c912 fetch 1 ,mem_customer_key_gpio 
+05ec c17f8000 rtneq gpio_disable 
+05ed c4038000 rtnbit0 7 
+05ee 704ccd01 jam 1 ,mem_mouse_customer_key_connect_vin_flag 
+05ef 20600000 rtn 
 
 p_mouse_check_customerkey_gpio:
-05f1 6fe0cccd fetch 1 ,mem_mouse_customer_key_connect_vin_flag 
-05f2 203a416a branch mouse_check_customerkey_gpio ,blank 
-05f3 704b8b00 jam 0 ,mem_customer_key 
-05f4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05f5 c40a8000 rtnbit0 mouse_enable_keyboard 
-05f6 6fe0c912 fetch 1 ,mem_customer_key_gpio 
-05f7 793ffe07 set0 gpio_active_bit ,pdata 
-05f8 67e0c912 store 1 ,mem_customer_key_gpio 
-05f9 704b9607 jam mouse_customer_key ,mem_mouse_key_temp 
-05fa 6fe0cb95 fetch 1 ,mem_mouse_customerkey_press_status 
-05fb 1fe22600 copy pdata ,regc 
+05f0 6fe0cccd fetch 1 ,mem_mouse_customer_key_connect_vin_flag 
+05f1 203a416a branch mouse_check_customerkey_gpio ,blank 
+05f2 704b8b00 jam 0 ,mem_customer_key 
+05f3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05f4 c40a8000 rtnbit0 mouse_enable_keyboard 
+05f5 6fe0c912 fetch 1 ,mem_customer_key_gpio 
+05f6 793ffe07 set0 gpio_active_bit ,pdata 
+05f7 67e0c912 store 1 ,mem_customer_key_gpio 
+05f8 704b9607 jam mouse_customer_key ,mem_mouse_key_temp 
+05f9 6fe0cb95 fetch 1 ,mem_mouse_customerkey_press_status 
+05fa 1fe22600 copy pdata ,regc 
 
 p_mouse_3io6key_customerkey_check:
-05fc 6fe0c912 fetch 1 ,mem_customer_key_gpio 
-05fd 20400607 call p_mouse_gpio_config_output_low 
-05fe 6848c912 fetcht 1 ,mem_customer_key_gpio 
-05ff 20404195 call mouse_3io6key_check 
-0600 67e0cb95 store 1 ,mem_mouse_customerkey_press_status 
-0601 20404174 call mouse_check_customerkey_state 
-0602 6848c912 fetcht 1 ,mem_customer_key_gpio 
-0603 20203f56 branch mouse_gpio_config_input_pu 
+05fb 6fe0c912 fetch 1 ,mem_customer_key_gpio 
+05fc 20400606 call p_mouse_gpio_config_output_low 
+05fd 6848c912 fetcht 1 ,mem_customer_key_gpio 
+05fe 20404195 call mouse_3io6key_check 
+05ff 67e0cb95 store 1 ,mem_mouse_customerkey_press_status 
+0600 20404174 call mouse_check_customerkey_state 
+0601 6848c912 fetcht 1 ,mem_customer_key_gpio 
+0602 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_gpio_config_output_high:
-0604 c17f8000 rtneq gpio_disable 
-0605 d840003f arg gpcfg_output_high ,temp 
-0606 20206093 branch gpio_config_function_int 
+0603 c17f8000 rtneq gpio_disable 
+0604 d840003f arg gpcfg_output_high ,temp 
+0605 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-0607 c17f8000 rtneq gpio_disable 
-0608 d840003e arg gpcfg_output_low ,temp 
-0609 20206093 branch gpio_config_function_int 
+0606 c17f8000 rtneq gpio_disable 
+0607 d840003e arg gpcfg_output_low ,temp 
+0608 20206093 branch gpio_config_function_int 
 
 p_mouse_idle:
-060a 20404990 call mouse_low_voltage_led_no_enter_lpm 
-060b 20407936 call ui_check_paring_button 
-060c 2040060f call p_mouse_dpi_check 
-060d 20400621 call p_mouse_dpi_another_gpio_check 
-060e 2020464f branch mouse_idle + 4 
+0609 20404990 call mouse_low_voltage_led_no_enter_lpm 
+060a 20407936 call ui_check_paring_button 
+060b 2040060e call p_mouse_dpi_check 
+060c 20400620 call p_mouse_dpi_another_gpio_check 
+060d 2020464f branch mouse_idle + 4 
 
 p_mouse_dpi_check:
-060f 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0610 c17f8000 rtneq gpio_disable 
-0611 da200000 arg 0 ,rega 
-0612 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-0613 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0614 20400616 call p_mouse_dpi_key_check 
-0615 2020402f branch mouse_dpi_check_next 
+060e 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+060f c17f8000 rtneq gpio_disable 
+0610 da200000 arg 0 ,rega 
+0611 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+0612 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0613 20400615 call p_mouse_dpi_key_check 
+0614 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-0616 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0617 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-0618 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-0619 1fe22600 copy pdata ,regc 
-061a 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-061b c07f861d beq gpio_disable ,p_mouse_3io6key_dpi_check 
-061c 2020403f branch mouse_dpi_key_check_next 
+0615 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0616 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+0617 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+0618 1fe22600 copy pdata ,regc 
+0619 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+061a c07f861c beq gpio_disable ,p_mouse_3io6key_dpi_check 
+061b 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-061d 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-061e 20400607 call p_mouse_gpio_config_output_low 
-061f 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0620 20204195 branch mouse_3io6key_check 
+061c 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+061d 20400606 call p_mouse_gpio_config_output_low 
+061e 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+061f 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_another_gpio_check:
-0621 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0622 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-0623 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-0624 243a062a nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+0620 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0621 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+0622 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+0623 243a0629 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-0625 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-0626 20400604 call p_mouse_gpio_config_output_high 
-0627 20400635 call p_mouse_dpi_another_check 
-0628 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0629 20203f56 branch mouse_gpio_config_input_pu 
+0624 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+0625 20400603 call p_mouse_gpio_config_output_high 
+0626 20400634 call p_mouse_dpi_another_check 
+0627 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0628 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-062a 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-062b 793ffe07 set0 gpio_active_bit ,pdata 
-062c 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-062d 20400607 call p_mouse_gpio_config_output_low 
-062e 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-062f 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0630 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0631 2040064e call p_mouse_check_key_connect_vin_new 
-0632 20400639 call p_mouse_dpi_another_state_check 
-0633 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0634 20203f56 branch mouse_gpio_config_input_pu 
+0629 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+062a 793ffe07 set0 gpio_active_bit ,pdata 
+062b 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+062c 20400606 call p_mouse_gpio_config_output_low 
+062d 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+062e 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+062f 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+0630 2040064d call p_mouse_check_key_connect_vin_new 
+0631 20400638 call p_mouse_dpi_another_state_check 
+0632 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0633 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_check:
-0635 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0636 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0637 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0638 20400644 call p_mouse_check_key_connect_gnd_new 
+0634 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0635 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0636 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+0637 20400643 call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-0639 67e0cc3c store 1 ,mem_dpi_another_press_status 
-063a 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-063b 203a0640 branch p_mouse_dpi_another_up ,blank 
+0638 67e0cc3c store 1 ,mem_dpi_another_press_status 
+0639 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+063a 203a063f branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-063c 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-063d c1008000 rtneq dpi_button_state_down 
-063e 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-063f 20204069 branch mouse_dpi_process 
+063b 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+063c c1008000 rtneq dpi_button_state_down 
+063d 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+063e 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-0640 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0641 c1000000 rtneq dpi_button_state_up 
-0642 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-0643 20600000 rtn 
+063f 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0640 c1000000 rtneq dpi_button_state_up 
+0641 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+0642 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-0644 1fe3fe00 lshift pdata ,pdata 
-0645 1fe22400 copy pdata ,regb 
-0646 20406059 call gpio_get_bit 
-0647 7920a400 setflag true ,0 ,regb 
-0648 1a417e07 and regb ,0x07 ,pdata 
-0649 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-064a 18420e00 copy temp ,queue 
-064b c0038659 beq 0x07 ,p_mouse_key_press 
-064c c000065b beq 0x00 ,p_mouse_key_release 
-064d 20600000 rtn 
+0643 1fe3fe00 lshift pdata ,pdata 
+0644 1fe22400 copy pdata ,regb 
+0645 20406059 call gpio_get_bit 
+0646 7920a400 setflag true ,0 ,regb 
+0647 1a417e07 and regb ,0x07 ,pdata 
+0648 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0649 18420e00 copy temp ,queue 
+064a c0038658 beq 0x07 ,p_mouse_key_press 
+064b c000065a beq 0x00 ,p_mouse_key_release 
+064c 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-064e 1fe3fe00 lshift pdata ,pdata 
-064f 1fe22400 copy pdata ,regb 
-0650 20403f54 call mouse_gpio_config_input_pd 
-0651 20406059 call gpio_get_bit 
-0652 7920a400 setflag true ,0 ,regb 
-0653 1a417e07 and regb ,0x07 ,pdata 
-0654 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-0655 18420e00 copy temp ,queue 
-0656 c0038659 beq 0x07 ,p_mouse_key_press 
-0657 c000065b beq 0x00 ,p_mouse_key_release 
-0658 20600000 rtn 
+064d 1fe3fe00 lshift pdata ,pdata 
+064e 1fe22400 copy pdata ,regb 
+064f 20403f54 call mouse_gpio_config_input_pd 
+0650 20406059 call gpio_get_bit 
+0651 7920a400 setflag true ,0 ,regb 
+0652 1a417e07 and regb ,0x07 ,pdata 
+0653 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0654 18420e00 copy temp ,queue 
+0655 c0038658 beq 0x07 ,p_mouse_key_press 
+0656 c000065a beq 0x00 ,p_mouse_key_release 
+0657 20600000 rtn 
 
 p_mouse_key_press:
-0659 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-065a 20600000 rtn 
+0658 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+0659 20600000 rtn 
 
 p_mouse_key_release:
-065b 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-065c 20600000 rtn 
+065a 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+065b 20600000 rtn 
 
 p_mouse_dpi_process:
-065d 20404072 call mouse_dpi_ghost_check 
-065e 20740000 rtn user 
-065f 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0660 1fe20400 copy pdata ,temp 
-0661 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0662 c29e8669 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-0663 18427e00 copy temp ,pdata 
-0664 1fe0fe01 increase 1 ,pdata 
-0665 1fe17e03 and pdata ,0x03 ,pdata 
+065c 20404072 call mouse_dpi_ghost_check 
+065d 20740000 rtn user 
+065e 6fe0c992 fetch 1 ,mem_mouse_dpi 
+065f 1fe20400 copy pdata ,temp 
+0660 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0661 c29e8668 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+0662 18427e00 copy temp ,pdata 
+0663 1fe0fe01 increase 1 ,pdata 
+0664 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-0666 67e0c992 store 1 ,mem_mouse_dpi 
-0667 20404095 call mouse_seting_dpi 
-0668 20204643 branch mouse_store_eerpom_dpi 
+0665 67e0c992 store 1 ,mem_mouse_dpi 
+0666 20404095 call mouse_seting_dpi 
+0667 20204643 branch mouse_store_eerpom_dpi 
 
 p_mouse_double_dpi_check:
-0669 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-066a 243a0686 nbranch p_mouse_another_dpi_button_down ,blank 
+0668 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+0669 243a0685 nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-066b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-066c c28e067a bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-066d 18427e00 copy temp ,pdata 
-066e c1008000 rtneq mouse_dpi_level2 
+066a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+066b c28e0679 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+066c 18427e00 copy temp ,pdata 
+066d c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-066f c0000676 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-0670 c0010674 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-0671 20600000 rtn 
+066e c0000675 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+066f c0010673 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+0670 20600000 rtn 
 
 p_mouse_dpi_level_1:
-0672 58000002 setarg 2 
-0673 20200666 branch p_mouse_dpi_store 
+0671 58000002 setarg 2 
+0672 20200665 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-0674 58000000 setarg 0 
-0675 20200666 branch p_mouse_dpi_store 
+0673 58000000 setarg 0 
+0674 20200665 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-0676 58000001 setarg 1 
-0677 20200666 branch p_mouse_dpi_store 
+0675 58000001 setarg 1 
+0676 20200665 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-0678 58000003 setarg 3 
-0679 20200666 branch p_mouse_dpi_store 
+0677 58000003 setarg 3 
+0678 20200665 branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-067a 18427e00 copy temp ,pdata 
-067b c1008000 rtneq mouse_dpi_level2 
-067c c0000676 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-067d c0010678 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-067e c0018674 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-067f 20600000 rtn 
+0679 18427e00 copy temp ,pdata 
+067a c1008000 rtneq mouse_dpi_level2 
+067b c0000675 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+067c c0010677 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+067d c0018673 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+067e 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-0680 18427e00 copy temp ,pdata 
-0681 c1010000 rtneq mouse_dpi_level3 
-0682 c0000678 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-0683 c0008674 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-0684 c0018672 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-0685 20600000 rtn 
+067f 18427e00 copy temp ,pdata 
+0680 c1010000 rtneq mouse_dpi_level3 
+0681 c0000677 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+0682 c0008673 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+0683 c0018671 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+0684 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-0686 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0687 c28e0680 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-0688 18427e00 copy temp ,pdata 
-0689 c1010000 rtneq mouse_dpi_level3 
+0685 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0686 c28e067f bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+0687 18427e00 copy temp ,pdata 
+0688 c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-068a c0000672 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-068b c0008674 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-068c 20600000 rtn 
+0689 c0000671 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+068a c0008673 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+068b 20600000 rtn 
 
 p_power_ctrl_start:
-068d 6fe1478c fetch 2 ,mem_ui_state_map 
-068e c3858000 rtnbit1 ui_state_ble_adv 
-068f c3838000 rtnbit1 ui_state_bt_reconnect 
-0690 c3830000 rtnbit1 ui_state_bt_discovery 
-0691 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0692 204025cb call rssi_average 
-0693 6048c8c7 storet 1 ,mem_rssi_avg_received 
-0694 202026f6 branch power_ctrl_rssi_avg_compare 
+068c 6fe1478c fetch 2 ,mem_ui_state_map 
+068d c3858000 rtnbit1 ui_state_ble_adv 
+068e c3838000 rtnbit1 ui_state_bt_reconnect 
+068f c3830000 rtnbit1 ui_state_bt_discovery 
+0690 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+0691 204025cb call rssi_average 
+0692 6048c8c7 storet 1 ,mem_rssi_avg_received 
+0693 202026f6 branch power_ctrl_rssi_avg_compare 
               org 0x3bc1
 
 mouse_init:
Index: output/ramcode.rom
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_public_RGB/output/ramcode.rom	(revision 4356)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_public_RGB/output/ramcode.rom	(working copy)
@@ -17,16 +17,16 @@
 c065026b
 c06600f8
 c0670565
-c067865d
+c067865c
 c0680355
-c06885b8
+c06885b7
 c0698050
-c06a059d
+c06a059c
 c06b028d
 c06c8396
 c06d04d3
 c06d84ff
-c06f060a
+c06f0609
 c06f807d
 c0708075
 c0710071
@@ -46,7 +46,7 @@
 c0748305
 c07501cd
 c0760556
-c076868d
+c076868c
 2020137c
 6ff08a0b
 793ffe05
@@ -282,7 +282,7 @@
 20403d8a
 20404728
 20400188
-204005af
+204005ae
 20203bc9
 6fe44bab
 c41e8000
@@ -348,7 +348,7 @@
 df200014
 20207d26
 20758000
-204005ec
+204005eb
 20402607
 204022ff
 20403f1e
@@ -458,7 +458,7 @@
 67e0cba4
 6fe14bbc
 67e14ab2
-202005af
+202005ae
 20402631
 24340273
 204001dd
@@ -515,7 +515,7 @@
 20207d66
 6fe44bab
 c4140000
-2020060f
+2020060e
 6fe0c91b
 c17f8000
 da200000
@@ -546,8 +546,8 @@
 58000006
 20405b0d
 c281be23
-204005a8
-204005af
+204005a7
+204005ae
 20203e23
 204042e9
 20407fdc
@@ -559,7 +559,7 @@
 6848c910
 20406042
 6fe0c920
-20400604
+20400603
 d8400003
 20403f56
 2040026b
@@ -623,7 +623,7 @@
 20406050
 20403f88
 6fe0c91f
-20400604
+20400603
 20203e44
 6fe0c8a7
 205a027f
@@ -761,7 +761,7 @@
 58000000
 67e3c8d0
 704be101
-204005af
+204005ae
 20200278
 70488b00
 6fe14beb
@@ -1074,7 +1074,7 @@
 da604c1d
 da405d8c
 2020318a
-2040059d
+2040059c
 2020043e
 6fe0cc46
 67e0cc47
@@ -1234,7 +1234,7 @@
 c00002f4
 2020431b
 20400440
-204005af
+204005ae
 20400490
 6fe1478c
 2feffe0b
@@ -1386,13 +1386,13 @@
 2040408e
 20403f7e
 20403f83
-204005b6
+204005b5
 6fe0c8d0
 1fe17e1f
 67e0c8d0
-24340595
-20400592
-2040059a
+24340594
+20400591
+20400599
 20204544
 6fe0c4ac
 c1800000
@@ -1405,25 +1405,24 @@
 c002424c
 c0034295
 c005c28e
-20200580
+c0038581
+2020424c
 204042c4
 78547c00
 6fe0c911
-c07f8587
+c07f8588
 6848c911
 20406059
 24608000
 58000000
 20405b0d
 c0984266
-58000002
-20405b0d
-c303858e
-20200591
-c2818591
-c2820591
+20404259
+6fe0c8d1
+6848c8d3
+9840fe00
+203a7e56
 20600000
-20204259
 704c9800
 704c9900
 20600000
@@ -1437,17 +1436,17 @@
 2020471a
 20403f65
 6fe0c927
-c00585a4
+c00585a3
 20404232
 da604aa3
 2040422b
 2020408e
-204005ab
+204005aa
 da604be3
 2040422b
 2020408e
 6fe0c927
-c00585ab
+c00585aa
 20204232
 58009706
 20405b0c
@@ -1456,35 +1455,35 @@
 204041a7
 20403f65
 6fe0c927
-c00585b4
+c00585b3
 2020423e
 58001f06
 20205b0c
-204005b8
+204005b7
 202040dd
 6fe0cbe1
 245a4121
 da200000
-204005c3
-204005c8
-204005cd
-204005d2
-204005df
-204005f1
+204005c2
+204005c7
+204005cc
+204005d1
+204005de
+204005f0
 1a227e00
 20600000
 6fe0c918
-20400604
+20400603
 20404124
 6848c918
 20203f56
 6fe0c919
-20400604
+20400603
 2040412a
 6848c919
 20203f56
 6fe0c91a
-20400604
+20400603
 20404130
 6848c91a
 20203f56
@@ -1495,10 +1494,10 @@
 1fe22600
 6848c90d
 6fe0c910
-c07f85db
+c07f85da
 2020413e
 6fe0c90d
-20400607
+20400606
 6848c90d
 2020414b
 6fe0c90e
@@ -1508,10 +1507,10 @@
 1fe22600
 6848c90e
 6fe0c910
-c07f85e8
+c07f85e7
 20204157
 6fe0c90e
-20400607
+20400606
 6848c90e
 20204164
 6fe0c912
@@ -1531,7 +1530,7 @@
 6fe0cb95
 1fe22600
 6fe0c912
-20400607
+20400606
 6848c912
 20404195
 67e0cb95
@@ -1546,54 +1545,54 @@
 20206093
 20404990
 20407936
-2040060f
-20400621
+2040060e
+20400620
 2020464f
 6fe0c90f
 c17f8000
 da200000
 704b9605
 6848c90f
-20400616
+20400615
 2020402f
 6fe44bab
 c2964048
 6fe0cb93
 1fe22600
 6fe0c910
-c07f861d
+c07f861c
 2020403f
 6fe0c90f
-20400607
+20400606
 6848c90f
 20204195
 6fe44bab
 c41e8000
 6fe0cc3a
-243a062a
+243a0629
 6fe0cc3b
-20400604
-20400635
+20400603
+20400634
 6848cc3b
 20203f56
 6fe0cc3b
 793ffe07
 67e0cc3b
-20400607
+20400606
 704c3f00
 6848cc3b
 6fe0cc3c
-2040064e
-20400639
+2040064d
+20400638
 6848cc3b
 20203f56
 704c3f00
 6848cc3b
 6fe0cc3c
-20400644
+20400643
 67e0cc3c
 6fe0cc3e
-203a0640
+203a063f
 6fe0cc3d
 c1008000
 704c3d01
@@ -1609,8 +1608,8 @@
 1a417e07
 6848cc3f
 18420e00
-c0038659
-c000065b
+c0038658
+c000065a
 20600000
 1fe3fe00
 1fe22400
@@ -1620,8 +1619,8 @@
 1a417e07
 6848cc3f
 18420e00
-c0038659
-c000065b
+c0038658
+c000065a
 20600000
 704c3e01
 20600000
@@ -1632,7 +1631,7 @@
 6fe0c992
 1fe20400
 6fe44bab
-c29e8669
+c29e8668
 18427e00
 1fe0fe01
 1fe17e03
@@ -1640,40 +1639,40 @@
 20404095
 20204643
 6fe0cc3e
-243a0686
+243a0685
 6fe44bab
-c28e067a
+c28e0679
 18427e00
 c1008000
-c0000676
-c0010674
+c0000675
+c0010673
 20600000
 58000002
-20200666
+20200665
 58000000
-20200666
+20200665
 58000001
-20200666
+20200665
 58000003
-20200666
+20200665
 18427e00
 c1008000
-c0000676
-c0010678
-c0018674
+c0000675
+c0010677
+c0018673
 20600000
 18427e00
 c1010000
-c0000678
-c0008674
-c0018672
+c0000677
+c0008673
+c0018671
 20600000
 6fe44bab
-c28e0680
+c28e067f
 18427e00
 c1010000
-c0000672
-c0008674
+c0000671
+c0008673
 20600000
 6fe1478c
 c3858000
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_public_RGB/program/patch.prog	(revision 4356)
+++ /YC1308AC/branch/mouse_project/MingZhe_Project/branch/1m/mouse_public_RGB/program/patch.prog	(working copy)
@@ -87,8 +87,6 @@
 	branch soft_reset+3
 p_poweron_led_blink:
 	rtn wake
-	// fetch 1,mem_mouse_device_poweron_timer_count_init
-	// store 1,mem_mouse_device_mode_led_count
 	jam 0x03,mem_mouse_1io2led_multi_24gled
 	jam 0x0a,mem_mouse_1io2led_multi_bt1led
 	jam 0x8a,mem_mouse_1io2led_multi_bt2led
@@ -172,7 +170,7 @@
 
 
 p_mouse_ready_reconnection_by_button:
-	jam 0,mem_mouse_multi_led_blink_enable
+	jam 0,mem_mouse_multi_led_blink_enable//防止连接设备闪灯时，关灯
 	jam MULTI_LED_ON,mem_mouse_multi_led_type
 	call p_mouse_device_multi_led_off+1
 	fetch 1,mem_device_number
@@ -2063,7 +2061,8 @@
 	beq P3065_xy,mouse_p32xx_sensor_motion
 	beq P8009,mouse_p8009_sensor_motion	
 	beq KA8G2,mouse_pka8g2_sensor_motion
-	branch p_mouse_p32xx_sensor_motion
+	beq P6520,p_mouse_p32xx_sensor_motion
+	branch mouse_p32xx_sensor_motion
 p_mouse_p32xx_sensor_motion:
 	call mouse_clear_sensor_data
 	disable user
@@ -2074,19 +2073,17 @@
 	nrtn true
 p_mouse_p32xx_sensor_motion_2:
 	setarg PAN_REG_PID_L
-	call twspi_read
+	call twspi_read //确认id后直接读取sensor数据，不判断第七位sensor移动状态和第3、4位，x,y的值是否有溢出，直接读取数据
 	bne P32XX_ID1,mouse_p3065_judge   
-p_mouse_p32xx_sensor_motion_3:
-	setarg PAN_REG_MOTION_STAUS
-	call twspi_read
-	bbit0 7,p_mouse_p32xx_sensor_overflow_check
-	branch p_mouse_p32xx_sensor_motion_1
-p_mouse_p32xx_sensor_overflow_check:
-	bbit1 3,p_mouse_p32xx_sensor_motion_1
-	bbit1 4,p_mouse_p32xx_sensor_motion_1
+	call mouse_p32xx_sensor_motion_1+3
+
+	fetch 1,mem_mouse_x
+	fetcht 1,mem_mouse_y
+	iadd temp,pdata  //这里读到的数据如果都是0，说明鼠标是静置的，需要disable_user,因为读完sensor数据后enable_user了
+	branch disable_user,blank//否则，sensor无法静置超时进入深睡
 	rtn
-p_mouse_p32xx_sensor_motion_1:
-	branch mouse_p32xx_sensor_motion_1+3		
+
+	
 
 // p_mouse_check_sensor_data:
 // 	fetch 1,mem_spi_write_flash_sm
