Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/Standard_ABD_Normal/output/eeprom.dat	(revision 534)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/Standard_ABD_Normal/output/eeprom.dat	(working copy)
@@ -2,56 +2,60 @@
 02
 aa
 55
-22
+76
 06
 c2
 84
 00
-0d
+0e
 c0
 00
 00
-11
+12
 c0
 45
 80
-60
+61
 c0
 4f
 80
-6b
+6c
 c0
 57
 00
-15
+16
 c0
 61
 81
-55
+56
 c0
 64
 80
-6d
+6e
 c0
 65
 00
-7c
+7d
 c0
 68
 00
-e0
+e1
 c0
 6b
 00
-95
+96
 c0
 6c
 80
-f1
+f2
 c0
 6d
 01
-42
+43
+c0
+74
+01
+89
 20
 20
 13
@@ -59,15 +63,15 @@
 c0
 10
 81
-49
+4a
 c0
 50
 81
-4b
+4c
 c0
 60
 01
-5a
+5b
 20
 20
 13
@@ -95,15 +99,15 @@
 20
 40
 00
-1a
+1b
 20
 40
 00
-26
+27
 20
 40
 00
-22
+23
 20
 20
 3b
@@ -187,7 +191,7 @@
 20
 40
 00
-4c
+4d
 68
 48
 c9
@@ -199,7 +203,7 @@
 20
 40
 00
-5c
+5d
 20
 40
 1b
@@ -223,7 +227,7 @@
 c2
 89
 80
-39
+3a
 c2
 89
 45
@@ -259,7 +263,7 @@
 20
 20
 00
-40
+41
 6f
 e1
 49
@@ -459,7 +463,7 @@
 c0
 7f
 80
-76
+77
 68
 48
 c9
@@ -607,39 +611,39 @@
 c0
 0a
 00
-a0
+a1
 c0
 00
 80
-a7
+a8
 c0
 0a
 80
-aa
+ab
 c0
 01
 00
-ac
+ad
 c0
 1d
 00
-c4
+c5
 c0
 1e
 00
-bc
+bd
 c0
 02
 00
-b5
+b6
 c0
 09
 80
-b5
+b6
 c0
 19
 00
-ae
+af
 20
 20
 43
@@ -707,7 +711,7 @@
 c0
 00
 80
-b2
+b3
 70
 4b
 76
@@ -807,19 +811,19 @@
 c0
 02
 00
-cb
+cc
 c0
 01
 80
-ce
+cf
 20
 20
 00
-d3
+d4
 20
 40
 01
-28
+29
 20
 40
 47
@@ -835,11 +839,11 @@
 c3
 17
 80
-d3
+d4
 c2
 89
 80
-d3
+d4
 c2
 89
 48
@@ -879,7 +883,7 @@
 20
 22
 80
-de
+df
 6f
 e0
 c9
@@ -907,7 +911,7 @@
 20
 40
 00
-e3
+e4
 20
 20
 40
@@ -959,7 +963,7 @@
 20
 3a
 01
-02
+03
 67
 e0
 cb
@@ -991,11 +995,11 @@
 20
 40
 01
-17
+18
 20
 40
+01
 00
-ff
 20
 40
 40
@@ -1007,7 +1011,7 @@
 20
 40
 01
-2d
+2e
 20
 40
 44
@@ -1031,7 +1035,7 @@
 da
 40
 01
-02
+03
 20
 20
 31
@@ -1087,11 +1091,11 @@
 20
 41
 01
-11
+12
 24
 41
 01
-15
+16
 20
 20
 48
@@ -1147,7 +1151,7 @@
 20
 3a
 01
-1f
+20
 20
 20
 49
@@ -1183,7 +1187,7 @@
 c0
 ff
 81
-28
+29
 20
 20
 48
@@ -1215,7 +1219,7 @@
 c0
 00
 01
-33
+34
 6f
 e4
 4b
@@ -1231,7 +1235,7 @@
 20
 20
 01
-36
+37
 6f
 e4
 4b
@@ -1267,7 +1271,7 @@
 20
 22
 81
-3d
+3e
 20
 20
 44
@@ -1395,7 +1399,7 @@
 c0
 02
 01
-5d
+5e
 20
 20
 19
@@ -1407,7 +1411,7 @@
 20
 40
 01
-73
+74
 20
 40
 7c
@@ -1423,11 +1427,11 @@
 c0
 05
 01
-65
+66
 c0
 09
 01
-7a
+7b
 20
 20
 1c
@@ -1447,7 +1451,7 @@
 c2
 81
 81
-6d
+6e
 6f
 e1
 44
@@ -1475,7 +1479,7 @@
 24
 22
 81
-69
+6a
 20
 40
 1e
@@ -1483,7 +1487,7 @@
 24
 34
 01
-69
+6a
 20
 20
 1e
@@ -1573,7 +1577,87 @@
 1e
 c9
 6f
-6e
+e1
+03
+15
+1f
+e2
+0c
+00
+ef
+e0
+80
+06
+67
+e0
+c5
+f5
+1f
+e1
+04
+0f
+1f
+f1
+fe
+00
+c0
+04
+81
+91
+20
+20
+4d
+93
+da
+20
+00
+01
+20
+40
+4d
+c0
+6f
+e1
+44
+dc
+e7
+e1
+00
+05
+58
+00
+00
+00
+e7
+e0
+80
+05
+70
+09
+50
+01
+6f
+e0
+c4
+e2
+79
+20
+7e
+06
+67
+e0
+c4
+e2
+70
+09
+5b
+12
+20
+20
+78
+71
+a0
+db
 aa
 55
 40
@@ -1609,7 +1693,7 @@
 41
 06
 00
-00
+01
 00
 00
 00
@@ -2760,92 +2844,8 @@
 ff
 ff
 ff
-4c
-1a
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+9b
+54
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-77
-00
+24
+60
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/Standard_ABD_Normal/output/program.lis	(revision 534)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/Standard_ABD_Normal/output/program.lis	(working copy)
@@ -1,507 +1,532 @@
               include "bt_format "
               org 0x0000
-0000 c284000d bbit1 8 ,pf_patch_ext 
-0001 c0000011 beq patch00_0 ,p_soft_reset 
-0002 c0458060 beq patch11_3 ,p_initialize_radio_cont 
-0003 c04f806b beq patch13_7 ,p_init_param 
-0004 c0570015 beq patch15_6 ,p_app_init 
-0005 c0618155 beq patch18_3 ,p_mouse_start_work 
-0006 c064806d beq patch19_1 ,p_mouse_setgpio_hibernate 
-0007 c065007c beq patch19_2 ,p_mouse_lpm_before_common 
-0008 c06800e0 beq patch1a_0 ,p_mouse_seting_dpi 
-0009 c06b0095 beq patch1a_6 ,p_mouse_priority_bb_event 
-000a c06c80f1 beq patch1b_1 ,p_mouse_bb_event_timer 
-000b c06d0142 beq patch1b_2 ,p_mouse_start_discovery 
-000c 2020137c branch loop 
+0000 c284000e bbit1 8 ,pf_patch_ext 
+0001 c0000012 beq patch00_0 ,p_soft_reset 
+0002 c0458061 beq patch11_3 ,p_initialize_radio_cont 
+0003 c04f806c beq patch13_7 ,p_init_param 
+0004 c0570016 beq patch15_6 ,p_app_init 
+0005 c0618156 beq patch18_3 ,p_mouse_start_work 
+0006 c064806e beq patch19_1 ,p_mouse_setgpio_hibernate 
+0007 c065007d beq patch19_2 ,p_mouse_lpm_before_common 
+0008 c06800e1 beq patch1a_0 ,p_mouse_seting_dpi 
+0009 c06b0096 beq patch1a_6 ,p_mouse_priority_bb_event 
+000a c06c80f2 beq patch1b_1 ,p_mouse_bb_event_timer 
+000b c06d0143 beq patch1b_2 ,p_mouse_start_discovery 
+000c c0740189 beq patch1d_0 ,p_hid_rx_process 
+000d 2020137c branch loop 
 
 pf_patch_ext:
-000d c0108149 beq patch24_1 ,p_spid_init 
-000e c050814b beq patch34_1 ,p_le_slave_match 
-000f c060015a beq patch38_0 ,p_le_parse_l2cap 
-0010 2020137c branch loop 
+000e c010814a beq patch24_1 ,p_spid_init 
+000f c050814c beq patch34_1 ,p_le_slave_match 
+0010 c060015b beq patch38_0 ,p_le_parse_l2cap 
+0011 2020137c branch loop 
 
 p_soft_reset:
-0011 20800000 clear_stack 
-0012 204030f3 call app_param_init 
-0013 20403bfd call mouse_xtal_init 
-0014 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:
-0015 20406df3 call enable_authrom 
-0016 2040001a call p_mouse_wheel_set_wakeup 
-0017 20400026 call p_mouse_setting_config 
-0018 20400022 call p_lpm_write_ice_disable 
-0019 20203bc2 branch mouse_init + 1 
+0016 20406df3 call enable_authrom 
+0017 2040001b call p_mouse_wheel_set_wakeup 
+0018 20400027 call p_mouse_setting_config 
+0019 20400023 call p_lpm_write_ice_disable 
+001a 20203bc2 branch mouse_init + 1 
 
 p_mouse_wheel_set_wakeup:
-001a 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-001b 207a0000 rtn blank 
-001c 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-001d d8400040 arg gpcfg_pullup ,temp 
-001e 20406093 call gpio_config_function_int 
-001f 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
-0020 d8400040 arg gpcfg_pullup ,temp 
-0021 20206093 branch gpio_config_function_int 
+001b 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+001c 207a0000 rtn blank 
+001d 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
+001e d8400040 arg gpcfg_pullup ,temp 
+001f 20406093 call gpio_config_function_int 
+0020 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+0021 d8400040 arg gpcfg_pullup ,temp 
+0022 20206093 branch gpio_config_function_int 
 
 p_lpm_write_ice_disable:
-0022 6ff10120 fetch 2 ,core_ucode_flag 
-0023 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
-0024 67f2004c store 4 ,core_lpm_reg 
-0025 20205caf branch lpm_write2_ctrl_option 
+0023 6ff10120 fetch 2 ,core_ucode_flag 
+0024 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+0025 67f2004c store 4 ,core_lpm_reg 
+0026 20205caf branch lpm_write2_ctrl_option 
 
 p_mouse_setting_config:
-0026 20758000 rtn wake 
-0027 20402607 call g24_transmit_init 
-0028 204022ff call g24_chmap_param_init 
-0029 20403f1e call mouse_gpio_init 
-002a 20403d13 call mouse_param_init 
-002b 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-002c 20403f56 call mouse_gpio_config_input_pu 
-002d 2040004c call p_mouse_sensor_set_angle 
-002e 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-002f 20406050 call gpio_config_input 
-0030 2040005c call p_ice_gpio_set_float 
-0031 20401b16 call le_set_config_fixed_ltk 
-0032 20401b3f call le_set_justwork 
-0033 20401b32 call le_set_fixed_ltk 
-0034 20401b1e call le_set_config_read_authentication 
-0035 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0036 c2898039 bbit1 mouse_enable_eeprom ,p_mouse_load_eeprom_info_check 
-0037 c28945f6 bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
-0038 20600000 rtn 
+0027 20758000 rtn wake 
+0028 20402607 call g24_transmit_init 
+0029 204022ff call g24_chmap_param_init 
+002a 20403f1e call mouse_gpio_init 
+002b 20403d13 call mouse_param_init 
+002c 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+002d 20403f56 call mouse_gpio_config_input_pu 
+002e 2040004d call p_mouse_sensor_set_angle 
+002f 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0030 20406050 call gpio_config_input 
+0031 2040005d call p_ice_gpio_set_float 
+0032 20401b16 call le_set_config_fixed_ltk 
+0033 20401b3f call le_set_justwork 
+0034 20401b32 call le_set_fixed_ltk 
+0035 20401b1e call le_set_config_read_authentication 
+0036 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0037 c289803a bbit1 mouse_enable_eeprom ,p_mouse_load_eeprom_info_check 
+0038 c28945f6 bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
+0039 20600000 rtn 
 
 p_mouse_load_eeprom_info_check:
-0039 20405dd8 call iicd_wp_gpio_output_low 
-003a 20405d9f call iicd_init_pin_scl_sda 
-003b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-003c 2feffe09 isolate1 mouse_enable_2k_eeprom ,pdata 
-003d 2440ddbf ncall clear_eeprom_size_2k ,true 
-003e 2040463b call mouse_eeprom_load_recon_info 
-003f 20200040 branch p_mouse_app_initflag_check 
+003a 20405dd8 call iicd_wp_gpio_output_low 
+003b 20405d9f call iicd_init_pin_scl_sda 
+003c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+003d 2feffe09 isolate1 mouse_enable_2k_eeprom ,pdata 
+003e 2440ddbf ncall clear_eeprom_size_2k ,true 
+003f 2040463b call mouse_eeprom_load_recon_info 
+0040 20200041 branch p_mouse_app_initflag_check 
 
 p_mouse_app_initflag_check:
-0040 6fe14990 fetch 2 ,mem_store_flag 
-0041 d840aa55 arg eeprom_init_flag ,temp 
-0042 98467c00 isub temp ,null 
-0043 2022c5e2 branch mouse_load_device_info ,zero 
-0044 60494990 storet 2 ,mem_store_flag 
-0045 204045e7 call mouse_ble_init_address 
-0046 6fe0c926 fetch 1 ,mem_config_sensor_dpi 
-0047 67e0c992 store 1 ,mem_mouse_dpi 
-0048 6fe2488d fetch 4 ,mem_24g_fast_conn_addr 
-0049 67e24891 store 4 ,mem_24g_receiver_addr 
-004a 67e2483c store 4 ,mem_24g_addr 
-004b 20600000 rtn 
+0041 6fe14990 fetch 2 ,mem_store_flag 
+0042 d840aa55 arg eeprom_init_flag ,temp 
+0043 98467c00 isub temp ,null 
+0044 2022c5e2 branch mouse_load_device_info ,zero 
+0045 60494990 storet 2 ,mem_store_flag 
+0046 204045e7 call mouse_ble_init_address 
+0047 6fe0c926 fetch 1 ,mem_config_sensor_dpi 
+0048 67e0c992 store 1 ,mem_mouse_dpi 
+0049 6fe2488d fetch 4 ,mem_24g_fast_conn_addr 
+004a 67e24891 store 4 ,mem_24g_receiver_addr 
+004b 67e2483c store 4 ,mem_24g_addr 
+004c 20600000 rtn 
 
 p_mouse_sensor_set_angle:
-004c 6fe0c924 fetch 1 ,mem_sensor_angle_default 
-004d 67e0c928 store 1 ,mem_config_sensor_angle 
-004e 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-004f c17f8000 rtneq gpio_disable 
-0050 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0051 d840003e arg gpcfg_output_low ,temp 
-0052 20406093 call gpio_config_function_int 
-0053 6fe0cbea fetch 1 ,mem_mouse_reuse_2ice_gpio 
-0054 d840003e arg gpcfg_output_low ,temp 
-0055 20406093 call gpio_config_function_int 
-0056 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0057 20403f56 call mouse_gpio_config_input_pu 
-0058 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0059 20406059 call gpio_get_bit 
-005a 2440c2aa ncall mouse_sensor_switch_angle ,true 
-005b 20203f54 branch mouse_gpio_config_input_pd 
+004d 6fe0c924 fetch 1 ,mem_sensor_angle_default 
+004e 67e0c928 store 1 ,mem_config_sensor_angle 
+004f 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0050 c17f8000 rtneq gpio_disable 
+0051 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0052 d840003e arg gpcfg_output_low ,temp 
+0053 20406093 call gpio_config_function_int 
+0054 6fe0cbea fetch 1 ,mem_mouse_reuse_2ice_gpio 
+0055 d840003e arg gpcfg_output_low ,temp 
+0056 20406093 call gpio_config_function_int 
+0057 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0058 20403f56 call mouse_gpio_config_input_pu 
+0059 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+005a 20406059 call gpio_get_bit 
+005b 2440c2aa ncall mouse_sensor_switch_angle ,true 
+005c 20203f54 branch mouse_gpio_config_input_pd 
 
 p_ice_gpio_set_float:
-005c 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-005d 2040607f call gpio_set_high_impedance 
-005e 6848cbea fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-005f 2020607f branch gpio_set_high_impedance 
+005d 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+005e 2040607f call gpio_set_high_impedance 
+005f 6848cbea fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0060 2020607f branch gpio_set_high_impedance 
 
 p_initialize_radio_cont:
-0060 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0061 2040126a call initialize_syn_afc_cfg1 
-0062 20401271 call initialize_rf_ldo_cfg1 
-0063 20401277 call initialize_rc_cal 
-0064 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-0065 708a0305 jam 5 ,core_clkpll_cfg0 
-0066 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-0067 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-0068 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-0069 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-006a 2020125d branch initialize_radio_cont + 8 
+0061 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0062 2040126a call initialize_syn_afc_cfg1 
+0063 20401271 call initialize_rf_ldo_cfg1 
+0064 20401277 call initialize_rc_cal 
+0065 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0066 708a0305 jam 5 ,core_clkpll_cfg0 
+0067 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0068 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0069 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+006a 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+006b 2020125d branch initialize_radio_cont + 8 
 
 p_init_param:
-006b 70008000 jam 0 ,mem_lmo_tid2 
-006c 202013b7 branch init_param_next + 1 
+006c 70008000 jam 0 ,mem_lmo_tid2 
+006d 202013b7 branch init_param_next + 1 
 
 p_mouse_setgpio_hibernate:
-006d 204042e9 call mouse_set_sdio_high 
-006e 20407fdc call clear_wake 
-006f 20404015 call mouse_before_hibernate_wheel_gpio_set 
-0070 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0071 c07f8076 beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
-0072 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0073 20406069 call gpio_out_active 
-0074 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0075 20406042 call gpio_clr_wake 
+006e 204042e9 call mouse_set_sdio_high 
+006f 20407fdc call clear_wake 
+0070 20404015 call mouse_before_hibernate_wheel_gpio_set 
+0071 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0072 c07f8077 beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
+0073 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0074 20406069 call gpio_out_active 
+0075 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0076 20406042 call gpio_clr_wake 
 
 p_mouse_setgpio_hibernate_skip_public_gpio:
-0076 6848cbea fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-0077 20403f56 call mouse_gpio_config_input_pu 
-0078 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0079 d840003f arg gpcfg_output_high ,temp 
-007a 20406093 call gpio_config_function_int 
-007b 20203e36 branch mouse_setgpio_hibernate + 3 
+0077 6848cbea fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0078 20403f56 call mouse_gpio_config_input_pu 
+0079 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+007a d840003f arg gpcfg_output_high ,temp 
+007b 20406093 call gpio_config_function_int 
+007c 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-007c 20403f88 call mouse_wheel_check 
-007d 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-007e d840003f arg gpcfg_output_high ,temp 
-007f 20406093 call gpio_config_function_int 
-0080 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
-0081 793ffe03 set0 3 ,pdata 
-0082 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
-0083 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0084 20406042 call gpio_clr_wake 
-0085 6848c912 fetcht 1 ,mem_customer_key_gpio 
-0086 20406042 call gpio_clr_wake 
-0087 20405b04 call twspi_disable 
-0088 6848c918 fetcht 1 ,mem_lbutton_gpio 
-0089 20406036 call gpio_set_wake 
-008a 6848c919 fetcht 1 ,mem_rbutton_gpio 
-008b 20406036 call gpio_set_wake 
-008c 6848c91a fetcht 1 ,mem_mbutton_gpio 
-008d 20406036 call gpio_set_wake 
-008e 6848c90d fetcht 1 ,mem_bk_button_gpio 
-008f 20406036 call gpio_set_wake 
-0090 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0091 20406036 call gpio_set_wake 
-0092 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0093 20406036 call gpio_set_wake 
-0094 20203e55 branch mouse_lpm_before_common_next2 
+007d 20403f88 call mouse_wheel_check 
+007e 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+007f d840003f arg gpcfg_output_high ,temp 
+0080 20406093 call gpio_config_function_int 
+0081 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
+0082 793ffe03 set0 3 ,pdata 
+0083 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
+0084 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0085 20406042 call gpio_clr_wake 
+0086 6848c912 fetcht 1 ,mem_customer_key_gpio 
+0087 20406042 call gpio_clr_wake 
+0088 20405b04 call twspi_disable 
+0089 6848c918 fetcht 1 ,mem_lbutton_gpio 
+008a 20406036 call gpio_set_wake 
+008b 6848c919 fetcht 1 ,mem_rbutton_gpio 
+008c 20406036 call gpio_set_wake 
+008d 6848c91a fetcht 1 ,mem_mbutton_gpio 
+008e 20406036 call gpio_set_wake 
+008f 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0090 20406036 call gpio_set_wake 
+0091 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0092 20406036 call gpio_set_wake 
+0093 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+0094 20406036 call gpio_set_wake 
+0095 20203e55 branch mouse_lpm_before_common_next2 
 
 p_mouse_priority_bb_event:
-0095 1a627e00 copy regc ,pdata 
-0096 c00a00a0 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
-0097 c00080a7 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
-0098 c00a80aa beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-0099 c00100ac beq bt_evt_bb_disconnected ,p_mouse_bb_disconnected 
-009a c01d00c4 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-009b c01e00bc beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-009c c00200b5 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-009d c00980b5 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
-009e c01900ae beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-009f 20204336 branch mouse_priority_bb_event + 2 
+0096 1a627e00 copy regc ,pdata 
+0097 c00a00a1 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
+0098 c00080a8 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
+0099 c00a80ab beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+009a c00100ad beq bt_evt_bb_disconnected ,p_mouse_bb_disconnected 
+009b c01d00c5 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+009c c01e00bd beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+009d c00200b6 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+009e c00980b6 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
+009f c01900af beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+00a0 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_bb_event_connected:
-00a0 704aae00 jam 0 ,mem_mouse_long_mult_flag 
-00a1 204042ca call mouse_init_sensor_reset 
-00a2 704ac601 jam 1 ,mem_mouse_le_bb_connected_flag 
-00a3 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-00a4 243a4357 nbranch mouse_le_bb_event_connected_next ,blank 
-00a5 704ac814 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
-00a6 20204357 branch mouse_le_bb_event_connected_next 
+00a1 704aae00 jam 0 ,mem_mouse_long_mult_flag 
+00a2 204042ca call mouse_init_sensor_reset 
+00a3 704ac601 jam 1 ,mem_mouse_le_bb_connected_flag 
+00a4 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+00a5 243a4357 nbranch mouse_le_bb_event_connected_next ,blank 
+00a6 704ac814 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
+00a7 20204357 branch mouse_le_bb_event_connected_next 
 
 p_mouse_bb_event_connected:
-00a7 704aae00 jam 0 ,mem_mouse_long_mult_flag 
-00a8 204042ca call mouse_init_sensor_reset 
-00a9 20204576 branch mouse_stop_discovery 
+00a8 704aae00 jam 0 ,mem_mouse_long_mult_flag 
+00a9 204042ca call mouse_init_sensor_reset 
+00aa 20204576 branch mouse_stop_discovery 
 
 p_mouse_le_bb_disconnected:
-00aa 2040423c call mouse_sensor_powerdown 
-00ab 2020435f branch mouse_le_bb_disconnected 
+00ab 2040423c call mouse_sensor_powerdown 
+00ac 2020435f branch mouse_le_bb_disconnected 
 
 p_mouse_bb_disconnected:
-00ac 2040423c call mouse_sensor_powerdown 
-00ad 202043fe branch mouse_bb_disconnected 
+00ad 2040423c call mouse_sensor_powerdown 
+00ae 202043fe branch mouse_bb_disconnected 
 
 p_mouse_le_ll_start_encryt:
-00ae 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-00af c00080b2 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-00b0 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-00b1 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00af 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+00b0 c00080b3 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+00b1 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+00b2 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-00b2 2040436c call mouse_updata_le_param 
-00b3 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-00b4 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00b3 2040436c call mouse_updata_le_param 
+00b4 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+00b5 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_bb_event_reconn_failed:
-00b5 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-00b6 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-00b7 6fe1478c fetch 2 ,mem_ui_state_map 
-00b8 c3860000 rtnbit1 ui_state_btn_down 
-00b9 c3830000 rtnbit1 ui_state_bt_discovery 
-00ba c3858000 rtnbit1 ui_state_ble_adv 
-00bb 20203e20 branch mouse_app_enter_hibernate 
+00b6 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+00b7 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+00b8 6fe1478c fetch 2 ,mem_ui_state_map 
+00b9 c3860000 rtnbit1 ui_state_btn_down 
+00ba c3830000 rtnbit1 ui_state_bt_discovery 
+00bb c3858000 rtnbit1 ui_state_ble_adv 
+00bc 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_24g_attempt_success:
-00bc 6fe2483c fetch 4 ,mem_24g_addr 
-00bd 67e24891 store 4 ,mem_24g_receiver_addr 
-00be 67e24993 store 4 ,mem_mouse_24g_addr 
-00bf 204048c6 call mouse_device_poweron_timer_init 
-00c0 704aae00 jam 0 ,mem_mouse_long_mult_flag 
-00c1 7048a100 jam 0 ,mem_24g_conn_sm 
-00c2 70488b00 jam 0 ,mem_24g_reconn_type 
-00c3 202042ca branch mouse_init_sensor_reset 
+00bd 6fe2483c fetch 4 ,mem_24g_addr 
+00be 67e24891 store 4 ,mem_24g_receiver_addr 
+00bf 67e24993 store 4 ,mem_mouse_24g_addr 
+00c0 204048c6 call mouse_device_poweron_timer_init 
+00c1 704aae00 jam 0 ,mem_mouse_long_mult_flag 
+00c2 7048a100 jam 0 ,mem_24g_conn_sm 
+00c3 70488b00 jam 0 ,mem_24g_reconn_type 
+00c4 202042ca branch mouse_init_sensor_reset 
 
 p_mouse_24g_attempt_fail:
-00c4 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-00c5 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
-00c6 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-00c7 c0014840 beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
-00c8 c00200cb beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
-00c9 c00180ce beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
-00ca 202000d3 branch p_mouse_24g_attempt_fail_enter_hibernate 
+00c5 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+00c6 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
+00c7 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+00c8 c0014840 beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
+00c9 c00200cc beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
+00ca c00180cf beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
+00cb 202000d4 branch p_mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_auto_pair_attempt_fail:
-00cb 20400128 call p_mouse_bt_reconn_setting_led_gpio 
-00cc 204047f2 call mouse_24g_stop 
-00cd 2020481c branch mouse_check_bt_reconn_target 
+00cc 20400129 call p_mouse_bt_reconn_setting_led_gpio 
+00cd 204047f2 call mouse_24g_stop 
+00ce 2020481c branch mouse_check_bt_reconn_target 
 
 p_mouse_reconn_dongle_attempt_fail:
-00ce 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00cf c31780d3 bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
-00d0 c28980d3 bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
-00d1 c2894839 bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate 
-00d2 20204812 branch mouse_24g_start_auto_pair + 1 
+00cf 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00d0 c31780d4 bbit0 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_attempt_fail_enter_hibernate 
+00d1 c28980d4 bbit1 mouse_enable_eeprom ,p_mouse_24g_attempt_fail_enter_hibernate 
+00d2 c2894839 bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate 
+00d3 20204812 branch mouse_24g_start_auto_pair + 1 
 
 p_mouse_24g_attempt_fail_enter_hibernate:
-00d3 20404912 call mouse_device_led_off 
-00d4 204047f2 call mouse_24g_stop 
-00d5 6fe0cab0 fetch 1 ,mem_reconn_times 
-00d6 243a470e nbranch mouse_polling_device ,blank 
-00d7 6fe3493a fetch 6 ,mem_device1_addr 
-00d8 684b4be4 fetcht 6 ,mem_mouse_factory_addr 
-00d9 98467c00 isub temp ,null 
-00da 202280de branch p_mouse_start_discovery_init ,zero 
-00db 6fe0c938 fetch 1 ,mem_device_flag 
-00dc c0003e20 beq mode_24g_device ,mouse_app_enter_hibernate 
-00dd 20600000 rtn 
+00d4 20404912 call mouse_device_led_off 
+00d5 204047f2 call mouse_24g_stop 
+00d6 6fe0cab0 fetch 1 ,mem_reconn_times 
+00d7 243a470e nbranch mouse_polling_device ,blank 
+00d8 6fe3493a fetch 6 ,mem_device1_addr 
+00d9 684b4be4 fetcht 6 ,mem_mouse_factory_addr 
+00da 98467c00 isub temp ,null 
+00db 202280df branch p_mouse_start_discovery_init ,zero 
+00dc 6fe0c938 fetch 1 ,mem_device_flag 
+00dd c0003e20 beq mode_24g_device ,mouse_app_enter_hibernate 
+00de 20600000 rtn 
 
 p_mouse_start_discovery_init:
-00de 70493801 jam mode_bt_device1 ,mem_device_flag 
-00df 20204553 branch mouse_start_discovery 
+00df 70493801 jam mode_bt_device1 ,mem_device_flag 
+00e0 20204553 branch mouse_start_discovery 
 
 p_mouse_seting_dpi:
-00e0 2040408f call mouse_setting_dpi_4_level 
-00e1 204000e3 call p_mouse_dpi_led_blink_delay 
-00e2 20204098 branch mouse_seting_sensor_type 
+00e1 2040408f call mouse_setting_dpi_4_level 
+00e2 204000e4 call p_mouse_dpi_led_blink_delay 
+00e3 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00e3 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00e4 c17f8000 rtneq gpio_disable 
-00e5 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00e6 247a0000 nrtn blank 
-00e7 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00e8 247a0000 nrtn blank 
-00e9 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00ea 247a0000 nrtn blank 
-00eb 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00ec 247a0000 nrtn blank 
-00ed 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00ee 203a0102 branch p_mouse_dpi_led_blink_init ,blank 
-00ef 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00f0 20600000 rtn 
+00e4 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00e5 c17f8000 rtneq gpio_disable 
+00e6 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00e7 247a0000 nrtn blank 
+00e8 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00e9 247a0000 nrtn blank 
+00ea 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00eb 247a0000 nrtn blank 
+00ec 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00ed 247a0000 nrtn blank 
+00ee 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00ef 203a0103 branch p_mouse_dpi_led_blink_init ,blank 
+00f0 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00f1 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00f1 20403e9b call mouse_adc_read 
-00f2 20404956 call mouse_low_voltage_led_timer 
-00f3 2040232b call g24_pair_timeout_timer 
-00f4 20402556 call g24_reconn_timeout_timer 
-00f5 204047cd call mouse_24g_long_sleep_param_update_timer 
-00f6 20400117 call p_mouse_device_poweron_timer 
-00f7 204000ff call p_mouse_dpi_led_blink_delay_timer 
-00f8 2040407c call mouse_dpi_key_check_long_press 
-00f9 204044cc call mouse_bt_discovery_check 
-00fa 2040012d call p_mouse_commbination_key_process 
-00fb 204044ff call mouse_check_discovery_timeout_timer 
-00fc 20404504 call mouse_check_direct_timeout_timer 
-00fd 20404512 call mouse_le_enable_att_list_timer 
-00fe 202044c4 branch mouse_bb_event_timer_next 
+00f2 20403e9b call mouse_adc_read 
+00f3 20404956 call mouse_low_voltage_led_timer 
+00f4 2040232b call g24_pair_timeout_timer 
+00f5 20402556 call g24_reconn_timeout_timer 
+00f6 204047cd call mouse_24g_long_sleep_param_update_timer 
+00f7 20400118 call p_mouse_device_poweron_timer 
+00f8 20400100 call p_mouse_dpi_led_blink_delay_timer 
+00f9 2040407c call mouse_dpi_key_check_long_press 
+00fa 204044cc call mouse_bt_discovery_check 
+00fb 2040012e call p_mouse_commbination_key_process 
+00fc 204044ff call mouse_check_discovery_timeout_timer 
+00fd 20404504 call mouse_check_direct_timeout_timer 
+00fe 20404512 call mouse_le_enable_att_list_timer 
+00ff 202044c4 branch mouse_bb_event_timer_next 
 
 p_mouse_dpi_led_blink_delay_timer:
-00ff da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-0100 da400102 arg p_mouse_dpi_led_blink_init ,regb 
-0101 2020318a branch timer_single_step 
+0100 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+0101 da400103 arg p_mouse_dpi_led_blink_init ,regb 
+0102 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-0102 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0103 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-0104 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-0105 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0106 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-0107 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0108 67e14930 store 2 ,mem_mouse_on_time 
-0109 67e14932 store 2 ,mem_mouse_off_time 
-010a da200000 arg 0 ,rega 
-010b 6848c992 fetcht 1 ,mem_mouse_dpi 
-010c 18408402 increase 2 ,temp 
-010d 18467c03 sub temp ,3 ,null 
-010e 20410111 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-010f 24410115 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-0110 202048ff branch mouse_dpi_led_blink_init_end 
+0103 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0104 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+0105 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0106 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0107 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0108 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0109 67e14930 store 2 ,mem_mouse_on_time 
+010a 67e14932 store 2 ,mem_mouse_off_time 
+010b da200000 arg 0 ,rega 
+010c 6848c992 fetcht 1 ,mem_mouse_dpi 
+010d 18408402 increase 2 ,temp 
+010e 18467c03 sub temp ,3 ,null 
+010f 20410112 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0110 24410116 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+0111 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-0111 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0112 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-0113 18408401 increase 1 ,temp 
-0114 20600000 rtn 
+0112 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0113 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+0114 18408401 increase 1 ,temp 
+0115 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-0115 184085fd increase -3 ,temp 
-0116 20600000 rtn 
+0116 184085fd increase -3 ,temp 
+0117 20600000 rtn 
 
 p_mouse_device_poweron_timer:
-0117 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0118 c4100000 rtnbit0 mouse_enable_power_on_led 
-0119 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-011a 207a0000 rtn blank 
-011b 1fe0ffff increase -1 ,pdata 
-011c 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
-011d 203a011f branch p_mouse_device_led_off ,blank 
-011e 20204920 branch mouse_device_led_on 
+0118 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0119 c4100000 rtnbit0 mouse_enable_power_on_led 
+011a 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+011b 207a0000 rtn blank 
+011c 1fe0ffff increase -1 ,pdata 
+011d 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
+011e 203a0120 branch p_mouse_device_led_off ,blank 
+011f 20204920 branch mouse_device_led_on 
 
 p_mouse_device_led_off:
-011f 20404912 call mouse_device_led_off 
-0120 6fe0c938 fetch 1 ,mem_device_flag 
-0121 c1808000 rtnne mode_bt_device1 
-0122 6fe1478c fetch 2 ,mem_ui_state_map 
-0123 c3848000 rtnbit1 ui_state_ble_connected 
-0124 c3800000 rtnbit1 ui_state_bt_connected 
-0125 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0126 c0ff8128 bne 0xff ,p_mouse_bt_reconn_setting_led_gpio 
-0127 202048cc branch mouse_discover_setting_led_gpio 
+0120 20404912 call mouse_device_led_off 
+0121 6fe0c938 fetch 1 ,mem_device_flag 
+0122 c1808000 rtnne mode_bt_device1 
+0123 6fe1478c fetch 2 ,mem_ui_state_map 
+0124 c3848000 rtnbit1 ui_state_ble_connected 
+0125 c3800000 rtnbit1 ui_state_bt_connected 
+0126 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+0127 c0ff8129 bne 0xff ,p_mouse_bt_reconn_setting_led_gpio 
+0128 202048cc branch mouse_discover_setting_led_gpio 
 
 p_mouse_bt_reconn_setting_led_gpio:
-0128 704ba700 jam 0 ,mem_mouse_device_poweron_timer_count 
-0129 6fe14be2 fetch 2 ,mem_mouse_bt_reconn_led_blink_time 
-012a 67e14930 store 2 ,mem_mouse_on_time 
-012b 67e14932 store 2 ,mem_mouse_off_time 
-012c 202048d0 branch mouse_setting_led_gpio_comman 
+0129 704ba700 jam 0 ,mem_mouse_device_poweron_timer_count 
+012a 6fe14be2 fetch 2 ,mem_mouse_bt_reconn_led_blink_time 
+012b 67e14930 store 2 ,mem_mouse_on_time 
+012c 67e14932 store 2 ,mem_mouse_off_time 
+012d 202048d0 branch mouse_setting_led_gpio_comman 
 
 p_mouse_commbination_key_process:
-012d 6fe0c938 fetch 1 ,mem_device_flag 
-012e c0000133 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-012f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0130 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-0131 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0132 20200136 branch p_mouse_commbination_key_start 
+012e 6fe0c938 fetch 1 ,mem_device_flag 
+012f c0000134 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+0130 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0131 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+0132 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+0133 20200137 branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-0133 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0134 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-0135 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0134 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0135 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+0136 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-0136 6048cb9d storet 1 ,mem_mouse_commbination_key 
-0137 20404115 call mouse_check_key_gpio 
-0138 1fe17e07 and pdata ,0x07 ,pdata 
-0139 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-013a 98467c00 isub temp ,null 
-013b 2022813d branch p_mouse_commbination_key_down ,zero 
-013c 202044eb branch mouse_commbination_key_up 
+0137 6048cb9d storet 1 ,mem_mouse_commbination_key 
+0138 20404115 call mouse_check_key_gpio 
+0139 1fe17e07 and pdata ,0x07 ,pdata 
+013a 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+013b 98467c00 isub temp ,null 
+013c 2022813e branch p_mouse_commbination_key_down ,zero 
+013d 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-013d 204044f6 call mouse_combination_ui_timer 
-013e 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-013f c1008000 rtneq commbination_key_state_down 
-0140 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-0141 20600000 rtn 
+013e 204044f6 call mouse_combination_ui_timer 
+013f 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+0140 c1008000 rtneq commbination_key_state_down 
+0141 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+0142 20600000 rtn 
 
 p_mouse_start_discovery:
-0142 6fe1478c fetch 2 ,mem_ui_state_map 
-0143 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-0144 2040c581 call mouse_stop_le_adv ,true 
-0145 6fe1478c fetch 2 ,mem_ui_state_map 
-0146 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-0147 2040c322 call mouse_cancel_reconnect ,true 
-0148 20204554 branch mouse_start_discovery + 1 
+0143 6fe1478c fetch 2 ,mem_ui_state_map 
+0144 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+0145 2040c581 call mouse_stop_le_adv ,true 
+0146 6fe1478c fetch 2 ,mem_ui_state_map 
+0147 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+0148 2040c322 call mouse_cancel_reconnect ,true 
+0149 20204554 branch mouse_start_discovery + 1 
 
 p_spid_init:
-0149 70448476 jam 0x76 ,mem_spi_init_clk 
-014a 20205cb6 branch spid_init_common 
+014a 70448476 jam 0x76 ,mem_spi_init_clk 
+014b 20205cb6 branch spid_init_common 
 
 p_le_slave_match:
-014b 6fe0c3dd fetch 1 ,mem_le_md_count 
-014c 1fe0fe01 pincrease 1 
-014d 67e0c3dd store 1 ,mem_le_md_count 
-014e c006165a beq le_md_max_count ,le_slave_cont 
-014f 2040191b call le_acknowledge 
-0150 2040196a call le_prepare_tx 
-0151 6fe082bd fetch 1 ,mem_le_tx_phy 
-0152 2040168b call le_enable_phy_by_pdata 
-0153 20401838 call le_transmit 
-0154 20201655 branch le_slave_match + 10 
+014c 6fe0c3dd fetch 1 ,mem_le_md_count 
+014d 1fe0fe01 pincrease 1 
+014e 67e0c3dd store 1 ,mem_le_md_count 
+014f c006165a beq le_md_max_count ,le_slave_cont 
+0150 2040191b call le_acknowledge 
+0151 2040196a call le_prepare_tx 
+0152 6fe082bd fetch 1 ,mem_le_tx_phy 
+0153 2040168b call le_enable_phy_by_pdata 
+0154 20401838 call le_transmit 
+0155 20201655 branch le_slave_match + 10 
 
 p_mouse_start_work:
-0155 6fe08989 fetch 1 ,mem_wakup_from_power_flag 
-0156 c3013d53 bbit0 bit_power_on ,mouse_start_work + 1 
-0157 6fe0c938 fetch 1 ,mem_device_flag 
-0158 c000c81c beq mode_bt_device1 ,mouse_check_bt_reconn_target 
-0159 20203d53 branch mouse_start_work + 1 
+0156 6fe08989 fetch 1 ,mem_wakup_from_power_flag 
+0157 c3013d53 bbit0 bit_power_on ,mouse_start_work + 1 
+0158 6fe0c938 fetch 1 ,mem_device_flag 
+0159 c000c81c beq mode_bt_device1 ,mouse_check_bt_reconn_target 
+015a 20203d53 branch mouse_start_work + 1 
 
 p_le_parse_l2cap:
-015a efe10006 ifetch 2 ,contr 
-015b c002015d beq le_l2cap_cid_att ,p_le_parse_att 
-015c 202019e4 branch le_parse_l2cap + 10 
+015b efe10006 ifetch 2 ,contr 
+015c c002015e beq le_l2cap_cid_att ,p_le_parse_att 
+015d 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-015d 20407ceb call store_contr 
-015e 20400173 call p_mouse_le_reconn_write_enable_timer_reinit 
-015f 20407ce5 call get_contr 
-0160 efe18006 ifetch 3 ,contr 
-0161 67e1c436 store 3 ,mem_le_att_opcode 
-0162 c0050165 beq attop_read_request ,p_le_parse_att_read_request 
-0163 c009017a beq attop_write_request ,p_le_parse_att_write_request 
-0164 20201cd3 branch le_parse_att + 2 
+015e 20407ceb call store_contr 
+015f 20400174 call p_mouse_le_reconn_write_enable_timer_reinit 
+0160 20407ce5 call get_contr 
+0161 efe18006 ifetch 3 ,contr 
+0162 67e1c436 store 3 ,mem_le_att_opcode 
+0163 c0050166 beq attop_read_request ,p_le_parse_att_read_request 
+0164 c009017b beq attop_write_request ,p_le_parse_att_write_request 
+0165 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_read_request:
-0165 20401e8d call le_check_encrypt_state 
-0166 68494437 fetcht 2 ,mem_le_att_handle 
-0167 6fe0c3c0 fetch 1 ,mem_le_configuration 
-0168 c281816d bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+0166 20401e8d call le_check_encrypt_state 
+0167 68494437 fetcht 2 ,mem_le_att_handle 
+0168 6fe0c3c0 fetch 1 ,mem_le_configuration 
+0169 c281816e bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-0169 6fe14437 fetch 2 ,mem_le_att_handle 
-016a c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
-016b 68494437 fetcht 2 ,mem_le_att_handle 
-016c 20201deb branch le_send_att_read_response 
+016a 6fe14437 fetch 2 ,mem_le_att_handle 
+016b c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
+016c 68494437 fetcht 2 ,mem_le_att_handle 
+016d 20201deb branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-016d 6fe143d1 fetch 2 ,mem_le_pairing_handle 
-016e 98467c00 isub temp ,null 
-016f 24228169 nbranch p_le_send_att_read_response ,zero 
-0170 20401e8d call le_check_encrypt_state 
-0171 24340169 nbranch p_le_send_att_read_response ,user 
-0172 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+016e 6fe143d1 fetch 2 ,mem_le_pairing_handle 
+016f 98467c00 isub temp ,null 
+0170 2422816a nbranch p_le_send_att_read_response ,zero 
+0171 20401e8d call le_check_encrypt_state 
+0172 2434016a nbranch p_le_send_att_read_response ,user 
+0173 20201e10 branch le_send_att_read_response_error_insufficient_auth 
 
 p_mouse_le_reconn_write_enable_timer_reinit:
-0173 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0174 207a0000 rtn blank 
-0175 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-0176 1fe17e03 and pdata ,0x03 ,pdata 
-0177 c1018000 rtneq 0x03 
-0178 704b7602 jam 2 ,mem_le_start_encrypt_timer 
-0179 20600000 rtn 
+0174 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0175 207a0000 rtn blank 
+0176 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0177 1fe17e03 and pdata ,0x03 ,pdata 
+0178 c1018000 rtneq 0x03 
+0179 704b7602 jam 2 ,mem_le_start_encrypt_timer 
+017a 20600000 rtn 
 
 p_le_parse_att_write_request:
-017a 18c22200 copy contr ,rega 
-017b 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-017c 1fe0a5fd add pdata ,-3 ,regb 
-017d 20401a25 call le_writeatt_cb 
-017e 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-017f 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-0180 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-0181 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-0182 5800001a setarg 0x001a 
-0183 68494437 fetcht 2 ,mem_le_att_handle 
-0184 98467c00 isub temp ,null 
-0185 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-0186 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-0187 20201ec9 branch le_send_att_error_response 
+017b 18c22200 copy contr ,rega 
+017c 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+017d 1fe0a5fd add pdata ,-3 ,regb 
+017e 20401a25 call le_writeatt_cb 
+017f 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0180 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+0181 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0182 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+0183 5800001a setarg 0x001a 
+0184 68494437 fetcht 2 ,mem_le_att_handle 
+0185 98467c00 isub temp ,null 
+0186 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0187 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+0188 20201ec9 branch le_send_att_error_response 
+
+p_hid_rx_process:
+0189 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+018a 1fe20c00 copy pdata ,contr 
+018b efe08006 ifetch 1 ,contr 
+018c 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+018d 1fe1040f and pdata ,0x0f ,temp 
+018e 1ff1fe00 rshift4 pdata ,pdata 
+018f c0048191 beq hid_type_set_idle ,p_hid_rx_process_handshake 
+0190 20204d93 branch hid_rx_process + 7 
+
+p_hid_rx_process_handshake:
+0191 da200001 arg 1 ,rega 
+0192 20404dc0 call hid_malloc_tx_buff 
+0193 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+0194 e7e10005 istore 2 ,contw 
+0195 58000000 setarg 0 
+0196 e7e08005 istore 1 ,contw 
+0197 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0198 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+0199 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+019a 67e0c4e2 store 1 ,mem_hid_control_state 
+019b 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+019c 20207871 branch ui_ipc_send_event 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/Standard_ABD_Normal/program/patch.prog	(revision 534)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/Standard_ABD_Normal/program/patch.prog	(working copy)
@@ -13,6 +13,7 @@
 	beq patch1a_6,p_mouse_priority_bb_event
 	beq patch1b_1,p_mouse_bb_event_timer
 	beq patch1b_2,p_mouse_start_discovery
+	beq patch1d_0,p_hid_rx_process
 	branch loop
 
 pf_patch_ext:
@@ -530,4 +531,28 @@
 	jam ATT_ERR_INSUFFICIENT_AUTHENTICATION,mem_le_err_code
 	branch le_send_att_error_response
 
+p_hid_rx_process:
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	ifetch 1,contr
+	store 1,mem_l2cap_rcv_hidtype
+	and pdata,0x0f,temp
+	rshift4 pdata,pdata //hidtype
+	beq hid_type_set_idle,p_hid_rx_process_handshake
+	branch hid_rx_process+7
+
+p_hid_rx_process_handshake:
+	arg 1,rega//payload length
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_ctrl_remote_cid
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	jam 1,mem_ui_data_txbuff_length
+	fetch 1,mem_hid_control_state
+	set1 l2cap_channel_hid_handshake_done,pdata
+	store 1,mem_hid_control_state
+	jam BT_EVT_HID_HANDSHAKE,mem_fifo_temp
+	branch ui_ipc_send_event
+
 
