Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/public_3mode/output/eeprom.dat	(revision 494)
+++ /YC1308AC/branch/mouse_project/public_3mode/output/eeprom.dat	(working copy)
@@ -2,68 +2,72 @@
 02
 aa
 55
-d6
+fa
 04
 c2
 84
 00
-10
+11
 c0
 00
 00
-17
+18
 c0
 01
 80
-1b
+1c
 c0
 45
 80
-64
+65
 c0
 4f
 80
-6f
+70
 c0
 57
 00
-71
+72
 c0
 58
 00
-58
+59
 c0
 63
 80
-77
+78
 c0
 64
 80
-7b
+7c
 c0
 65
 00
-86
+87
 c0
 66
 00
-54
+55
+c0
+67
+01
+36
 c0
 68
 00
-b5
+b6
 c0
 6b
 00
-8f
+90
 c0
 6c
 80
-c6
+c7
 c0
 6d
 01
-08
+09
 20
 20
 13
@@ -71,27 +75,27 @@
 c0
 19
 80
-34
+35
 c0
 1a
 00
-39
+3a
 c0
 43
 81
-0f
+10
 c0
 50
 81
-13
+14
 c0
 60
 01
-1d
+1e
 c0
 76
 01
-32
+33
 20
 20
 13
@@ -159,7 +163,7 @@
 20
 40
 00
-28
+29
 20
 20
 08
@@ -191,7 +195,7 @@
 20
 3a
 00
-31
+32
 6f
 e0
 c6
@@ -351,7 +355,7 @@
 20
 40
 00
-39
+3a
 20
 20
 3e
@@ -403,7 +407,7 @@
 20
 20
 00
-58
+59
 70
 8a
 8b
@@ -583,23 +587,23 @@
 c0
 1e
 00
-b0
+b1
 c0
 02
 00
-a9
+aa
 c0
 09
 80
-a9
+aa
 c0
 19
 00
-96
+97
 c0
 22
 00
-9d
+9e
 20
 20
 43
@@ -611,7 +615,7 @@
 c0
 00
 80
-9a
+9b
 70
 4b
 76
@@ -735,7 +739,7 @@
 20
 40
 00
-b8
+b9
 20
 20
 40
@@ -787,7 +791,7 @@
 20
 3a
 00
-d6
+d7
 67
 e0
 cb
@@ -823,7 +827,7 @@
 20
 40
 00
-d3
+d4
 20
 40
 40
@@ -835,7 +839,7 @@
 20
 40
 00
-f3
+f4
 20
 40
 44
@@ -843,7 +847,7 @@
 20
 40
 00
-eb
+ec
 20
 20
 44
@@ -855,7 +859,7 @@
 da
 40
 00
-d6
+d7
 20
 20
 31
@@ -911,11 +915,11 @@
 20
 41
 00
-e5
+e6
 24
 41
 00
-e9
+ea
 20
 20
 48
@@ -951,7 +955,7 @@
 da
 40
 00
-ee
+ef
 20
 20
 45
@@ -983,7 +987,7 @@
 c0
 00
 00
-f9
+fa
 6f
 e4
 4b
@@ -999,7 +1003,7 @@
 20
 20
 00
-fc
+fd
 6f
 e4
 4b
@@ -1035,7 +1039,7 @@
 20
 22
 81
-03
+04
 20
 20
 44
@@ -1151,7 +1155,7 @@
 c0
 02
 01
-20
+21
 20
 20
 19
@@ -1167,7 +1171,7 @@
 c0
 09
 01
-24
+25
 20
 20
 1c
@@ -1240,8 +1244,40 @@
 20
 26
 bc
-4e
-51
+78
+54
+7c
+00
+58
+00
+00
+00
+67
+e3
+48
+d1
+20
+40
+42
+40
+20
+40
+01
+3c
+20
+20
+3f
+75
+68
+48
+c9
+20
+20
+20
+3f
+56
+ab
+26
 aa
 55
 40
@@ -1273,7 +1309,7 @@
 01
 00
 80
-16
+56
 41
 06
 00
@@ -2402,44 +2438,8 @@
 e8
 41
 01
-55
-aa
-aa
-55
-13
-5a
-6d
-a6
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+95
+c3
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-7b
-be
+93
+db
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/public_3mode/output/flash.dat	(revision 494)
+++ /YC1308AC/branch/mouse_project/public_3mode/output/flash.dat	(working copy)
@@ -2,68 +2,72 @@
 02
 aa
 55
-d6
+fa
 04
 c2
 84
 00
-10
+11
 c0
 00
 00
-17
+18
 c0
 01
 80
-1b
+1c
 c0
 45
 80
-64
+65
 c0
 4f
 80
-6f
+70
 c0
 57
 00
-71
+72
 c0
 58
 00
-58
+59
 c0
 63
 80
-77
+78
 c0
 64
 80
-7b
+7c
 c0
 65
 00
-86
+87
 c0
 66
 00
-54
+55
+c0
+67
+01
+36
 c0
 68
 00
-b5
+b6
 c0
 6b
 00
-8f
+90
 c0
 6c
 80
-c6
+c7
 c0
 6d
 01
-08
+09
 20
 20
 13
@@ -71,27 +75,27 @@
 c0
 19
 80
-34
+35
 c0
 1a
 00
-39
+3a
 c0
 43
 81
-0f
+10
 c0
 50
 81
-13
+14
 c0
 60
 01
-1d
+1e
 c0
 76
 01
-32
+33
 20
 20
 13
@@ -159,7 +163,7 @@
 20
 40
 00
-28
+29
 20
 20
 08
@@ -191,7 +195,7 @@
 20
 3a
 00
-31
+32
 6f
 e0
 c6
@@ -351,7 +355,7 @@
 20
 40
 00
-39
+3a
 20
 20
 3e
@@ -403,7 +407,7 @@
 20
 20
 00
-58
+59
 70
 8a
 8b
@@ -583,23 +587,23 @@
 c0
 1e
 00
-b0
+b1
 c0
 02
 00
-a9
+aa
 c0
 09
 80
-a9
+aa
 c0
 19
 00
-96
+97
 c0
 22
 00
-9d
+9e
 20
 20
 43
@@ -611,7 +615,7 @@
 c0
 00
 80
-9a
+9b
 70
 4b
 76
@@ -735,7 +739,7 @@
 20
 40
 00
-b8
+b9
 20
 20
 40
@@ -787,7 +791,7 @@
 20
 3a
 00
-d6
+d7
 67
 e0
 cb
@@ -823,7 +827,7 @@
 20
 40
 00
-d3
+d4
 20
 40
 40
@@ -835,7 +839,7 @@
 20
 40
 00
-f3
+f4
 20
 40
 44
@@ -843,7 +847,7 @@
 20
 40
 00
-eb
+ec
 20
 20
 44
@@ -855,7 +859,7 @@
 da
 40
 00
-d6
+d7
 20
 20
 31
@@ -911,11 +915,11 @@
 20
 41
 00
-e5
+e6
 24
 41
 00
-e9
+ea
 20
 20
 48
@@ -951,7 +955,7 @@
 da
 40
 00
-ee
+ef
 20
 20
 45
@@ -983,7 +987,7 @@
 c0
 00
 00
-f9
+fa
 6f
 e4
 4b
@@ -999,7 +1003,7 @@
 20
 20
 00
-fc
+fd
 6f
 e4
 4b
@@ -1035,7 +1039,7 @@
 20
 22
 81
-03
+04
 20
 20
 44
@@ -1151,7 +1155,7 @@
 c0
 02
 01
-20
+21
 20
 20
 19
@@ -1167,7 +1171,7 @@
 c0
 09
 01
-24
+25
 20
 20
 1c
@@ -1240,8 +1244,40 @@
 20
 26
 bc
-4e
-51
+78
+54
+7c
+00
+58
+00
+00
+00
+67
+e3
+48
+d1
+20
+40
+42
+40
+20
+40
+01
+3c
+20
+20
+3f
+75
+68
+48
+c9
+20
+20
+20
+3f
+56
+ab
+26
 aa
 55
 40
@@ -1273,7 +1309,7 @@
 01
 00
 80
-16
+56
 41
 06
 00
@@ -2402,44 +2438,8 @@
 e8
 41
 01
-55
-aa
-aa
-55
-13
-5a
-6d
-a6
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+95
+c3
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-7b
-be
+93
+db
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/public_3mode/output/program.lis	(revision 494)
+++ /YC1308AC/branch/mouse_project/public_3mode/output/program.lis	(working copy)
@@ -1,398 +1,411 @@
               include "bt_format "
               org 0x0000
-0000 c2840010 bbit1 8 ,pf_patch_ext 
-0001 c0000017 beq patch00_0 ,p_soft_reset 
-0002 c001801b beq patch00_3 ,p_main_loop 
-0003 c0458064 beq patch11_3 ,p_initialize_radio_cont 
-0004 c04f806f beq patch13_7 ,p_init_param 
-0005 c0570071 beq patch15_6 ,p_app_init 
-0006 c0580058 beq patch16_0 ,p_app_evt_100ms_loop 
-0007 c0638077 beq patch18_7 ,p_mouse_app_enter_hibernate 
-0008 c064807b beq patch19_1 ,p_mouse_setgpio_hibernate 
-0009 c0650086 beq patch19_2 ,p_mouse_lpm_before_common 
-000a c0660054 beq patch19_4 ,p_mouse_adc_read_start 
-000b c06800b5 beq patch1a_0 ,p_mouse_seting_dpi 
-000c c06b008f beq patch1a_6 ,p_mouse_priority_bb_event 
-000d c06c80c6 beq patch1b_1 ,p_mouse_bb_event_timer 
-000e c06d0108 beq patch1b_2 ,p_mouse_start_discovery 
-000f 2020137c branch loop 
+0000 c2840011 bbit1 8 ,pf_patch_ext 
+0001 c0000018 beq patch00_0 ,p_soft_reset 
+0002 c001801c beq patch00_3 ,p_main_loop 
+0003 c0458065 beq patch11_3 ,p_initialize_radio_cont 
+0004 c04f8070 beq patch13_7 ,p_init_param 
+0005 c0570072 beq patch15_6 ,p_app_init 
+0006 c0580059 beq patch16_0 ,p_app_evt_100ms_loop 
+0007 c0638078 beq patch18_7 ,p_mouse_app_enter_hibernate 
+0008 c064807c beq patch19_1 ,p_mouse_setgpio_hibernate 
+0009 c0650087 beq patch19_2 ,p_mouse_lpm_before_common 
+000a c0660055 beq patch19_4 ,p_mouse_adc_read_start 
+000b c0670136 beq patch19_6 ,p_mouse_motion 
+000c c06800b6 beq patch1a_0 ,p_mouse_seting_dpi 
+000d c06b0090 beq patch1a_6 ,p_mouse_priority_bb_event 
+000e c06c80c7 beq patch1b_1 ,p_mouse_bb_event_timer 
+000f c06d0109 beq patch1b_2 ,p_mouse_start_discovery 
+0010 2020137c branch loop 
 
 pf_patch_ext:
-0010 c0198034 beq patch26_3 ,p_adc_init_data 
-0011 c01a0039 beq patch26_4 ,p_enable_adc 
-0012 c043810f beq patch30_7 ,p_ui_timer_check 
-0013 c0508113 beq patch34_1 ,p_le_slave_match 
-0014 c060011d beq patch38_0 ,p_le_parse_l2cap 
-0015 c0760132 beq patch3d_4 ,p_g24_lpm_wait 
-0016 2020137c branch loop 
+0011 c0198035 beq patch26_3 ,p_adc_init_data 
+0012 c01a003a beq patch26_4 ,p_enable_adc 
+0013 c0438110 beq patch30_7 ,p_ui_timer_check 
+0014 c0508114 beq patch34_1 ,p_le_slave_match 
+0015 c060011e beq patch38_0 ,p_le_parse_l2cap 
+0016 c0760133 beq patch3d_4 ,p_g24_lpm_wait 
+0017 2020137c branch loop 
 
 p_soft_reset:
-0017 20800000 clear_stack 
-0018 204030f3 call app_param_init 
-0019 20403bfd call mouse_xtal_init 
-001a 20200804 branch soft_reset + 3 
+0018 20800000 clear_stack 
+0019 204030f3 call app_param_init 
+001a 20403bfd call mouse_xtal_init 
+001b 20200804 branch soft_reset + 3 
 
 p_main_loop:
-001b 2040706c call sp_calc_sequence 
-001c 20407597 call sp_calc_sequence_256 
-001d 20406ea7 call sp_calc_sequence_256_check 
-001e 20401b93 call le_advertising_dispatch + 1 
-001f 2040083a call idle_dispatch 
-0020 20403108 call app_process_idle + 1 
-0021 20400892 call inquiry_dispatch + 1 
-0022 20400b08 call inquiry_scan_dispatch + 1 
-0023 20400b7b call page_scan_dispatch + 1 
-0024 20400823 call connection_dispatch + 1 
-0025 204021d3 call g24_dispatch + 2 
-0026 20400028 call p_lpm_dispatch 
-0027 20200813 branch main_loop 
+001c 2040706c call sp_calc_sequence 
+001d 20407597 call sp_calc_sequence_256 
+001e 20406ea7 call sp_calc_sequence_256_check 
+001f 20401b93 call le_advertising_dispatch + 1 
+0020 2040083a call idle_dispatch 
+0021 20403108 call app_process_idle + 1 
+0022 20400892 call inquiry_dispatch + 1 
+0023 20400b08 call inquiry_scan_dispatch + 1 
+0024 20400b7b call page_scan_dispatch + 1 
+0025 20400823 call connection_dispatch + 1 
+0026 204021d3 call g24_dispatch + 2 
+0027 20400029 call p_lpm_dispatch 
+0028 20200813 branch main_loop 
 
 p_lpm_dispatch:
-0028 20401465 call lpo_calibration 
-0029 6fe1c174 fetch 3 ,mem_clks_per_lpo 
-002a 207a0000 rtn blank 
-002b 6fe0c099 fetch 1 ,mem_lpm_mode 
-002c 207a0000 rtn blank 
-002d 6fe0c764 fetch 1 ,mem_ssp_enable 
-002e 203a0031 branch p_lpm_dispatch_next ,blank 
-002f 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
-0030 207a0000 rtn blank 
+0029 20401465 call lpo_calibration 
+002a 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+002b 207a0000 rtn blank 
+002c 6fe0c099 fetch 1 ,mem_lpm_mode 
+002d 207a0000 rtn blank 
+002e 6fe0c764 fetch 1 ,mem_ssp_enable 
+002f 203a0032 branch p_lpm_dispatch_next ,blank 
+0030 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
+0031 207a0000 rtn blank 
 
 p_lpm_dispatch_next:
-0031 6fe0c6ba fetch 1 ,mem_sc_calc 
-0032 247a0000 nrtn blank 
-0033 202014ea branch lpm_dispatch_next + 3 
+0032 6fe0c6ba fetch 1 ,mem_sc_calc 
+0033 247a0000 nrtn blank 
+0034 202014ea branch lpm_dispatch_next + 3 
 
 p_adc_init_data:
-0034 da20099e arg mem_temp_block2 ,rega 
-0035 d840000c arg 12 ,temp 
-0036 58000030 setarg efuse_offset_adc_param 
-0037 20405e63 call efuse_read_data 
-0038 202060bf branch adc_init_data + 6 
+0035 da20099e arg mem_temp_block2 ,rega 
+0036 d840000c arg 12 ,temp 
+0037 58000030 setarg efuse_offset_adc_param 
+0038 20405e63 call efuse_read_data 
+0039 202060bf branch adc_init_data + 6 
 
 p_enable_adc:
-0039 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
-003a 708a123d jam 0x3d ,core_rf_ldo_cfg6 
-003b 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
-003c 708a0a0c jam 0x0c ,core_rf_ldo_en0 
-003d 6ff08a09 fetch 1 ,core_clkpll_cfg6 
-003e 79207e07 set1 7 ,pdata 
-003f 67f08a09 store 1 ,core_clkpll_cfg6 
-0040 708a0b04 jam 0x04 ,core_rf_ldo_en1 
-0041 2000003c nop 60 
-0042 708a1600 jam 0 ,core_syn_en 
-0043 708a1706 jam 6 ,core_rx_en0 
-0044 2040611a call read_adc_mode 
-0045 67f08a97 store 1 ,core_gpadc_ctrl 
-0046 7080dc03 jam 0x03 ,core_sum_ctrl 
-0047 2000003c nop 60 
-0048 6ff08053 fetch 1 ,core_sum_en 
-0049 79207e07 set1 7 ,pdata 
-004a 67f08053 store 1 ,core_sum_en 
-004b 200003e8 nop 1000 
-004c 6ff10150 fetch 2 ,core_adc_sum 
-004d 67e144a2 store 2 ,mem_adc_current_value 
-004e 6ff08053 fetch 1 ,core_sum_en 
-004f 793ffe07 set0 7 ,pdata 
-0050 67f08053 store 1 ,core_sum_en 
-0051 708a9700 jam 0 ,core_gpadc_ctrl 
-0052 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
-0053 20600000 rtn 
+003a 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+003b 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+003c 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+003d 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+003e 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+003f 79207e07 set1 7 ,pdata 
+0040 67f08a09 store 1 ,core_clkpll_cfg6 
+0041 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+0042 2000003c nop 60 
+0043 708a1600 jam 0 ,core_syn_en 
+0044 708a1706 jam 6 ,core_rx_en0 
+0045 2040611a call read_adc_mode 
+0046 67f08a97 store 1 ,core_gpadc_ctrl 
+0047 7080dc03 jam 0x03 ,core_sum_ctrl 
+0048 2000003c nop 60 
+0049 6ff08053 fetch 1 ,core_sum_en 
+004a 79207e07 set1 7 ,pdata 
+004b 67f08053 store 1 ,core_sum_en 
+004c 200003e8 nop 1000 
+004d 6ff10150 fetch 2 ,core_adc_sum 
+004e 67e144a2 store 2 ,mem_adc_current_value 
+004f 6ff08053 fetch 1 ,core_sum_en 
+0050 793ffe07 set0 7 ,pdata 
+0051 67f08053 store 1 ,core_sum_en 
+0052 708a9700 jam 0 ,core_gpadc_ctrl 
+0053 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
+0054 20600000 rtn 
 
 p_mouse_adc_read_start:
-0054 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0055 247a0000 nrtn blank 
-0056 20400039 call p_enable_adc 
-0057 20203ebb branch mouse_adc_read_start + 3 
+0055 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+0056 247a0000 nrtn blank 
+0057 2040003a call p_enable_adc 
+0058 20203ebb branch mouse_adc_read_start + 3 
 
 p_app_evt_100ms_loop:
-0058 6fe0830d fetch 1 ,mem_app_evt_timer_count 
-0059 207a0000 rtn blank 
-005a 1fe0ffff increase -1 ,pdata 
-005b 67e0830d store 1 ,mem_app_evt_timer_count 
-005c 204077c5 call ui_button_polling 
-005d 204031e3 call app_lpm_wake_auto_lock_timer 
-005e 204031a4 call app_unsniff_delay_timer 
-005f 204031aa call app_discovery_timer 
-0060 20405cdc call flash_write_spi_sm_timer 
-0061 6fe1446f fetch 2 ,mem_cb_event_timer 
-0062 20407e05 call callback_func 
-0063 20200058 branch p_app_evt_100ms_loop 
+0059 6fe0830d fetch 1 ,mem_app_evt_timer_count 
+005a 207a0000 rtn blank 
+005b 1fe0ffff increase -1 ,pdata 
+005c 67e0830d store 1 ,mem_app_evt_timer_count 
+005d 204077c5 call ui_button_polling 
+005e 204031e3 call app_lpm_wake_auto_lock_timer 
+005f 204031a4 call app_unsniff_delay_timer 
+0060 204031aa call app_discovery_timer 
+0061 20405cdc call flash_write_spi_sm_timer 
+0062 6fe1446f fetch 2 ,mem_cb_event_timer 
+0063 20407e05 call callback_func 
+0064 20200059 branch p_app_evt_100ms_loop 
 
 p_initialize_radio_cont:
-0064 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0065 2040126a call initialize_syn_afc_cfg1 
-0066 20401271 call initialize_rf_ldo_cfg1 
-0067 20401277 call initialize_rc_cal 
-0068 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-0069 708a0305 jam 5 ,core_clkpll_cfg0 
-006a 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-006b 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-006c 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-006d 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-006e 2020125d branch initialize_radio_cont + 8 
+0065 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0066 2040126a call initialize_syn_afc_cfg1 
+0067 20401271 call initialize_rf_ldo_cfg1 
+0068 20401277 call initialize_rc_cal 
+0069 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+006a 708a0305 jam 5 ,core_clkpll_cfg0 
+006b 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+006c 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+006d 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+006e 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+006f 2020125d branch initialize_radio_cont + 8 
 
 p_init_param:
-006f 70008000 jam 0 ,mem_lmo_tid2 
-0070 202013b7 branch init_param_next + 1 
+0070 70008000 jam 0 ,mem_lmo_tid2 
+0071 202013b7 branch init_param_next + 1 
 
 p_app_init:
 
 p_mouse_init:
-0071 20406df3 call enable_authrom 
-0072 20403bf0 call mouse_setting_config 
-0073 204041a7 call mouse_init_sunt 
-0074 20758000 rtn wake 
-0075 2040408e call mouse_dpi_config 
-0076 20203bc5 branch mouse_init + 4 
+0072 20406df3 call enable_authrom 
+0073 20403bf0 call mouse_setting_config 
+0074 204041a7 call mouse_init_sunt 
+0075 20758000 rtn wake 
+0076 2040408e call mouse_dpi_config 
+0077 20203bc5 branch mouse_init + 4 
 
 p_mouse_app_enter_hibernate:
-0077 58000006 setarg pan_reg_config 
-0078 20405b0d call twspi_read 
-0079 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-007a 20203e21 branch mouse_app_enter_hibernate + 1 
+0078 58000006 setarg pan_reg_config 
+0079 20405b0d call twspi_read 
+007a c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+007b 20203e21 branch mouse_app_enter_hibernate + 1 
 
 p_mouse_setgpio_hibernate:
-007b 204042e9 call mouse_set_sdio_high 
-007c 20407fdc call clear_wake 
-007d 20404015 call mouse_before_hibernate_wheel_gpio_set 
-007e 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-007f 20406069 call gpio_out_active 
-0080 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0081 20406042 call gpio_clr_wake 
-0082 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0083 d840003f arg gpcfg_output_high ,temp 
-0084 20406093 call gpio_config_function_int 
-0085 20203e36 branch mouse_setgpio_hibernate + 3 
+007c 204042e9 call mouse_set_sdio_high 
+007d 20407fdc call clear_wake 
+007e 20404015 call mouse_before_hibernate_wheel_gpio_set 
+007f 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0080 20406069 call gpio_out_active 
+0081 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0082 20406042 call gpio_clr_wake 
+0083 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0084 d840003f arg gpcfg_output_high ,temp 
+0085 20406093 call gpio_config_function_int 
+0086 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-0086 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-0087 20406050 call gpio_config_input 
-0088 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-0089 20406050 call gpio_config_input 
-008a 20403f88 call mouse_wheel_check 
-008b 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-008c d840003f arg gpcfg_output_high ,temp 
-008d 20406093 call gpio_config_function_int 
-008e 20203e44 branch mouse_lpm_before_common_next 
+0087 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+0088 20406050 call gpio_config_input 
+0089 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+008a 20406050 call gpio_config_input 
+008b 20403f88 call mouse_wheel_check 
+008c 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+008d d840003f arg gpcfg_output_high ,temp 
+008e 20406093 call gpio_config_function_int 
+008f 20203e44 branch mouse_lpm_before_common_next 
 
 p_mouse_priority_bb_event:
-008f 1a627e00 copy regc ,pdata 
-0090 c01e00b0 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0091 c00200a9 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-0092 c00980a9 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
-0093 c0190096 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-0094 c022009d beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-0095 20204336 branch mouse_priority_bb_event + 2 
+0090 1a627e00 copy regc ,pdata 
+0091 c01e00b1 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0092 c00200aa beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+0093 c00980aa beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
+0094 c0190097 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+0095 c022009e beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+0096 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-0096 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0097 c000809a beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-0098 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-0099 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0097 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0098 c000809b beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+0099 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+009a 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-009a 2040436c call mouse_updata_le_param 
-009b 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-009c 20204373 branch mouse_le_ll_enable_start_enc_flag 
+009b 2040436c call mouse_updata_le_param 
+009c 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+009d 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-009d 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-009e 1fe67c0c sub pdata ,le_interval_15ms ,null 
-009f 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-00a0 67e14372 store 2 ,mem_le_interval_min 
-00a1 67e14374 store 2 ,mem_le_interval_min + 2 
-00a2 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00a3 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-00a4 98467c00 isub temp ,null 
-00a5 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-00a6 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00a7 67e0cb8a store 1 ,mem_lpm_mult_init 
-00a8 20204386 branch mouse_le_conn_param_lpm_enable 
+009e 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+009f 1fe67c0c sub pdata ,le_interval_15ms ,null 
+00a0 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+00a1 67e14372 store 2 ,mem_le_interval_min 
+00a2 67e14374 store 2 ,mem_le_interval_min + 2 
+00a3 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+00a4 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+00a5 98467c00 isub temp ,null 
+00a6 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+00a7 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+00a8 67e0cb8a store 1 ,mem_lpm_mult_init 
+00a9 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_bb_event_reconn_failed:
-00a9 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-00aa c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-00ab 6fe1478c fetch 2 ,mem_ui_state_map 
-00ac c3860000 rtnbit1 ui_state_btn_down 
-00ad c3830000 rtnbit1 ui_state_bt_discovery 
-00ae c3858000 rtnbit1 ui_state_ble_adv 
-00af 20203e20 branch mouse_app_enter_hibernate 
+00aa 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+00ab c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+00ac 6fe1478c fetch 2 ,mem_ui_state_map 
+00ad c3860000 rtnbit1 ui_state_btn_down 
+00ae c3830000 rtnbit1 ui_state_bt_discovery 
+00af c3858000 rtnbit1 ui_state_ble_adv 
+00b0 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_24g_attempt_success:
-00b0 6fe2483c fetch 4 ,mem_24g_addr 
-00b1 67e24891 store 4 ,mem_24g_receiver_addr 
-00b2 67e24993 store 4 ,mem_mouse_24g_addr 
-00b3 204048c6 call mouse_device_poweron_timer_init 
-00b4 2020484e branch mouse_24g_attempt_success 
+00b1 6fe2483c fetch 4 ,mem_24g_addr 
+00b2 67e24891 store 4 ,mem_24g_receiver_addr 
+00b3 67e24993 store 4 ,mem_mouse_24g_addr 
+00b4 204048c6 call mouse_device_poweron_timer_init 
+00b5 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_seting_dpi:
-00b5 2040408f call mouse_setting_dpi_4_level 
-00b6 204000b8 call p_mouse_dpi_led_blink_delay 
-00b7 20204098 branch mouse_seting_sensor_type 
+00b6 2040408f call mouse_setting_dpi_4_level 
+00b7 204000b9 call p_mouse_dpi_led_blink_delay 
+00b8 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00b8 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00b9 c17f8000 rtneq gpio_disable 
-00ba 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00bb 247a0000 nrtn blank 
-00bc 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00bd 247a0000 nrtn blank 
-00be 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00bf 247a0000 nrtn blank 
-00c0 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00c1 247a0000 nrtn blank 
-00c2 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00c3 203a00d6 branch p_mouse_dpi_led_blink_init ,blank 
-00c4 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00c5 20600000 rtn 
+00b9 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00ba c17f8000 rtneq gpio_disable 
+00bb 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00bc 247a0000 nrtn blank 
+00bd 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00be 247a0000 nrtn blank 
+00bf 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00c0 247a0000 nrtn blank 
+00c1 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00c2 247a0000 nrtn blank 
+00c3 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00c4 203a00d7 branch p_mouse_dpi_led_blink_init ,blank 
+00c5 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00c6 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00c6 20403e9b call mouse_adc_read 
-00c7 20404956 call mouse_low_voltage_led_timer 
-00c8 2040232b call g24_pair_timeout_timer 
-00c9 20402556 call g24_reconn_timeout_timer 
-00ca 204047cd call mouse_24g_long_sleep_param_update_timer 
-00cb 204048be call mouse_device_poweron_timer 
-00cc 204000d3 call p_mouse_dpi_led_blink_delay_timer 
-00cd 2040407c call mouse_dpi_key_check_long_press 
-00ce 204044cc call mouse_bt_discovery_check 
-00cf 204000f3 call p_mouse_commbination_key_process 
-00d0 204044ff call mouse_check_discovery_timeout_timer 
-00d1 204000eb call p_mouse_check_direct_timeout_timer 
-00d2 202044c2 branch mouse_bb_event_timer + 13 
+00c7 20403e9b call mouse_adc_read 
+00c8 20404956 call mouse_low_voltage_led_timer 
+00c9 2040232b call g24_pair_timeout_timer 
+00ca 20402556 call g24_reconn_timeout_timer 
+00cb 204047cd call mouse_24g_long_sleep_param_update_timer 
+00cc 204048be call mouse_device_poweron_timer 
+00cd 204000d4 call p_mouse_dpi_led_blink_delay_timer 
+00ce 2040407c call mouse_dpi_key_check_long_press 
+00cf 204044cc call mouse_bt_discovery_check 
+00d0 204000f4 call p_mouse_commbination_key_process 
+00d1 204044ff call mouse_check_discovery_timeout_timer 
+00d2 204000ec call p_mouse_check_direct_timeout_timer 
+00d3 202044c2 branch mouse_bb_event_timer + 13 
 
 p_mouse_dpi_led_blink_delay_timer:
-00d3 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00d4 da4000d6 arg p_mouse_dpi_led_blink_init ,regb 
-00d5 2020318a branch timer_single_step 
+00d4 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00d5 da4000d7 arg p_mouse_dpi_led_blink_init ,regb 
+00d6 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00d6 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00d7 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00d8 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00d9 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00da 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00db 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00dc 67e14930 store 2 ,mem_mouse_on_time 
-00dd 67e14932 store 2 ,mem_mouse_off_time 
-00de da200000 arg 0 ,rega 
-00df 6848c992 fetcht 1 ,mem_mouse_dpi 
-00e0 18408402 increase 2 ,temp 
-00e1 18467c03 sub temp ,3 ,null 
-00e2 204100e5 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00e3 244100e9 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00e4 202048ff branch mouse_dpi_led_blink_init_end 
+00d7 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00d8 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00d9 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00da 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00db 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00dc 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00dd 67e14930 store 2 ,mem_mouse_on_time 
+00de 67e14932 store 2 ,mem_mouse_off_time 
+00df da200000 arg 0 ,rega 
+00e0 6848c992 fetcht 1 ,mem_mouse_dpi 
+00e1 18408402 increase 2 ,temp 
+00e2 18467c03 sub temp ,3 ,null 
+00e3 204100e6 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00e4 244100ea ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00e5 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00e5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00e6 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00e7 18408401 increase 1 ,temp 
-00e8 20600000 rtn 
+00e6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00e7 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00e8 18408401 increase 1 ,temp 
+00e9 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00e9 184085fd increase -3 ,temp 
-00ea 20600000 rtn 
+00ea 184085fd increase -3 ,temp 
+00eb 20600000 rtn 
 
 p_mouse_check_direct_timeout_timer:
-00eb da604b77 arg mem_mouse_direct_timer ,regc 
-00ec da4000ee arg p_mouse_check_direct_timeout ,regb 
-00ed 20204506 branch mouse_check_direct_timeout_timer + 2 
+00ec da604b77 arg mem_mouse_direct_timer ,regc 
+00ed da4000ef arg p_mouse_check_direct_timeout ,regb 
+00ee 20204506 branch mouse_check_direct_timeout_timer + 2 
 
 p_mouse_check_direct_timeout:
-00ee 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-00ef c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-00f0 6fe0cab0 fetch 1 ,mem_reconn_times 
-00f1 243a470e nbranch mouse_polling_device ,blank 
-00f2 20203e20 branch mouse_app_enter_hibernate 
+00ef 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+00f0 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+00f1 6fe0cab0 fetch 1 ,mem_reconn_times 
+00f2 243a470e nbranch mouse_polling_device ,blank 
+00f3 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_commbination_key_process:
-00f3 6fe0c938 fetch 1 ,mem_device_flag 
-00f4 c00000f9 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-00f5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00f6 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-00f7 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-00f8 202000fc branch p_mouse_commbination_key_start 
+00f4 6fe0c938 fetch 1 ,mem_device_flag 
+00f5 c00000fa beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+00f6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00f7 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+00f8 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+00f9 202000fd branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-00f9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00fa c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-00fb 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+00fa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00fb c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+00fc 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-00fc 6048cb9d storet 1 ,mem_mouse_commbination_key 
-00fd 20404115 call mouse_check_key_gpio 
-00fe 1fe17e07 and pdata ,0x07 ,pdata 
-00ff 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-0100 98467c00 isub temp ,null 
-0101 20228103 branch p_mouse_commbination_key_down ,zero 
-0102 202044eb branch mouse_commbination_key_up 
+00fd 6048cb9d storet 1 ,mem_mouse_commbination_key 
+00fe 20404115 call mouse_check_key_gpio 
+00ff 1fe17e07 and pdata ,0x07 ,pdata 
+0100 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+0101 98467c00 isub temp ,null 
+0102 20228104 branch p_mouse_commbination_key_down ,zero 
+0103 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-0103 204044f6 call mouse_combination_ui_timer 
-0104 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-0105 c1008000 rtneq commbination_key_state_down 
-0106 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-0107 20600000 rtn 
+0104 204044f6 call mouse_combination_ui_timer 
+0105 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+0106 c1008000 rtneq commbination_key_state_down 
+0107 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+0108 20600000 rtn 
 
 p_mouse_start_discovery:
-0108 6fe1478c fetch 2 ,mem_ui_state_map 
-0109 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-010a 2040c581 call mouse_stop_le_adv ,true 
-010b 6fe1478c fetch 2 ,mem_ui_state_map 
-010c 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-010d 2040c322 call mouse_cancel_reconnect ,true 
-010e 20204554 branch mouse_start_discovery + 1 
+0109 6fe1478c fetch 2 ,mem_ui_state_map 
+010a 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+010b 2040c581 call mouse_stop_le_adv ,true 
+010c 6fe1478c fetch 2 ,mem_ui_state_map 
+010d 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+010e 2040c322 call mouse_cancel_reconnect ,true 
+010f 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-010f 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-0110 245a7861 ncall ui_timer_init ,blank 
-0111 704be200 jam 0 ,mem_power_on_flag 
-0112 20207851 branch ui_timer_check + 1 
+0110 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0111 245a7861 ncall ui_timer_init ,blank 
+0112 704be200 jam 0 ,mem_power_on_flag 
+0113 20207851 branch ui_timer_check + 1 
 
 p_le_slave_match:
-0113 6fe0c3dd fetch 1 ,mem_le_md_count 
-0114 1fe0fe01 pincrease 1 
-0115 67e0c3dd store 1 ,mem_le_md_count 
-0116 c006165a beq le_md_max_count ,le_slave_cont 
-0117 2040191b call le_acknowledge 
-0118 2040196a call le_prepare_tx 
-0119 6fe082bd fetch 1 ,mem_le_tx_phy 
-011a 2040168b call le_enable_phy_by_pdata 
-011b 20401838 call le_transmit 
-011c 20201655 branch le_slave_match + 10 
+0114 6fe0c3dd fetch 1 ,mem_le_md_count 
+0115 1fe0fe01 pincrease 1 
+0116 67e0c3dd store 1 ,mem_le_md_count 
+0117 c006165a beq le_md_max_count ,le_slave_cont 
+0118 2040191b call le_acknowledge 
+0119 2040196a call le_prepare_tx 
+011a 6fe082bd fetch 1 ,mem_le_tx_phy 
+011b 2040168b call le_enable_phy_by_pdata 
+011c 20401838 call le_transmit 
+011d 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-011d efe10006 ifetch 2 ,contr 
-011e c0020120 beq le_l2cap_cid_att ,p_le_parse_att 
-011f 202019e4 branch le_parse_l2cap + 10 
+011e efe10006 ifetch 2 ,contr 
+011f c0020121 beq le_l2cap_cid_att ,p_le_parse_att 
+0120 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-0120 efe18006 ifetch 3 ,contr 
-0121 67e1c436 store 3 ,mem_le_att_opcode 
-0122 c0090124 beq attop_write_request ,p_le_parse_att_write_request 
-0123 20201cd3 branch le_parse_att + 2 
+0121 efe18006 ifetch 3 ,contr 
+0122 67e1c436 store 3 ,mem_le_att_opcode 
+0123 c0090125 beq attop_write_request ,p_le_parse_att_write_request 
+0124 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-0124 18c22200 copy contr ,rega 
-0125 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0126 1fe0a5fd add pdata ,-3 ,regb 
-0127 20401a25 call le_writeatt_cb 
-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 
+0125 18c22200 copy contr ,rega 
+0126 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+0127 1fe0a5fd add pdata ,-3 ,regb 
+0128 20401a25 call le_writeatt_cb 
+0129 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+012a 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+012b 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+012c c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+012d 5800001a setarg 0x001a 
+012e 68494437 fetcht 2 ,mem_le_att_handle 
+012f 98467c00 isub temp ,null 
+0130 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0131 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+0132 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-0132 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0133 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-0134 202026bc branch g24_lpm_wait + 1 
+0133 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+0134 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+0135 202026bc branch g24_lpm_wait + 1 
+
+p_mouse_motion:
+0136 78547c00 disable user 
+0137 58000000 setarg 0 
+0138 67e348d1 store 6 ,mem_mouse_x 
+0139 20404240 call mouse_check_sensor_data 
+013a 2040013c call p_mouse_spi_sdio_gpio_inputup 
+013b 20203f75 branch mouse_motion + 5 
+
+p_mouse_spi_sdio_gpio_inputup:
+013c 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+013d 20203f56 branch mouse_gpio_config_input_pu 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/public_3mode/program/patch.prog	(revision 494)
+++ /YC1308AC/branch/mouse_project/public_3mode/program/patch.prog	(working copy)
@@ -14,6 +14,7 @@
 	beq patch19_1,p_mouse_setgpio_hibernate
 	beq patch19_2,p_mouse_lpm_before_common
 	beq patch19_4,p_mouse_adc_read_start
+	beq patch19_6,p_mouse_motion
 	beq patch1a_0,p_mouse_seting_dpi
 	beq patch1a_6,p_mouse_priority_bb_event
 	beq patch1b_1,p_mouse_bb_event_timer
@@ -480,4 +481,16 @@
 	ncall g24_transmit_by_interrupt_enable,blank
 	branch g24_lpm_wait+1
 
- 	
+p_mouse_motion:
+	disable user
+	setarg 0
+	store 6,mem_mouse_x
+	call mouse_check_sensor_data
+	call p_mouse_spi_sdio_gpio_inputup
+	branch mouse_motion+5
+
+p_mouse_spi_sdio_gpio_inputup:
+	fetcht 1,mem_mouse_sensor_sdio_gpio
+	branch mouse_gpio_config_input_pu
+
+
