Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/mouse_public_xzr_branch/PB_3mode_3ch_PCM8258/output/eeprom.dat	(revision 4239)
+++ /YC1308AC/branch/mouse_project/XZR/mouse_public_xzr_branch/PB_3mode_3ch_PCM8258/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-2e
+32
 17
 c2
 84
@@ -67,7 +67,7 @@
 c0
 67
 85
-7b
+7c
 c0
 68
 03
@@ -103,7 +103,7 @@
 c0
 6f
 05
-1b
+1c
 c0
 6f
 80
@@ -3383,7 +3383,7 @@
 20
 40
 05
-97
+98
 20
 40
 03
@@ -4975,23 +4975,23 @@
 20
 40
 04
-ee
+ef
 20
 40
 04
-f3
+f4
 20
 40
 04
-f8
+f9
 20
 40
 04
-fd
+fe
 20
 40
 05
-0a
+0b
 20
 40
 04
@@ -5000,6 +5000,10 @@
 20
 41
 1f
+70
+4b
+8b
+00
 6f
 e0
 cc
@@ -5007,11 +5011,11 @@
 c0
 00
 84
-e5
+e6
 c0
 00
 04
-e8
+e9
 20
 60
 00
@@ -5059,7 +5063,7 @@
 20
 40
 05
-17
+18
 20
 40
 41
@@ -5079,7 +5083,7 @@
 20
 40
 05
-17
+18
 20
 40
 41
@@ -5099,7 +5103,7 @@
 20
 40
 05
-17
+18
 20
 40
 41
@@ -5143,7 +5147,7 @@
 c0
 7f
 85
-06
+07
 20
 20
 41
@@ -5155,7 +5159,7 @@
 20
 40
 05
-19
+1a
 68
 48
 c9
@@ -5195,7 +5199,7 @@
 c0
 7f
 85
-13
+14
 20
 20
 41
@@ -5207,7 +5211,7 @@
 20
 40
 05
-19
+1a
 68
 48
 c9
@@ -5235,7 +5239,7 @@
 20
 40
 05
-20
+21
 20
 40
 79
@@ -5243,11 +5247,11 @@
 20
 40
 05
-25
+26
 20
 40
 05
-39
+3a
 20
 20
 46
@@ -5303,7 +5307,7 @@
 20
 40
 05
-2e
+2f
 20
 20
 40
@@ -5331,7 +5335,7 @@
 c0
 7f
 85
-35
+36
 20
 20
 40
@@ -5343,7 +5347,7 @@
 20
 40
 05
-19
+1a
 68
 48
 c9
@@ -5367,7 +5371,7 @@
 24
 3a
 05
-42
+43
 6f
 e0
 cc
@@ -5375,11 +5379,11 @@
 20
 40
 05
-17
+18
 20
 40
 05
-53
+54
 68
 48
 cc
@@ -5407,7 +5411,7 @@
 20
 40
 05
-19
+1a
 70
 4c
 3f
@@ -5423,11 +5427,11 @@
 20
 40
 05
-6c
+6d
 20
 40
 05
-57
+58
 68
 48
 cc
@@ -5471,7 +5475,7 @@
 20
 40
 05
-62
+63
 67
 e0
 cc
@@ -5483,7 +5487,7 @@
 20
 3a
 05
-5e
+5f
 6f
 e0
 cc
@@ -5547,11 +5551,11 @@
 c0
 03
 85
-77
+78
 c0
 00
 05
-79
+7a
 20
 60
 00
@@ -5591,11 +5595,11 @@
 c0
 03
 85
-77
+78
 c0
 00
 05
-79
+7a
 20
 60
 00
@@ -5647,7 +5651,7 @@
 c2
 9e
 85
-a7
+a8
 18
 42
 7e
@@ -5671,7 +5675,7 @@
 20
 40
 05
-8c
+8d
 70
 4c
 54
@@ -5691,15 +5695,15 @@
 c0
 00
 05
-93
+94
 c0
 00
 85
-95
+96
 c0
 01
 05
-91
+92
 20
 60
 00
@@ -5755,7 +5759,7 @@
 c0
 03
 05
-9f
+a0
 20
 60
 00
@@ -5779,7 +5783,7 @@
 20
 3a
 05
-a5
+a6
 20
 20
 03
@@ -5799,7 +5803,7 @@
 24
 3a
 05
-c4
+c5
 6f
 e4
 4b
@@ -5807,7 +5811,7 @@
 c2
 8e
 05
-b8
+b9
 18
 42
 7e
@@ -5819,11 +5823,11 @@
 c0
 00
 05
-b4
+b5
 c0
 01
 05
-b2
+b3
 20
 60
 00
@@ -5835,7 +5839,7 @@
 20
 20
 05
-86
+87
 58
 00
 00
@@ -5843,7 +5847,7 @@
 20
 20
 05
-86
+87
 58
 00
 00
@@ -5851,7 +5855,7 @@
 20
 20
 05
-86
+87
 58
 00
 00
@@ -5859,7 +5863,7 @@
 20
 20
 05
-86
+87
 18
 42
 7e
@@ -5871,15 +5875,15 @@
 c0
 00
 05
-b4
+b5
 c0
 01
 05
-b6
+b7
 c0
 01
 85
-b2
+b3
 20
 60
 00
@@ -5895,15 +5899,15 @@
 c0
 00
 05
-b6
+b7
 c0
 00
 85
-b2
+b3
 c0
 01
 85
-b0
+b1
 20
 60
 00
@@ -5915,7 +5919,7 @@
 c2
 8e
 05
-be
+bf
 18
 42
 7e
@@ -5927,17 +5931,17 @@
 c0
 00
 05
-b0
+b1
 c0
 00
 85
-b2
+b3
 20
 60
 00
 00
-76
-1e
+be
+fb
 aa
 55
 40
@@ -6238,9 +6242,9 @@
 cc
 4b
 00
-08
+0a
 00
-06
+72
 00
 00
 00
@@ -7291,20 +7295,16 @@
 02
 40
 00
-88
+8c
 1c
 55
 aa
 aa
 55
-cc
-9d
-1c
-3f
-ff
-ff
-ff
-ff
+3e
+9e
+e8
+31
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-25
-f2
+73
+d0
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/mouse_public_xzr_branch/PB_3mode_3ch_PCM8258/output/program.lis	(revision 4239)
+++ /YC1308AC/branch/mouse_project/XZR/mouse_public_xzr_branch/PB_3mode_3ch_PCM8258/output/program.lis	(working copy)
@@ -15,7 +15,7 @@
 000c c0650215 beq patch19_2 ,p_mouse_lpm_before_common 
 000d c066009c beq patch19_4 ,p_mouse_adc_read_start 
 000e c06704a9 beq patch19_6 ,p_mouse_motion 
-000f c067857b beq patch19_7 ,p_mouse_dpi_process 
+000f c067857c beq patch19_7 ,p_mouse_dpi_process 
 0010 c068032d beq patch1a_0 ,p_mouse_seting_dpi 
 0011 c06884d7 beq patch1a_1 ,p_mouse_check_key_gpio 
 0012 c0698310 beq patch1a_3 ,p_mouse_init_sunt 
@@ -24,7 +24,7 @@
 0015 c06c8344 beq patch1b_1 ,p_mouse_bb_event_timer 
 0016 c06d041e beq patch1b_2 ,p_mouse_start_discovery 
 0017 c06d803f beq patch1b_3 ,p_mouse_stop_discovery 
-0018 c06f051b beq patch1b_6 ,p_mouse_idle 
+0018 c06f051c beq patch1b_6 ,p_mouse_idle 
 0019 c06f8042 beq patch1b_7 ,p_mouse_ready_reconnection_by_button 
 001a c0708037 beq patch1c_1 ,p_mouse_led_off 
 001b c0710033 beq patch1c_2 ,p_mouse_led_on 
@@ -1088,7 +1088,7 @@
 0349 204047cd call mouse_24g_long_sleep_param_update_timer 
 034a 2040037f call p_mouse_24g_led_blink_timer 
 034b 204048be call mouse_device_poweron_timer 
-034c 20400597 call p_mouse_dpi_led_blink 
+034c 20400598 call p_mouse_dpi_led_blink 
 034d 2040039d call p_mouse_led_multi_timer 
 034e 2040407c call mouse_dpi_key_check_long_press 
 034f 204044cc call mouse_bt_discovery_check 
@@ -1640,347 +1640,348 @@
 04d7 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
 04d8 245a4121 ncall mouse_check_key_gpio_once ,blank 
 04d9 da200000 arg 0 ,rega 
-04da 204004ee call p_mouse_check_lkey_gpio 
-04db 204004f3 call p_mouse_check_rkey_gpio 
-04dc 204004f8 call p_mouse_check_mkey_gpio 
-04dd 204004fd call p_mouse_check_bkkey_gpio 
-04de 2040050a call p_mouse_check_fwkey_gpio 
+04da 204004ef call p_mouse_check_lkey_gpio 
+04db 204004f4 call p_mouse_check_rkey_gpio 
+04dc 204004f9 call p_mouse_check_mkey_gpio 
+04dd 204004fe call p_mouse_check_bkkey_gpio 
+04de 2040050b call p_mouse_check_fwkey_gpio 
 04df 204004e1 call p_mouse_check_customerkey_gpio 
 04e0 2020411f branch mouse_check_key_gpio_next + 1 
 
 p_mouse_check_customerkey_gpio:
-04e1 6fe0cc80 fetch 1 ,mem_mouse_dpi_key_long_press_flag 
-04e2 c00084e5 beq 1 ,p_mouse_customerkey_press_send_enable 
-04e3 c00004e8 beq 0 ,p_mouse_customerkey_release_send_enable 
-04e4 20600000 rtn 
+04e1 704b8b00 jam 0 ,mem_customer_key 
+04e2 6fe0cc80 fetch 1 ,mem_mouse_dpi_key_long_press_flag 
+04e3 c00084e6 beq 1 ,p_mouse_customerkey_press_send_enable 
+04e4 c00004e9 beq 0 ,p_mouse_customerkey_release_send_enable 
+04e5 20600000 rtn 
 
 p_mouse_customerkey_press_send_enable:
-04e5 704c7f01 jam 1 ,mem_mouse_dpi_key_long_press_state 
-04e6 2040417a call mouse_customerkey_press 
-04e7 20207e54 branch enable_user 
+04e6 704c7f01 jam 1 ,mem_mouse_dpi_key_long_press_state 
+04e7 2040417a call mouse_customerkey_press 
+04e8 20207e54 branch enable_user 
 
 p_mouse_customerkey_release_send_enable:
-04e8 6fe0cc7f fetch 1 ,mem_mouse_dpi_key_long_press_state 
-04e9 207a0000 rtn blank 
-04ea 704c7f00 jam 0 ,mem_mouse_dpi_key_long_press_state 
-04eb 2040417d call mouse_customerkey_release 
-04ec 20404177 call mouse_check_customerkey_gpio_exit 
-04ed 20207e54 branch enable_user 
+04e9 6fe0cc7f fetch 1 ,mem_mouse_dpi_key_long_press_state 
+04ea 207a0000 rtn blank 
+04eb 704c7f00 jam 0 ,mem_mouse_dpi_key_long_press_state 
+04ec 2040417d call mouse_customerkey_release 
+04ed 20404177 call mouse_check_customerkey_gpio_exit 
+04ee 20207e54 branch enable_user 
 
 p_mouse_check_lkey_gpio:
-04ee 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-04ef 20400517 call p_mouse_gpio_config_output_high 
-04f0 20404124 call mouse_check_lkey_gpio 
-04f1 6848c918 fetcht 1 ,mem_lbutton_gpio 
-04f2 20203f56 branch mouse_gpio_config_input_pu 
+04ef 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+04f0 20400518 call p_mouse_gpio_config_output_high 
+04f1 20404124 call mouse_check_lkey_gpio 
+04f2 6848c918 fetcht 1 ,mem_lbutton_gpio 
+04f3 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-04f3 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-04f4 20400517 call p_mouse_gpio_config_output_high 
-04f5 2040412a call mouse_check_rkey_gpio 
-04f6 6848c919 fetcht 1 ,mem_rbutton_gpio 
-04f7 20203f56 branch mouse_gpio_config_input_pu 
+04f4 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+04f5 20400518 call p_mouse_gpio_config_output_high 
+04f6 2040412a call mouse_check_rkey_gpio 
+04f7 6848c919 fetcht 1 ,mem_rbutton_gpio 
+04f8 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-04f8 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-04f9 20400517 call p_mouse_gpio_config_output_high 
-04fa 20404130 call mouse_check_mkey_gpio 
-04fb 6848c91a fetcht 1 ,mem_mbutton_gpio 
-04fc 20203f56 branch mouse_gpio_config_input_pu 
+04f9 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+04fa 20400518 call p_mouse_gpio_config_output_high 
+04fb 20404130 call mouse_check_mkey_gpio 
+04fc 6848c91a fetcht 1 ,mem_mbutton_gpio 
+04fd 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-04fd 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-04fe c17f8000 rtneq gpio_disable 
-04ff 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-0500 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-0501 1fe22600 copy pdata ,regc 
-0502 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0503 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0504 c07f8506 beq gpio_disable ,p_mouse_3io6key_bk_check 
-0505 2020413e branch mouse_check_bkkey_gpio_next 
+04fe 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+04ff c17f8000 rtneq gpio_disable 
+0500 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+0501 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+0502 1fe22600 copy pdata ,regc 
+0503 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0504 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0505 c07f8507 beq gpio_disable ,p_mouse_3io6key_bk_check 
+0506 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-0506 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0507 20400519 call p_mouse_gpio_config_output_low 
-0508 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0509 2020414b branch mouse_3io6key_bk_check 
+0507 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0508 2040051a call p_mouse_gpio_config_output_low 
+0509 6848c90d fetcht 1 ,mem_bk_button_gpio 
+050a 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-050a 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-050b c17f8000 rtneq gpio_disable 
-050c 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-050d 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-050e 1fe22600 copy pdata ,regc 
-050f 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0510 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0511 c07f8513 beq gpio_disable ,p_mouse_3io6key_fw_check 
-0512 20204157 branch mouse_check_fwkey_gpio_next 
+050b 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+050c c17f8000 rtneq gpio_disable 
+050d 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+050e 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+050f 1fe22600 copy pdata ,regc 
+0510 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0511 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0512 c07f8514 beq gpio_disable ,p_mouse_3io6key_fw_check 
+0513 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-0513 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0514 20400519 call p_mouse_gpio_config_output_low 
-0515 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0516 20204164 branch mouse_3io6key_fw_check 
+0514 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+0515 2040051a call p_mouse_gpio_config_output_low 
+0516 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0517 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-0517 d840003f arg gpcfg_output_high ,temp 
-0518 20206093 branch gpio_config_function_int 
+0518 d840003f arg gpcfg_output_high ,temp 
+0519 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-0519 d840003e arg gpcfg_output_low ,temp 
-051a 20206093 branch gpio_config_function_int 
+051a d840003e arg gpcfg_output_low ,temp 
+051b 20206093 branch gpio_config_function_int 
 
 p_mouse_idle:
-051b 20400520 call p_mouse_low_voltage_led_no_enter_lpm 
-051c 20407936 call ui_check_paring_button 
-051d 20400525 call p_mouse_dpi_check 
-051e 20400539 call p_mouse_dpi_another_gpio_check 
-051f 2020464f branch mouse_idle + 4 
+051c 20400521 call p_mouse_low_voltage_led_no_enter_lpm 
+051d 20407936 call ui_check_paring_button 
+051e 20400526 call p_mouse_dpi_check 
+051f 2040053a call p_mouse_dpi_another_gpio_check 
+0520 2020464f branch mouse_idle + 4 
 
 p_mouse_low_voltage_led_no_enter_lpm:
-0520 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0521 c4020000 rtnbit0 mouse_low_voltage_flag 
-0522 6fe0cc52 fetch 1 ,mem_mouse_low_voltage_blink_count 
-0523 203a4997 branch mouse_low_voltage_led_no_enter_lpm_next ,blank 
-0524 20204994 branch mouse_low_voltage_led_no_enter_lpm + 4 
+0521 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0522 c4020000 rtnbit0 mouse_low_voltage_flag 
+0523 6fe0cc52 fetch 1 ,mem_mouse_low_voltage_blink_count 
+0524 203a4997 branch mouse_low_voltage_led_no_enter_lpm_next ,blank 
+0525 20204994 branch mouse_low_voltage_led_no_enter_lpm + 4 
 
 p_mouse_dpi_check:
-0525 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0526 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-0527 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0528 c17f8000 rtneq gpio_disable 
-0529 da200000 arg 0 ,rega 
-052a 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-052b 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-052c 2040052e call p_mouse_dpi_key_check 
-052d 2020402f branch mouse_dpi_check_next 
+0526 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0527 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+0528 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0529 c17f8000 rtneq gpio_disable 
+052a da200000 arg 0 ,rega 
+052b 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+052c 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+052d 2040052f call p_mouse_dpi_key_check 
+052e 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-052e 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-052f c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-0530 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-0531 1fe22600 copy pdata ,regc 
-0532 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0533 c07f8535 beq gpio_disable ,p_mouse_3io6key_dpi_check 
-0534 2020403f branch mouse_dpi_key_check_next 
+052f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0530 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+0531 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+0532 1fe22600 copy pdata ,regc 
+0533 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0534 c07f8536 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+0535 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-0535 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-0536 20400519 call p_mouse_gpio_config_output_low 
-0537 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0538 20204195 branch mouse_3io6key_check 
+0536 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+0537 2040051a call p_mouse_gpio_config_output_low 
+0538 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0539 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_another_gpio_check:
-0539 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-053a c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-053b 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-053c 243a0542 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+053a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+053b c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+053c 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+053d 243a0543 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-053d 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-053e 20400517 call p_mouse_gpio_config_output_high 
-053f 20400553 call p_mouse_dpi_another_check 
-0540 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0541 20203f56 branch mouse_gpio_config_input_pu 
+053e 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+053f 20400518 call p_mouse_gpio_config_output_high 
+0540 20400554 call p_mouse_dpi_another_check 
+0541 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0542 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-0542 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-0543 793ffe07 set0 gpio_active_bit ,pdata 
-0544 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-0545 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-0546 20400519 call p_mouse_gpio_config_output_low 
-0547 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0548 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0549 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-054a 2040056c call p_mouse_check_key_connect_vin_new 
-054b 20400557 call p_mouse_dpi_another_state_check 
-054c 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-054d 20203f56 branch mouse_gpio_config_input_pu 
+0543 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+0544 793ffe07 set0 gpio_active_bit ,pdata 
+0545 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+0546 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+0547 2040051a call p_mouse_gpio_config_output_low 
+0548 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0549 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+054a 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+054b 2040056d call p_mouse_check_key_connect_vin_new 
+054c 20400558 call p_mouse_dpi_another_state_check 
+054d 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+054e 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_down_new:
-054e 20403f56 call mouse_gpio_config_input_pu 
-054f 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0550 c1008000 rtneq dpi_button_state_down 
-0551 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0552 20204069 branch mouse_dpi_process 
+054f 20403f56 call mouse_gpio_config_input_pu 
+0550 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0551 c1008000 rtneq dpi_button_state_down 
+0552 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+0553 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_check:
-0553 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0554 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0555 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0556 20400562 call p_mouse_check_key_connect_gnd_new 
+0554 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0555 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0556 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+0557 20400563 call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-0557 67e0cc3c store 1 ,mem_dpi_another_press_status 
-0558 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-0559 203a055e branch p_mouse_dpi_another_up ,blank 
+0558 67e0cc3c store 1 ,mem_dpi_another_press_status 
+0559 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+055a 203a055f branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-055a 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-055b c1008000 rtneq dpi_button_state_down 
-055c 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-055d 20204069 branch mouse_dpi_process 
+055b 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+055c c1008000 rtneq dpi_button_state_down 
+055d 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+055e 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-055e 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-055f c1000000 rtneq dpi_button_state_up 
-0560 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-0561 20600000 rtn 
+055f 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0560 c1000000 rtneq dpi_button_state_up 
+0561 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+0562 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-0562 1fe3fe00 lshift pdata ,pdata 
-0563 1fe22400 copy pdata ,regb 
-0564 20406059 call gpio_get_bit 
-0565 7920a400 setflag true ,0 ,regb 
-0566 1a417e07 and regb ,0x07 ,pdata 
-0567 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-0568 18420e00 copy temp ,queue 
-0569 c0038577 beq 0x07 ,p_mouse_key_press 
-056a c0000579 beq 0x00 ,p_mouse_key_release 
-056b 20600000 rtn 
+0563 1fe3fe00 lshift pdata ,pdata 
+0564 1fe22400 copy pdata ,regb 
+0565 20406059 call gpio_get_bit 
+0566 7920a400 setflag true ,0 ,regb 
+0567 1a417e07 and regb ,0x07 ,pdata 
+0568 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0569 18420e00 copy temp ,queue 
+056a c0038578 beq 0x07 ,p_mouse_key_press 
+056b c000057a beq 0x00 ,p_mouse_key_release 
+056c 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-056c 1fe3fe00 lshift pdata ,pdata 
-056d 1fe22400 copy pdata ,regb 
-056e 20403f54 call mouse_gpio_config_input_pd 
-056f 20406059 call gpio_get_bit 
-0570 7920a400 setflag true ,0 ,regb 
-0571 1a417e07 and regb ,0x07 ,pdata 
-0572 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-0573 18420e00 copy temp ,queue 
-0574 c0038577 beq 0x07 ,p_mouse_key_press 
-0575 c0000579 beq 0x00 ,p_mouse_key_release 
-0576 20600000 rtn 
+056d 1fe3fe00 lshift pdata ,pdata 
+056e 1fe22400 copy pdata ,regb 
+056f 20403f54 call mouse_gpio_config_input_pd 
+0570 20406059 call gpio_get_bit 
+0571 7920a400 setflag true ,0 ,regb 
+0572 1a417e07 and regb ,0x07 ,pdata 
+0573 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0574 18420e00 copy temp ,queue 
+0575 c0038578 beq 0x07 ,p_mouse_key_press 
+0576 c000057a beq 0x00 ,p_mouse_key_release 
+0577 20600000 rtn 
 
 p_mouse_key_press:
-0577 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-0578 20600000 rtn 
+0578 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+0579 20600000 rtn 
 
 p_mouse_key_release:
-0579 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-057a 20600000 rtn 
+057a 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+057b 20600000 rtn 
 
 p_mouse_dpi_process:
-057b 20404072 call mouse_dpi_ghost_check 
-057c 20740000 rtn user 
-057d 6fe0cc47 fetch 1 ,mem_mouse_multi_led_powon2s_timer 
-057e 247a0000 nrtn blank 
-057f 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0580 1fe20400 copy pdata ,temp 
-0581 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0582 c29e85a7 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-0583 18427e00 copy temp ,pdata 
-0584 1fe0fe01 increase 1 ,pdata 
-0585 1fe17e03 and pdata ,0x03 ,pdata 
+057c 20404072 call mouse_dpi_ghost_check 
+057d 20740000 rtn user 
+057e 6fe0cc47 fetch 1 ,mem_mouse_multi_led_powon2s_timer 
+057f 247a0000 nrtn blank 
+0580 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0581 1fe20400 copy pdata ,temp 
+0582 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0583 c29e85a8 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+0584 18427e00 copy temp ,pdata 
+0585 1fe0fe01 increase 1 ,pdata 
+0586 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-0586 67e0c992 store 1 ,mem_mouse_dpi 
-0587 2040032d call p_mouse_seting_dpi 
-0588 2040058c call p_mouse_dpi_blink_count_init 
-0589 704c5401 jam 1 ,mem_mouse_dpi_led_blink_enable_flag 
-058a 704c5500 jam 0 ,mem_mouse_dpi_count_time 
-058b 20204643 branch mouse_store_eerpom_dpi 
+0587 67e0c992 store 1 ,mem_mouse_dpi 
+0588 2040032d call p_mouse_seting_dpi 
+0589 2040058d call p_mouse_dpi_blink_count_init 
+058a 704c5401 jam 1 ,mem_mouse_dpi_led_blink_enable_flag 
+058b 704c5500 jam 0 ,mem_mouse_dpi_count_time 
+058c 20204643 branch mouse_store_eerpom_dpi 
 
 p_mouse_dpi_blink_count_init:
-058c 6fe0c992 fetch 1 ,mem_mouse_dpi 
-058d c0000593 beq 0 ,p_mouse_dpi_level2 
-058e c0008595 beq 1 ,p_mouse_dpi_level3 
-058f c0010591 beq 2 ,p_mouse_dpi_level1 
-0590 20600000 rtn 
+058d 6fe0c992 fetch 1 ,mem_mouse_dpi 
+058e c0000594 beq 0 ,p_mouse_dpi_level2 
+058f c0008596 beq 1 ,p_mouse_dpi_level3 
+0590 c0010592 beq 2 ,p_mouse_dpi_level1 
+0591 20600000 rtn 
 
 p_mouse_dpi_level1:
-0591 704c5301 jam 1 ,mem_mouse_multi_led_blink_count 
-0592 20600000 rtn 
+0592 704c5301 jam 1 ,mem_mouse_multi_led_blink_count 
+0593 20600000 rtn 
 
 p_mouse_dpi_level2:
-0593 704c5302 jam 2 ,mem_mouse_multi_led_blink_count 
-0594 20600000 rtn 
+0594 704c5302 jam 2 ,mem_mouse_multi_led_blink_count 
+0595 20600000 rtn 
 
 p_mouse_dpi_level3:
-0595 704c5303 jam 3 ,mem_mouse_multi_led_blink_count 
-0596 20600000 rtn 
+0596 704c5303 jam 3 ,mem_mouse_multi_led_blink_count 
+0597 20600000 rtn 
 
 p_mouse_dpi_led_blink:
-0597 6fe0cc54 fetch 1 ,mem_mouse_dpi_led_blink_enable_flag 
-0598 207a0000 rtn blank 
-0599 6fe0cc55 fetch 1 ,mem_mouse_dpi_count_time 
-059a 1fe0fe01 increase 1 ,pdata 
-059b 67e0cc55 store 1 ,mem_mouse_dpi_count_time 
-059c c00183b5 beq 3 ,p_mouse_device_multi_led_on + 1 
-059d c003059f beq 6 ,p_mouse_dpi_led_off 
-059e 20600000 rtn 
+0598 6fe0cc54 fetch 1 ,mem_mouse_dpi_led_blink_enable_flag 
+0599 207a0000 rtn blank 
+059a 6fe0cc55 fetch 1 ,mem_mouse_dpi_count_time 
+059b 1fe0fe01 increase 1 ,pdata 
+059c 67e0cc55 store 1 ,mem_mouse_dpi_count_time 
+059d c00183b5 beq 3 ,p_mouse_device_multi_led_on + 1 
+059e c00305a0 beq 6 ,p_mouse_dpi_led_off 
+059f 20600000 rtn 
 
 p_mouse_dpi_led_off:
-059f 704c5500 jam 0 ,mem_mouse_dpi_count_time 
-05a0 6fe0cc53 fetch 1 ,mem_mouse_multi_led_blink_count 
-05a1 1fe0ffff increase -1 ,pdata 
-05a2 67e0cc53 store 1 ,mem_mouse_multi_led_blink_count 
-05a3 203a05a5 branch p_mouse_dpi_led_disable ,blank 
-05a4 202003c2 branch p_mouse_device_multi_led_off + 1 
+05a0 704c5500 jam 0 ,mem_mouse_dpi_count_time 
+05a1 6fe0cc53 fetch 1 ,mem_mouse_multi_led_blink_count 
+05a2 1fe0ffff increase -1 ,pdata 
+05a3 67e0cc53 store 1 ,mem_mouse_multi_led_blink_count 
+05a4 203a05a6 branch p_mouse_dpi_led_disable ,blank 
+05a5 202003c2 branch p_mouse_device_multi_led_off + 1 
 
 p_mouse_dpi_led_disable:
-05a5 704c5400 jam 0 ,mem_mouse_dpi_led_blink_enable_flag 
-05a6 202003c2 branch p_mouse_device_multi_led_off + 1 
+05a6 704c5400 jam 0 ,mem_mouse_dpi_led_blink_enable_flag 
+05a7 202003c2 branch p_mouse_device_multi_led_off + 1 
 
 p_mouse_double_dpi_check:
-05a7 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-05a8 243a05c4 nbranch p_mouse_another_dpi_button_down ,blank 
+05a8 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+05a9 243a05c5 nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-05a9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05aa c28e05b8 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-05ab 18427e00 copy temp ,pdata 
-05ac c1008000 rtneq mouse_dpi_level2 
+05aa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05ab c28e05b9 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+05ac 18427e00 copy temp ,pdata 
+05ad c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-05ad c00005b4 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-05ae c00105b2 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-05af 20600000 rtn 
+05ae c00005b5 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+05af c00105b3 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+05b0 20600000 rtn 
 
 p_mouse_dpi_level_1:
-05b0 58000002 setarg 2 
-05b1 20200586 branch p_mouse_dpi_store 
+05b1 58000002 setarg 2 
+05b2 20200587 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-05b2 58000000 setarg 0 
-05b3 20200586 branch p_mouse_dpi_store 
+05b3 58000000 setarg 0 
+05b4 20200587 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-05b4 58000001 setarg 1 
-05b5 20200586 branch p_mouse_dpi_store 
+05b5 58000001 setarg 1 
+05b6 20200587 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-05b6 58000003 setarg 3 
-05b7 20200586 branch p_mouse_dpi_store 
+05b7 58000003 setarg 3 
+05b8 20200587 branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-05b8 18427e00 copy temp ,pdata 
-05b9 c1008000 rtneq mouse_dpi_level2 
-05ba c00005b4 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-05bb c00105b6 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-05bc c00185b2 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-05bd 20600000 rtn 
+05b9 18427e00 copy temp ,pdata 
+05ba c1008000 rtneq mouse_dpi_level2 
+05bb c00005b5 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+05bc c00105b7 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+05bd c00185b3 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+05be 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-05be 18427e00 copy temp ,pdata 
-05bf c1010000 rtneq mouse_dpi_level3 
-05c0 c00005b6 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-05c1 c00085b2 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-05c2 c00185b0 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-05c3 20600000 rtn 
+05bf 18427e00 copy temp ,pdata 
+05c0 c1010000 rtneq mouse_dpi_level3 
+05c1 c00005b7 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+05c2 c00085b3 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+05c3 c00185b1 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+05c4 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-05c4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05c5 c28e05be bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-05c6 18427e00 copy temp ,pdata 
-05c7 c1010000 rtneq mouse_dpi_level3 
+05c5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05c6 c28e05bf bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+05c7 18427e00 copy temp ,pdata 
+05c8 c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-05c8 c00005b0 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-05c9 c00085b2 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-05ca 20600000 rtn 
+05c9 c00005b1 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+05ca c00085b3 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+05cb 20600000 rtn 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/mouse_public_xzr_branch/PB_3mode_3ch_PCM8258/program/patch.prog	(revision 4239)
+++ /YC1308AC/branch/mouse_project/XZR/mouse_public_xzr_branch/PB_3mode_3ch_PCM8258/program/patch.prog	(working copy)
@@ -1736,6 +1736,7 @@
 	branch mouse_check_key_gpio_next+1
 
 p_mouse_check_customerkey_gpio:
+	jam 0,mem_customer_key
 	fetch 1,mem_mouse_dpi_key_long_press_flag
 	beq 1,p_mouse_customerkey_press_send_enable
 	beq 0,p_mouse_customerkey_release_send_enable
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/mouse_public_xzr_branch/PB_3mode_3ch_PCM8258/sched/mouse.dat	(revision 4239)
+++ /YC1308AC/branch/mouse_project/XZR/mouse_public_xzr_branch/PB_3mode_3ch_PCM8258/sched/mouse.dat	(working copy)
@@ -164,7 +164,7 @@
 #03 ea 00 00 00 00 00 00 00 #VOL DOWN
 #02 01 00 00 00 00 00 00 00 #POWERDOWN
 #00 05 00 04 00 00 00 00 00#CTRL+ALT+A
-00 08 00 06 00 00 00 00 00#One-click desktop
+00 0a 00 72 00 00 00 00 00#One-click desktop
 
 mem_customer_key_release:
 #03 00 00 00 00 00 00 00 00 #MEDIA RELEASE
