Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/YD08_Standard_2.4G_First/output/eeprom.dat	(revision 869)
+++ /YC1308AC/branch/mouse_project/XZR/YD08_Standard_2.4G_First/output/eeprom.dat	(working copy)
@@ -2,44 +2,40 @@
 02
 aa
 55
-e2
+da
 04
 c2
 84
 00
-10
+0f
 c0
 00
 00
-13
+12
 c0
 45
 80
-33
+32
 c0
 4f
 80
-3e
+3d
 c0
 57
 00
-17
+16
 c0
 62
 00
-19
+18
 c0
 63
 80
-40
-c0
-64
-00
-58
+3f
 c0
 64
 80
-44
+43
 c0
 65
 00
@@ -47,23 +43,23 @@
 c0
 67
 01
-32
+30
 c0
 68
 00
-80
+7e
 c0
 6b
 00
-5a
+58
 c0
 6c
 80
-91
+8f
 c0
 74
 00
-ef
+ed
 20
 20
 13
@@ -71,11 +67,11 @@
 c0
 50
 81
-03
+01
 c0
 60
 01
-0d
+0b
 20
 20
 13
@@ -107,7 +103,7 @@
 20
 40
 00
-2b
+2a
 da
 20
 49
@@ -139,7 +135,7 @@
 c0
 19
 80
-24
+23
 c0
 1a
 3d
@@ -278,6 +274,10 @@
 21
 20
 40
+00
+ea
+20
+40
 42
 e9
 20
@@ -356,14 +356,6 @@
 20
 3e
 44
-20
-40
-00
-ec
-20
-20
-3e
-26
 1a
 62
 7e
@@ -371,23 +363,23 @@
 c0
 1e
 00
-7b
+79
 c0
 02
 00
-74
+72
 c0
 09
 80
-74
+72
 c0
 19
 00
-61
+5f
 c0
 22
 00
-68
+66
 20
 20
 43
@@ -399,7 +391,7 @@
 c0
 00
 80
-65
+63
 70
 4b
 76
@@ -523,7 +515,7 @@
 20
 40
 00
-83
+81
 20
 20
 40
@@ -575,7 +567,7 @@
 20
 3a
 00
-a0
+9e
 67
 e0
 cb
@@ -611,15 +603,15 @@
 20
 40
 00
-9d
+9b
 20
 40
 00
-da
+d8
 20
 40
 00
-b5
+b3
 20
 40
 44
@@ -627,7 +619,7 @@
 20
 40
 00
-c0
+be
 20
 20
 44
@@ -639,7 +631,7 @@
 da
 40
 00
-a0
+9e
 20
 20
 31
@@ -695,11 +687,11 @@
 20
 41
 00
-af
+ad
 24
 41
 00
-b3
+b1
 20
 20
 48
@@ -739,7 +731,7 @@
 c2
 9b
 00
-b9
+b7
 20
 60
 00
@@ -759,7 +751,7 @@
 da
 40
 00
-be
+bc
 20
 20
 31
@@ -771,7 +763,7 @@
 20
 20
 00
-d2
+d0
 6f
 e4
 4b
@@ -807,7 +799,7 @@
 20
 22
 80
-ca
+c8
 20
 20
 44
@@ -815,7 +807,7 @@
 20
 40
 00
-cc
+ca
 20
 20
 44
@@ -827,7 +819,7 @@
 da
 40
 00
-d2
+d0
 20
 40
 31
@@ -895,7 +887,7 @@
 20
 22
 80
-e1
+df
 70
 4b
 e5
@@ -911,7 +903,7 @@
 da
 40
 00
-e4
+e2
 20
 20
 31
@@ -927,7 +919,7 @@
 c0
 00
 80
-ec
+ea
 70
 4b
 e6
@@ -987,7 +979,7 @@
 c0
 04
 80
-f7
+f5
 20
 20
 4d
@@ -1087,7 +1079,7 @@
 c0
 02
 01
-10
+0e
 20
 20
 19
@@ -1103,11 +1095,11 @@
 c0
 05
 01
-15
+13
 c0
 09
 01
-22
+20
 20
 20
 1c
@@ -1127,7 +1119,7 @@
 c2
 81
 81
-1d
+1b
 6f
 e1
 44
@@ -1155,11 +1147,11 @@
 24
 22
 81
-19
+17
 24
 34
 01
-19
+17
 20
 20
 1e
@@ -1252,8 +1244,8 @@
 20
 3f
 75
-3b
-a3
+5d
+e5
 aa
 55
 40
@@ -1285,7 +1277,7 @@
 00
 00
 90
-47
+46
 41
 02
 00
@@ -2437,10 +2429,10 @@
 aa
 aa
 55
-f7
+f6
 5c
-3c
-c2
+32
+83
 ff
 ff
 ff
@@ -8188,5 +8180,13 @@
 ff
 ff
 ff
-4f
-34
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+11
+b8
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/YD08_Standard_2.4G_First/output/program.lis	(revision 869)
+++ /YC1308AC/branch/mouse_project/XZR/YD08_Standard_2.4G_First/output/program.lis	(working copy)
@@ -1,97 +1,97 @@
               include "bt_format "
               org 0x0000
-0000 c2840010 bbit1 8 ,pf_patch_ext 
-0001 c0000013 beq patch00_0 ,p_soft_reset 
-0002 c0458033 beq patch11_3 ,p_initialize_radio_cont 
-0003 c04f803e beq patch13_7 ,p_init_param 
-0004 c0570017 beq patch15_6 ,p_app_init 
-0005 c0620019 beq patch18_4 ,p_mouse_start_reconnect_device 
-0006 c0638040 beq patch18_7 ,p_mouse_app_enter_hibernate 
-0007 c0640058 beq patch19_0 ,p_mouse_before_hibernate 
-0008 c0648044 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0009 c065004f beq patch19_2 ,p_mouse_lpm_before_common 
-000a c0670132 beq patch19_6 ,p_mouse_motion 
-000b c0680080 beq patch1a_0 ,p_mouse_seting_dpi 
-000c c06b005a beq patch1a_6 ,p_mouse_priority_bb_event 
-000d c06c8091 beq patch1b_1 ,p_mouse_bb_event_timer 
-000e c07400ef beq patch1d_0 ,p_hid_rx_process 
-000f 2020137c branch loop 
+0000 c284000f bbit1 8 ,pf_patch_ext 
+0001 c0000012 beq patch00_0 ,p_soft_reset 
+0002 c0458032 beq patch11_3 ,p_initialize_radio_cont 
+0003 c04f803d beq patch13_7 ,p_init_param 
+0004 c0570016 beq patch15_6 ,p_app_init 
+0005 c0620018 beq patch18_4 ,p_mouse_start_reconnect_device 
+0006 c063803f beq patch18_7 ,p_mouse_app_enter_hibernate 
+0007 c0648043 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0008 c065004f beq patch19_2 ,p_mouse_lpm_before_common 
+0009 c0670130 beq patch19_6 ,p_mouse_motion 
+000a c068007e beq patch1a_0 ,p_mouse_seting_dpi 
+000b c06b0058 beq patch1a_6 ,p_mouse_priority_bb_event 
+000c c06c808f beq patch1b_1 ,p_mouse_bb_event_timer 
+000d c07400ed beq patch1d_0 ,p_hid_rx_process 
+000e 2020137c branch loop 
 
 pf_patch_ext:
-0010 c0508103 beq patch34_1 ,p_le_slave_match 
-0011 c060010d beq patch38_0 ,p_le_parse_l2cap 
-0012 2020137c branch loop 
+000f c0508101 beq patch34_1 ,p_le_slave_match 
+0010 c060010b beq patch38_0 ,p_le_parse_l2cap 
+0011 2020137c branch loop 
 
 p_soft_reset:
-0013 20800000 clear_stack 
-0014 204030f3 call app_param_init 
-0015 20403bfd call mouse_xtal_init 
-0016 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:
-0017 20406df3 call enable_authrom 
-0018 20203bc1 branch mouse_init 
+0016 20406df3 call enable_authrom 
+0017 20203bc1 branch mouse_init 
 
 p_mouse_start_reconnect_device:
-0019 2040002b call p_mouse_bt_reconn_led_blink 
-001a da204939 arg mem_device1_type ,rega 
-001b 6fe0c938 fetch 1 ,mem_device_flag 
-001c 1fe0ffff increase -1 ,pdata 
-001d 1feffe1d mul32 pdata ,29 ,pdata 
-001e 9a20a200 iadd rega ,rega 
-001f efe08011 ifetch 1 ,rega 
-0020 67e0c482 store 1 ,mem_xrecord_mode 
-0021 c0198024 beq rec_3_mode ,p_mouse3_0_check_reconn_target 
-0022 c01a3d7b beq rec_4_mode ,mouse4_0_check_reconn_target 
-0023 20204553 branch mouse_start_discovery 
+0018 2040002a call p_mouse_bt_reconn_led_blink 
+0019 da204939 arg mem_device1_type ,rega 
+001a 6fe0c938 fetch 1 ,mem_device_flag 
+001b 1fe0ffff increase -1 ,pdata 
+001c 1feffe1d mul32 pdata ,29 ,pdata 
+001d 9a20a200 iadd rega ,rega 
+001e efe08011 ifetch 1 ,rega 
+001f 67e0c482 store 1 ,mem_xrecord_mode 
+0020 c0198023 beq rec_3_mode ,p_mouse3_0_check_reconn_target 
+0021 c01a3d7b beq rec_4_mode ,mouse4_0_check_reconn_target 
+0022 20204553 branch mouse_start_discovery 
 
 p_mouse3_0_check_reconn_target:
-0024 68494bb8 fetcht 2 ,mem_mouse_fast_page_to 
-0025 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0026 c07fbd73 beq 0xff ,mouse3_0_check_reconn_target_next 
-0027 6848c902 fetcht 1 ,mem_mouse_direct_timeout 
-0028 6048cb77 storet 1 ,mem_mouse_direct_timer 
-0029 68494bb5 fetcht 2 ,mem_mouse_page_to 
-002a 20203d73 branch mouse3_0_check_reconn_target_next 
+0023 68494bb8 fetcht 2 ,mem_mouse_fast_page_to 
+0024 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+0025 c07fbd73 beq 0xff ,mouse3_0_check_reconn_target_next 
+0026 6848c902 fetcht 1 ,mem_mouse_direct_timeout 
+0027 6048cb77 storet 1 ,mem_mouse_direct_timer 
+0028 68494bb5 fetcht 2 ,mem_mouse_page_to 
+0029 20203d73 branch mouse3_0_check_reconn_target_next 
 
 p_mouse_bt_reconn_led_blink:
-002b 2040498e call mouse_low_voltage_led_blink_disable 
-002c 704ba700 jam 0 ,mem_mouse_device_poweron_timer_count 
-002d 6fe14be2 fetch 2 ,mem_mouse_le_reconn_led_blink_time 
-002e 202048ce branch mouse_discover_setting_led_gpio + 2 
+002a 2040498e call mouse_low_voltage_led_blink_disable 
+002b 704ba700 jam 0 ,mem_mouse_device_poweron_timer_count 
+002c 6fe14be2 fetch 2 ,mem_mouse_le_reconn_led_blink_time 
+002d 202048ce branch mouse_discover_setting_led_gpio + 2 
 
 p_lpm_write_ice_disable:
-002f 6ff10120 fetch 2 ,core_ucode_flag 
-0030 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
-0031 67f2004c store 4 ,core_lpm_reg 
-0032 20205caf branch lpm_write2_ctrl_option 
+002e 6ff10120 fetch 2 ,core_ucode_flag 
+002f 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+0030 67f2004c store 4 ,core_lpm_reg 
+0031 20205caf branch lpm_write2_ctrl_option 
 
 p_initialize_radio_cont:
-0033 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0034 2040126a call initialize_syn_afc_cfg1 
-0035 20401271 call initialize_rf_ldo_cfg1 
-0036 20401277 call initialize_rc_cal 
-0037 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-0038 708a0305 jam 5 ,core_clkpll_cfg0 
-0039 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-003a 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-003b 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-003c 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-003d 2020125d branch initialize_radio_cont + 8 
+0032 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0033 2040126a call initialize_syn_afc_cfg1 
+0034 20401271 call initialize_rf_ldo_cfg1 
+0035 20401277 call initialize_rc_cal 
+0036 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0037 708a0305 jam 5 ,core_clkpll_cfg0 
+0038 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0039 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+003a 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+003b 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+003c 2020125d branch initialize_radio_cont + 8 
 
 p_init_param:
-003e 70008000 jam 0 ,mem_lmo_tid2 
-003f 202013b7 branch init_param_next + 1 
+003d 70008000 jam 0 ,mem_lmo_tid2 
+003e 202013b7 branch init_param_next + 1 
 
 p_mouse_app_enter_hibernate:
-0040 58000006 setarg pan_reg_config 
-0041 20405b0d call twspi_read 
-0042 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0043 20203e21 branch mouse_app_enter_hibernate + 1 
+003f 58000006 setarg pan_reg_config 
+0040 20405b0d call twspi_read 
+0041 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+0042 20203e21 branch mouse_app_enter_hibernate + 1 
 
 p_mouse_setgpio_hibernate:
+0043 204000ea call p_mouse_logo_led_off 
 0044 204042e9 call mouse_set_sdio_high 
 0045 20407fdc call clear_wake 
 0046 20404015 call mouse_before_hibernate_wheel_gpio_set 
@@ -115,303 +115,299 @@
 0056 20406093 call gpio_config_function_int 
 0057 20203e44 branch mouse_lpm_before_common_next 
 
-p_mouse_before_hibernate:
-0058 204000ec call p_mouse_logo_led_off 
-0059 20203e26 branch mouse_before_hibernate + 1 
-
 p_mouse_priority_bb_event:
-005a 1a627e00 copy regc ,pdata 
-005b c01e007b beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-005c c0020074 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-005d c0098074 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
-005e c0190061 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-005f c0220068 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-0060 20204336 branch mouse_priority_bb_event + 2 
+0058 1a627e00 copy regc ,pdata 
+0059 c01e0079 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+005a c0020072 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+005b c0098072 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
+005c c019005f beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+005d c0220066 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+005e 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-0061 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0062 c0008065 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-0063 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-0064 20204373 branch mouse_le_ll_enable_start_enc_flag 
+005f 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0060 c0008063 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+0061 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+0062 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-0065 2040436c call mouse_updata_le_param 
-0066 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-0067 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0063 2040436c call mouse_updata_le_param 
+0064 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+0065 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-0068 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-0069 1fe67c0c sub pdata ,le_interval_15ms ,null 
-006a 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-006b 67e14372 store 2 ,mem_le_interval_min 
-006c 67e14374 store 2 ,mem_le_interval_min + 2 
-006d 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-006e 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-006f 98467c00 isub temp ,null 
-0070 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-0071 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-0072 67e0cb8a store 1 ,mem_lpm_mult_init 
-0073 20204386 branch mouse_le_conn_param_lpm_enable 
+0066 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+0067 1fe67c0c sub pdata ,le_interval_15ms ,null 
+0068 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+0069 67e14372 store 2 ,mem_le_interval_min 
+006a 67e14374 store 2 ,mem_le_interval_min + 2 
+006b 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+006c 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+006d 98467c00 isub temp ,null 
+006e 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+006f 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+0070 67e0cb8a store 1 ,mem_lpm_mult_init 
+0071 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_bb_event_reconn_failed:
-0074 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0075 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-0076 6fe1478c fetch 2 ,mem_ui_state_map 
-0077 c3860000 rtnbit1 ui_state_btn_down 
-0078 c3830000 rtnbit1 ui_state_bt_discovery 
-0079 c3858000 rtnbit1 ui_state_ble_adv 
-007a 20203e20 branch mouse_app_enter_hibernate 
+0072 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+0073 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+0074 6fe1478c fetch 2 ,mem_ui_state_map 
+0075 c3860000 rtnbit1 ui_state_btn_down 
+0076 c3830000 rtnbit1 ui_state_bt_discovery 
+0077 c3858000 rtnbit1 ui_state_ble_adv 
+0078 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_24g_attempt_success:
-007b 6fe2483c fetch 4 ,mem_24g_addr 
-007c 67e24891 store 4 ,mem_24g_receiver_addr 
-007d 67e24993 store 4 ,mem_mouse_24g_addr 
-007e 204048c6 call mouse_device_poweron_timer_init 
-007f 2020484e branch mouse_24g_attempt_success 
+0079 6fe2483c fetch 4 ,mem_24g_addr 
+007a 67e24891 store 4 ,mem_24g_receiver_addr 
+007b 67e24993 store 4 ,mem_mouse_24g_addr 
+007c 204048c6 call mouse_device_poweron_timer_init 
+007d 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_seting_dpi:
-0080 2040408f call mouse_setting_dpi_4_level 
-0081 20400083 call p_mouse_dpi_led_blink_delay 
-0082 20204098 branch mouse_seting_sensor_type 
+007e 2040408f call mouse_setting_dpi_4_level 
+007f 20400081 call p_mouse_dpi_led_blink_delay 
+0080 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-0083 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0084 c17f8000 rtneq gpio_disable 
-0085 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+0081 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0082 c17f8000 rtneq gpio_disable 
+0083 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+0084 247a0000 nrtn blank 
+0085 6fe14883 fetch 2 ,mem_24g_pair_timeout 
 0086 247a0000 nrtn blank 
-0087 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+0087 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
 0088 247a0000 nrtn blank 
-0089 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+0089 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
 008a 247a0000 nrtn blank 
-008b 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-008c 247a0000 nrtn blank 
-008d 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-008e 203a00a0 branch p_mouse_dpi_led_blink_init ,blank 
-008f 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-0090 20600000 rtn 
+008b 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+008c 203a009e branch p_mouse_dpi_led_blink_init ,blank 
+008d 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+008e 20600000 rtn 
 
 p_mouse_bb_event_timer:
-0091 20403e9b call mouse_adc_read 
-0092 20404956 call mouse_low_voltage_led_timer 
-0093 2040232b call g24_pair_timeout_timer 
-0094 20402556 call g24_reconn_timeout_timer 
-0095 204047cd call mouse_24g_long_sleep_param_update_timer 
-0096 204048be call mouse_device_poweron_timer 
-0097 2040009d call p_mouse_dpi_led_blink_delay_timer 
-0098 204000da call p_mouse_logo_key_check 
-0099 204000b5 call p_mouse_dpi_key_check_long_press 
-009a 204044cc call mouse_bt_discovery_check 
-009b 204000c0 call p_mouse_commbination_key_process 
-009c 202044c0 branch mouse_bb_event_timer + 11 
+008f 20403e9b call mouse_adc_read 
+0090 20404956 call mouse_low_voltage_led_timer 
+0091 2040232b call g24_pair_timeout_timer 
+0092 20402556 call g24_reconn_timeout_timer 
+0093 204047cd call mouse_24g_long_sleep_param_update_timer 
+0094 204048be call mouse_device_poweron_timer 
+0095 2040009b call p_mouse_dpi_led_blink_delay_timer 
+0096 204000d8 call p_mouse_logo_key_check 
+0097 204000b3 call p_mouse_dpi_key_check_long_press 
+0098 204044cc call mouse_bt_discovery_check 
+0099 204000be call p_mouse_commbination_key_process 
+009a 202044c0 branch mouse_bb_event_timer + 11 
 
 p_mouse_dpi_led_blink_delay_timer:
-009d da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-009e da4000a0 arg p_mouse_dpi_led_blink_init ,regb 
-009f 2020318a branch timer_single_step 
+009b da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+009c da40009e arg p_mouse_dpi_led_blink_init ,regb 
+009d 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00a0 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00a1 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00a2 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00a3 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00a4 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00a5 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00a6 67e14930 store 2 ,mem_mouse_on_time 
-00a7 67e14932 store 2 ,mem_mouse_off_time 
-00a8 da200000 arg 0 ,rega 
-00a9 6848c992 fetcht 1 ,mem_mouse_dpi 
-00aa 18408402 increase 2 ,temp 
-00ab 18467c03 sub temp ,3 ,null 
-00ac 204100af call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00ad 244100b3 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00ae 202048ff branch mouse_dpi_led_blink_init_end 
+009e 6fe0c927 fetch 1 ,mem_config_sensor_type 
+009f c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00a0 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00a1 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00a2 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00a3 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00a4 67e14930 store 2 ,mem_mouse_on_time 
+00a5 67e14932 store 2 ,mem_mouse_off_time 
+00a6 da200000 arg 0 ,rega 
+00a7 6848c992 fetcht 1 ,mem_mouse_dpi 
+00a8 18408402 increase 2 ,temp 
+00a9 18467c03 sub temp ,3 ,null 
+00aa 204100ad call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00ab 244100b1 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00ac 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00af 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00b0 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00b1 18408401 increase 1 ,temp 
-00b2 20600000 rtn 
+00ad 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00ae c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00af 18408401 increase 1 ,temp 
+00b0 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00b3 184085fd increase -3 ,temp 
-00b4 20600000 rtn 
+00b1 184085fd increase -3 ,temp 
+00b2 20600000 rtn 
 
 p_mouse_dpi_key_check_long_press:
-00b5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00b6 c2944080 bbit1 mouse_enable_select_device_by_dpi_button ,mouse_select_device_by_dpi_button 
-00b7 c29b00b9 bbit1 mouse_enable_dpi_key_long_press_disconvery ,p_mouse_discovery_by_dpi_button 
-00b8 20600000 rtn 
+00b3 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00b4 c2944080 bbit1 mouse_enable_select_device_by_dpi_button ,mouse_select_device_by_dpi_button 
+00b5 c29b00b7 bbit1 mouse_enable_dpi_key_long_press_disconvery ,p_mouse_discovery_by_dpi_button 
+00b6 20600000 rtn 
 
 p_mouse_discovery_by_dpi_button:
-00b9 6fe0c9dd fetch 1 ,mem_mouse_dpi_button_state 
-00ba c1808000 rtnne dpi_button_state_down 
-00bb da604b9b arg mem_bt_discovery_count ,regc 
-00bc da4000be arg p_mouse_long_dpi_button_bt_discovery ,regb 
-00bd 2020318a branch timer_single_step 
+00b7 6fe0c9dd fetch 1 ,mem_mouse_dpi_button_state 
+00b8 c1808000 rtnne dpi_button_state_down 
+00b9 da604b9b arg mem_bt_discovery_count ,regc 
+00ba da4000bc arg p_mouse_long_dpi_button_bt_discovery ,regb 
+00bb 2020318a branch timer_single_step 
 
 p_mouse_long_dpi_button_bt_discovery:
-00be 7049de01 jam 1 ,mem_mouse_dpi_long_press_flag 
-00bf 202000d2 branch p_mouse_long_button_bt_discovery 
+00bc 7049de01 jam 1 ,mem_mouse_dpi_long_press_flag 
+00bd 202000d0 branch p_mouse_long_button_bt_discovery 
 
 p_mouse_commbination_key_process:
-00c0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00c1 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-00c2 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-00c3 6048cb9d storet 1 ,mem_mouse_commbination_key 
-00c4 20404115 call mouse_check_key_gpio 
-00c5 1fe17e07 and pdata ,0x07 ,pdata 
-00c6 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-00c7 98467c00 isub temp ,null 
-00c8 202280ca branch p_mouse_commbination_key_down ,zero 
-00c9 202044eb branch mouse_commbination_key_up 
+00be 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00bf c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+00c0 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+00c1 6048cb9d storet 1 ,mem_mouse_commbination_key 
+00c2 20404115 call mouse_check_key_gpio 
+00c3 1fe17e07 and pdata ,0x07 ,pdata 
+00c4 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+00c5 98467c00 isub temp ,null 
+00c6 202280c8 branch p_mouse_commbination_key_down ,zero 
+00c7 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-00ca 204000cc call p_mouse_combination_ui_timer 
-00cb 202044f2 branch mouse_commbination_key_down + 1 
+00c8 204000ca call p_mouse_combination_ui_timer 
+00c9 202044f2 branch mouse_commbination_key_down + 1 
 
 p_mouse_combination_ui_timer:
-00cc da604ba0 arg mem_combination_ui_button_count ,regc 
-00cd da4000d2 arg p_mouse_long_button_bt_discovery ,regb 
-00ce 2040318a call timer_single_step 
-00cf 6fe0cba0 fetch 1 ,mem_combination_ui_button_count 
-00d0 c000c6e2 beq 1 ,mouse_bt_discovery_button_down_enable 
-00d1 20600000 rtn 
+00ca da604ba0 arg mem_combination_ui_button_count ,regc 
+00cb da4000d0 arg p_mouse_long_button_bt_discovery ,regb 
+00cc 2040318a call timer_single_step 
+00cd 6fe0cba0 fetch 1 ,mem_combination_ui_button_count 
+00ce c000c6e2 beq 1 ,mouse_bt_discovery_button_down_enable 
+00cf 20600000 rtn 
 
 p_mouse_long_button_bt_discovery:
-00d2 70493801 jam mode_bt_device1 ,mem_device_flag 
-00d3 704b7700 jam 0 ,mem_mouse_direct_timer 
-00d4 2040423c call mouse_sensor_powerdown 
-00d5 204078f4 call check_51cmd_stop_adv 
-00d6 7041ca00 jam 0 ,mem_link_key_exists 
-00d7 20404316 call mouse_stop_bluetooth_mode 
-00d8 204045ee call mouse_store_device_info_delay 
-00d9 202044d4 branch mouse_long_button_bt_discovery 
+00d0 70493801 jam mode_bt_device1 ,mem_device_flag 
+00d1 704b7700 jam 0 ,mem_mouse_direct_timer 
+00d2 2040423c call mouse_sensor_powerdown 
+00d3 204078f4 call check_51cmd_stop_adv 
+00d4 7041ca00 jam 0 ,mem_link_key_exists 
+00d5 20404316 call mouse_stop_bluetooth_mode 
+00d6 204045ee call mouse_store_device_info_delay 
+00d7 202044d4 branch mouse_long_button_bt_discovery 
 
 p_mouse_logo_key_check:
-00da 20404115 call mouse_check_key_gpio 
-00db 1fe17e07 and pdata ,0x07 ,pdata 
-00dc 6848cbe7 fetcht 1 ,mem_mouse_logo_commbination_key 
-00dd 98467c00 isub temp ,null 
-00de 202280e1 branch p_mouse_logo_key_down ,zero 
+00d8 20404115 call mouse_check_key_gpio 
+00d9 1fe17e07 and pdata ,0x07 ,pdata 
+00da 6848cbe7 fetcht 1 ,mem_mouse_logo_commbination_key 
+00db 98467c00 isub temp ,null 
+00dc 202280df branch p_mouse_logo_key_down ,zero 
 
 p_mouse_logo_key_up:
-00df 704be51e jam 0x1e ,mem_logo_led_check_timer 
-00e0 20600000 rtn 
+00dd 704be51e jam 0x1e ,mem_logo_led_check_timer 
+00de 20600000 rtn 
 
 p_mouse_logo_key_down:
-00e1 da604be5 arg mem_logo_led_check_timer ,regc 
-00e2 da4000e4 arg p_mouse_logo_led_check_timeout ,regb 
-00e3 2020318a branch timer_single_step 
+00df da604be5 arg mem_logo_led_check_timer ,regc 
+00e0 da4000e2 arg p_mouse_logo_led_check_timeout ,regb 
+00e1 2020318a branch timer_single_step 
 
 p_mouse_logo_led_check_timeout:
-00e4 704be51e jam 0x1e ,mem_logo_led_check_timer 
-00e5 6fe0cbe6 fetch 1 ,mem_mouse_logo_led_state 
-00e6 c00080ec beq on ,p_mouse_logo_led_off 
+00e2 704be51e jam 0x1e ,mem_logo_led_check_timer 
+00e3 6fe0cbe6 fetch 1 ,mem_mouse_logo_led_state 
+00e4 c00080ea beq on ,p_mouse_logo_led_off 
 
 p_mouse_logo_led_on:
-00e7 704be601 jam on ,mem_mouse_logo_led_state 
+00e5 704be601 jam on ,mem_mouse_logo_led_state 
+00e6 6848cbe4 fetcht 1 ,mem_mouse_logo_led_gpio 
+00e7 20406069 call gpio_config_output 
 00e8 6848cbe4 fetcht 1 ,mem_mouse_logo_led_gpio 
-00e9 20406069 call gpio_config_output 
-00ea 6848cbe4 fetcht 1 ,mem_mouse_logo_led_gpio 
-00eb 20206065 branch gpio_out_inactive 
+00e9 20206065 branch gpio_out_inactive 
 
 p_mouse_logo_led_off:
-00ec 704be600 jam off ,mem_mouse_logo_led_state 
-00ed 6848cbe4 fetcht 1 ,mem_mouse_logo_led_gpio 
-00ee 20206069 branch gpio_out_active 
+00ea 704be600 jam off ,mem_mouse_logo_led_state 
+00eb 6848cbe4 fetcht 1 ,mem_mouse_logo_led_gpio 
+00ec 20206069 branch gpio_out_active 
 
 p_hid_rx_process:
-00ef 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-00f0 1fe20c00 copy pdata ,contr 
-00f1 efe08006 ifetch 1 ,contr 
-00f2 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-00f3 1fe1040f and pdata ,0x0f ,temp 
-00f4 1ff1fe00 rshift4 pdata ,pdata 
-00f5 c00480f7 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-00f6 20204d93 branch hid_rx_process + 7 
+00ed 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+00ee 1fe20c00 copy pdata ,contr 
+00ef efe08006 ifetch 1 ,contr 
+00f0 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+00f1 1fe1040f and pdata ,0x0f ,temp 
+00f2 1ff1fe00 rshift4 pdata ,pdata 
+00f3 c00480f5 beq hid_type_set_idle ,p_hid_rx_process_handshake 
+00f4 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-00f7 da200001 arg 1 ,rega 
-00f8 20404dc0 call hid_malloc_tx_buff 
-00f9 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-00fa e7e10005 istore 2 ,contw 
-00fb 58000000 setarg 0 
-00fc e7e08005 istore 1 ,contw 
-00fd 70095001 jam 1 ,mem_ui_data_txbuff_length 
-00fe 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-00ff 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-0100 67e0c4e2 store 1 ,mem_hid_control_state 
-0101 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-0102 20207871 branch ui_ipc_send_event 
+00f5 da200001 arg 1 ,rega 
+00f6 20404dc0 call hid_malloc_tx_buff 
+00f7 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+00f8 e7e10005 istore 2 ,contw 
+00f9 58000000 setarg 0 
+00fa e7e08005 istore 1 ,contw 
+00fb 70095001 jam 1 ,mem_ui_data_txbuff_length 
+00fc 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+00fd 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+00fe 67e0c4e2 store 1 ,mem_hid_control_state 
+00ff 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0100 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-0103 6fe0c3dd fetch 1 ,mem_le_md_count 
-0104 1fe0fe01 pincrease 1 
-0105 67e0c3dd store 1 ,mem_le_md_count 
-0106 c006165a beq le_md_max_count ,le_slave_cont 
-0107 2040191b call le_acknowledge 
-0108 2040196a call le_prepare_tx 
-0109 6fe082bd fetch 1 ,mem_le_tx_phy 
-010a 2040168b call le_enable_phy_by_pdata 
-010b 20401838 call le_transmit 
-010c 20201655 branch le_slave_match + 10 
+0101 6fe0c3dd fetch 1 ,mem_le_md_count 
+0102 1fe0fe01 pincrease 1 
+0103 67e0c3dd store 1 ,mem_le_md_count 
+0104 c006165a beq le_md_max_count ,le_slave_cont 
+0105 2040191b call le_acknowledge 
+0106 2040196a call le_prepare_tx 
+0107 6fe082bd fetch 1 ,mem_le_tx_phy 
+0108 2040168b call le_enable_phy_by_pdata 
+0109 20401838 call le_transmit 
+010a 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-010d efe10006 ifetch 2 ,contr 
-010e c0020110 beq le_l2cap_cid_att ,p_le_parse_att 
-010f 202019e4 branch le_parse_l2cap2 + 3 
+010b efe10006 ifetch 2 ,contr 
+010c c002010e beq le_l2cap_cid_att ,p_le_parse_att 
+010d 202019e4 branch le_parse_l2cap2 + 3 
 
 p_le_parse_att:
-0110 efe18006 ifetch 3 ,contr 
-0111 67e1c436 store 3 ,mem_le_att_opcode 
-0112 c0050115 beq attop_read_request ,p_le_parse_att_read_request 
-0113 c0090122 beq attop_write_request ,p_le_parse_att_write_request 
-0114 20201cd3 branch le_parse_att + 2 
+010e efe18006 ifetch 3 ,contr 
+010f 67e1c436 store 3 ,mem_le_att_opcode 
+0110 c0050113 beq attop_read_request ,p_le_parse_att_read_request 
+0111 c0090120 beq attop_write_request ,p_le_parse_att_write_request 
+0112 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_read_request:
-0115 20401e8d call le_check_encrypt_state 
-0116 68494437 fetcht 2 ,mem_le_att_handle 
-0117 6fe0c3c0 fetch 1 ,mem_le_configuration 
-0118 c281811d bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+0113 20401e8d call le_check_encrypt_state 
+0114 68494437 fetcht 2 ,mem_le_att_handle 
+0115 6fe0c3c0 fetch 1 ,mem_le_configuration 
+0116 c281811b bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-0119 6fe14437 fetch 2 ,mem_le_att_handle 
-011a c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
-011b 68494437 fetcht 2 ,mem_le_att_handle 
-011c 20201deb branch le_send_att_read_response 
+0117 6fe14437 fetch 2 ,mem_le_att_handle 
+0118 c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
+0119 68494437 fetcht 2 ,mem_le_att_handle 
+011a 20201deb branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-011d 6fe143d1 fetch 2 ,mem_le_pairing_handle 
-011e 98467c00 isub temp ,null 
-011f 24228119 nbranch p_le_send_att_read_response ,zero 
-0120 24340119 nbranch p_le_send_att_read_response ,user 
-0121 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+011b 6fe143d1 fetch 2 ,mem_le_pairing_handle 
+011c 98467c00 isub temp ,null 
+011d 24228117 nbranch p_le_send_att_read_response ,zero 
+011e 24340117 nbranch p_le_send_att_read_response ,user 
+011f 20201e10 branch le_send_att_read_response_error_insufficient_auth 
 
 p_le_parse_att_write_request:
-0122 18c22200 copy contr ,rega 
-0123 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0124 1fe0a5fd add pdata ,-3 ,regb 
-0125 20401a25 call le_writeatt_cb 
-0126 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0127 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-0128 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0129 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-012a 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-012b c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-012c 5800001a setarg 0x001a 
-012d 68494437 fetcht 2 ,mem_le_att_handle 
-012e 98467c00 isub temp ,null 
-012f 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-0130 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-0131 20201ec9 branch le_send_att_error_response 
+0120 18c22200 copy contr ,rega 
+0121 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+0122 1fe0a5fd add pdata ,-3 ,regb 
+0123 20401a25 call le_writeatt_cb 
+0124 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+0125 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+0126 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0127 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+0128 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0129 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+012a 5800001a setarg 0x001a 
+012b 68494437 fetcht 2 ,mem_le_att_handle 
+012c 98467c00 isub temp ,null 
+012d 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+012e 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+012f 20201ec9 branch le_send_att_error_response 
 
 p_mouse_motion:
-0132 78547c00 disable user 
-0133 58000000 setarg 0 
-0134 67e348d1 store 6 ,mem_mouse_x 
-0135 20404240 call mouse_check_sensor_data 
-0136 2040408e call mouse_dpi_config 
-0137 20203f75 branch mouse_motion + 5 
+0130 78547c00 disable user 
+0131 58000000 setarg 0 
+0132 67e348d1 store 6 ,mem_mouse_x 
+0133 20404240 call mouse_check_sensor_data 
+0134 2040408e call mouse_dpi_config 
+0135 20203f75 branch mouse_motion + 5 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/YD08_Standard_2.4G_First/program/patch.prog	(revision 869)
+++ /YC1308AC/branch/mouse_project/XZR/YD08_Standard_2.4G_First/program/patch.prog	(working copy)
@@ -6,7 +6,6 @@
 	beq patch15_6,p_app_init
 	beq patch18_4,p_mouse_start_reconnect_device
 	beq patch18_7,p_mouse_app_enter_hibernate
-	beq patch19_0,p_mouse_before_hibernate
 	beq patch19_1,p_mouse_setgpio_hibernate
 	beq patch19_2,p_mouse_lpm_before_common
 	beq patch19_6,p_mouse_motion
@@ -98,6 +97,7 @@
 
 
 p_mouse_setgpio_hibernate:
+	call p_mouse_logo_led_off
 	call mouse_set_sdio_high
 	call clear_wake
 	call mouse_before_hibernate_wheel_gpio_set
@@ -122,9 +122,6 @@
 	arg gpcfg_output_high,temp
  	call gpio_config_function_int
 	branch mouse_lpm_before_common_next
-p_mouse_before_hibernate:
-	call p_mouse_logo_led_off
-	branch mouse_before_hibernate+1
 
 p_mouse_priority_bb_event:
 	copy regc,pdata
