Index: output/eeprom.dat
===================================================================
--- /branch/mouse_project/YJX_Project/mingAo_Only24g/output/eeprom.dat	(revision 2877)
+++ /branch/mouse_project/YJX_Project/mingAo_Only24g/output/eeprom.dat	(working copy)
@@ -55,7 +55,7 @@
 c0
 73
 02
-2a
+24
 20
 20
 2a
@@ -339,7 +339,7 @@
 20
 40
 01
-ee
+ec
 68
 02
 4c
@@ -455,7 +455,7 @@
 20
 20
 01
-c2
+c0
 20
 40
 04
@@ -847,7 +847,7 @@
 20
 20
 01
-6b
+69
 68
 00
 cc
@@ -887,7 +887,7 @@
 20
 20
 01
-07
+09
 c6
 13
 00
@@ -939,7 +939,7 @@
 20
 40
 02
-0d
+0b
 68
 12
 00
@@ -976,6 +976,14 @@
 20
 02
 9b
+70
+89
+5b
+86
+70
+89
+5c
+a0
 20
 40
 34
@@ -983,7 +991,7 @@
 20
 35
 80
-f9
+fb
 70
 80
 78
@@ -1003,7 +1011,7 @@
 20
 40
 00
-fb
+fd
 20
 20
 74
@@ -1011,11 +1019,11 @@
 24
 55
 81
-71
+6f
 20
 40
 01
-05
+07
 20
 75
 80
@@ -1027,7 +1035,7 @@
 20
 40
 01
-b2
+b0
 68
 00
 cb
@@ -1035,11 +1043,11 @@
 c2
 81
 01
-04
+06
 20
 40
 02
-40
+3a
 c0
 03
 86
@@ -1047,7 +1055,7 @@
 20
 20
 01
-9b
+99
 70
 42
 12
@@ -1059,7 +1067,7 @@
 20
 40
 01
-05
+07
 20
 40
 40
@@ -1071,15 +1079,15 @@
 c0
 18
 01
-19
+1b
 c0
 18
 81
-62
+64
 c0
 2c
 01
-10
+12
 20
 40
 40
@@ -1091,11 +1099,11 @@
 20
 20
 01
-09
+0b
 20
 40
-01
-64
+02
+91
 68
 00
 c6
@@ -1103,7 +1111,7 @@
 c0
 2b
 81
-14
+16
 20
 20
 40
@@ -1127,11 +1135,11 @@
 20
 20
 01
-26
+28
 20
 40
-01
-64
+02
+91
 68
 00
 c6
@@ -1139,15 +1147,15 @@
 c0
 2d
 01
-1f
+21
 c0
 2a
 01
-2d
+2f
 c0
 6c
 01
-53
+55
 20
 20
 40
@@ -1175,7 +1183,7 @@
 20
 40
 01
-26
+28
 20
 20
 02
@@ -1207,7 +1215,7 @@
 20
 20
 01
-26
+28
 20
 40
 40
@@ -1235,7 +1243,7 @@
 20
 22
 81
-40
+42
 1f
 e6
 7c
@@ -1243,7 +1251,7 @@
 24
 22
 81
-43
+45
 58
 00
 00
@@ -1259,7 +1267,7 @@
 24
 22
 81
-09
+0b
 58
 00
 00
@@ -1275,11 +1283,11 @@
 20
 22
 81
-40
+42
 20
 40
 01
-50
+52
 20
 20
 40
@@ -1295,7 +1303,7 @@
 20
 20
 01
-26
+28
 1f
 e6
 7c
@@ -1303,7 +1311,7 @@
 24
 22
 81
-09
+0b
 58
 00
 00
@@ -1319,7 +1327,7 @@
 24
 22
 81
-09
+0b
 58
 00
 00
@@ -1335,11 +1343,11 @@
 24
 22
 81
-09
+0b
 20
 40
 01
-50
+52
 70
 46
 e0
@@ -1375,7 +1383,7 @@
 24
 22
 81
-09
+0b
 58
 00
 00
@@ -1391,7 +1399,7 @@
 24
 22
 81
-09
+0b
 58
 00
 00
@@ -1407,7 +1415,7 @@
 24
 22
 81
-09
+0b
 70
 46
 e0
@@ -1419,43 +1427,27 @@
 20
 20
 01
-26
+28
 20
 40
-01
-64
+02
+91
 20
 20
 40
 ea
-20
-40
-01
-05
-58
+68
 00
-80
-06
-20
-40
-64
-13
+cb
+0a
 20
+7a
 00
-2e
-e0
-da
-60
+00
+70
 4b
-a1
-20
-40
-01
-26
-20
-20
-02
-97
+0a
+00
 58
 00
 08
@@ -1503,7 +1495,7 @@
 20
 40
 01
-89
+87
 d8
 40
 00
@@ -1571,7 +1563,7 @@
 20
 40
 01
-ea
+e8
 20
 20
 65
@@ -1611,7 +1603,7 @@
 20
 40
 02
-72
+6c
 d8
 40
 00
@@ -1659,7 +1651,7 @@
 24
 55
 81
-98
+96
 68
 00
 c7
@@ -1735,7 +1727,7 @@
 c2
 00
 01
-ad
+ab
 20
 60
 00
@@ -1743,7 +1735,7 @@
 58
 00
 01
-bf
+bd
 60
 01
 4d
@@ -1759,7 +1751,7 @@
 58
 00
 01
-db
+d9
 60
 01
 41
@@ -1767,7 +1759,7 @@
 58
 00
 01
-c6
+c4
 60
 01
 41
@@ -1775,7 +1767,7 @@
 58
 00
 01
-fc
+fa
 60
 01
 41
@@ -1783,7 +1775,7 @@
 58
 00
 02
-17
+11
 60
 01
 41
@@ -1827,7 +1819,7 @@
 20
 40
 01
-c9
+c7
 20
 20
 3e
@@ -1847,7 +1839,7 @@
 20
 40
 02
-44
+3e
 60
 00
 cb
@@ -1859,7 +1851,7 @@
 20
 40
 02
-72
+6c
 1a
 22
 7e
@@ -1867,7 +1859,7 @@
 c2
 82
 81
-d3
+d1
 20
 20
 3d
@@ -1911,15 +1903,15 @@
 c0
 1c
 81
-e0
+de
 c0
 1e
 01
-f6
+f4
 c0
 1d
 01
-f1
+ef
 20
 20
 41
@@ -1955,11 +1947,11 @@
 20
 40
 01
-ee
+ec
 20
 40
 01
-ea
+e8
 20
 20
 65
@@ -1994,8 +1986,8 @@
 00
 20
 40
-02
-13
+01
+66
 70
 4d
 7d
@@ -2003,7 +1995,7 @@
 20
 40
 01
-ee
+ec
 20
 40
 04
@@ -2031,7 +2023,7 @@
 20
 40
 01
-ea
+e8
 20
 20
 65
@@ -2054,8 +2046,8 @@
 21
 20
 40
-02
-13
+01
+66
 20
 40
 74
@@ -2128,26 +2120,10 @@
 20
 68
 30
-68
-00
-cb
-0a
-20
-7a
-00
-00
-70
-4b
-0a
-00
-20
-20
-01
-6b
 20
 40
 02
-23
+1d
 20
 40
 42
@@ -2155,11 +2131,11 @@
 20
 40
 02
-1b
+15
 20
 20
 02
-1e
+18
 da
 60
 4b
@@ -2167,7 +2143,7 @@
 da
 40
 01
-6b
+69
 20
 20
 33
@@ -2179,7 +2155,7 @@
 da
 40
 02
-21
+1b
 20
 20
 33
@@ -2199,7 +2175,7 @@
 da
 40
 02
-26
+20
 20
 20
 33
@@ -2235,7 +2211,7 @@
 20
 40
 02
-83
+7d
 20
 40
 40
@@ -2247,11 +2223,11 @@
 20
 40
 02
-3e
+38
 24
 34
 02
-35
+2f
 20
 40
 05
@@ -2259,7 +2235,7 @@
 20
 40
 02
-38
+32
 20
 20
 3f
@@ -2303,7 +2279,7 @@
 20
 40
 02
-40
+3a
 20
 20
 40
@@ -2319,7 +2295,7 @@
 20
 40
 02
-56
+50
 20
 20
 40
@@ -2351,11 +2327,11 @@
 20
 41
 02
-72
+6c
 24
 41
 02
-7d
+77
 1a
 62
 04
@@ -2387,11 +2363,11 @@
 c0
 03
 82
-77
+71
 c0
 00
 02
-7a
+74
 20
 60
 00
@@ -2411,7 +2387,7 @@
 20
 40
 02
-44
+3e
 60
 00
 cb
@@ -2431,7 +2407,7 @@
 20
 40
 02
-44
+3e
 60
 00
 cb
@@ -2451,7 +2427,7 @@
 20
 40
 02
-44
+3e
 60
 00
 cb
@@ -2471,7 +2447,7 @@
 20
 40
 02
-44
+3e
 60
 00
 cb
@@ -2483,7 +2459,7 @@
 20
 40
 02
-72
+6c
 70
 4b
 b1
@@ -2499,7 +2475,7 @@
 20
 40
 02
-44
+3e
 60
 00
 cb
@@ -2527,11 +2503,11 @@
 20
 20
 02
-81
+7b
 20
 21
 02
-7b
+75
 f9
 3f
 a2
@@ -2543,7 +2519,7 @@
 20
 21
 02
-78
+72
 f9
 20
 22
@@ -2583,11 +2559,11 @@
 c0
 02
 02
-95
+8f
 c0
 04
 02
-8a
+84
 c0
 05
 bf
@@ -2656,6 +2632,30 @@
 20
 3f
 c8
+20
+40
+01
+07
+58
+00
+80
+06
+20
+40
+64
+13
+20
+00
+2e
+e0
+da
+60
+4b
+a1
+20
+40
+01
+28
 68
 00
 c7
@@ -4283,7 +4283,7 @@
 20
 40
 01
-a9
+a7
 20
 34
 04
@@ -4431,7 +4431,7 @@
 20
 40
 01
-ee
+ec
 68
 02
 4c
@@ -7259,7 +7259,7 @@
 20
 40
 02
-40
+3a
 c0
 00
 87
@@ -7512,8 +7512,8 @@
 60
 00
 00
-9a
-4a
+bd
+c5
 aa
 55
 08
@@ -7996,7 +7996,7 @@
 00
 b3
 4b
-08
+09
 00
 aa
 55
@@ -8071,8 +8071,8 @@
 0f
 0f
 0f
-2d
-17
+de
+29
 ff
 ff
 ff
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YJX_Project/mingAo_Only24g/output/program.lis	(revision 2877)
+++ /branch/mouse_project/YJX_Project/mingAo_Only24g/output/program.lis	(working copy)
@@ -12,7 +12,7 @@
 0009 c059002e beq patch16_2 ,p_g24_dispatch 
 000a c06200f3 beq patch18_4 ,p_device_init 
 000b c071829b beq patch1c_3 ,p_mouse_seting_dpi 
-000c c073022a beq patch1c_6 ,p_mouse_motion 
+000c c0730224 beq patch1c_6 ,p_mouse_motion 
 000d 20202a8e branch loop 
 
 pf_patch_ext:
@@ -111,7 +111,7 @@
 0050 6800cd89 fetch 1 ,mem_g24_conn_sm 
 0051 793ffe01 set0 state_24g_pair ,pdata 
 0052 6000cd89 store 1 ,mem_g24_conn_sm 
-0053 204001ee call p_mouse_tx_power_init 
+0053 204001ec call p_mouse_tx_power_init 
 0054 68024c65 fetch 4 ,mem_24g_addr 
 0055 680a4c49 fetcht 4 ,mem_24g_paring_addr 
 0056 98467c00 isub temp ,null 
@@ -148,7 +148,7 @@
 006d 70480e00 jam 0 ,mem_mouse_long_mult_flag 
 006e 20402f20 call g24_tx_attemp_dongle_succ + 4 
 006f 20400381 call p_g24_txbuf_clear 
-0070 202001c2 branch p_g24_transmit_by_interrupt_enable 
+0070 202001c0 branch p_g24_transmit_by_interrupt_enable 
 
 p_g24_transmit_by_interrupt:
 0071 204004b1 call p_g24_timer_check 
@@ -278,7 +278,7 @@
 00cf 6000cd86 store 1 ,mem_24g_search_dongle_action 
 00d0 58000708 setarg g24_disconn_nodata_timer 
 00d1 600146b0 store 2 ,mem_mouse_no_data_timer 
-00d2 2020016b branch p_mouse_sensor_powerdown 
+00d2 20200169 branch p_mouse_sensor_powerdown 
 
 p_g24_search_dongle_success:
 00d3 6800cc69 fetch 1 ,mem_24g_abort_pac 
@@ -292,7 +292,7 @@
 
 p_mouse_init_sensor_reset:
 00db 704b0a01 jam 1 ,mem_mouse_init_sensor_reset_flag 
-00dc 20200107 branch p_mouse_init_sunt 
+00dc 20200109 branch p_mouse_init_sunt 
 
 p_mouse_before_lpm:
 00dd c6130000 rtnmark1 mark_24g 
@@ -313,7 +313,7 @@
 
 p_mouse_setgpio_lpm_before:
 00e8 20403ebf call mouse_lpm_before_common 
-00e9 2040020d call p_ice_gpio_set_input_pu 
+00e9 2040020b call p_ice_gpio_set_input_pu 
 00ea 68120070 hfetch 4 ,core_gpio_oe0 
 00eb 681a0078 hfetcht 4 ,core_gpio_pu0 
 00ec 98418400 ior temp ,temp 
@@ -327,578 +327,578 @@
 00f2 2020029b branch p_mouse_seting_sensor_type 
 
 p_device_init:
-00f3 20403416 call app_lpm_mult_enable 
-00f4 203580f9 branch p_device_init_common ,wake 
-00f5 70807820 jam 0x20 ,core_gpio_pu0 
-00f6 6800c1de fetch 1 ,mem_tx_power 
-00f7 6000ccf4 store 1 ,mem_tx_power_temp 
-00f8 204003b3 call power_ctrl_pac_succ_cnt_init 
+00f3 70895b86 jam 0x86 ,0x895b 
+00f4 70895ca0 jam 0xa0 ,0x895c 
+00f5 20403416 call app_lpm_mult_enable 
+00f6 203580fb branch p_device_init_common ,wake 
+00f7 70807820 jam 0x20 ,core_gpio_pu0 
+00f8 6800c1de fetch 1 ,mem_tx_power 
+00f9 6000ccf4 store 1 ,mem_tx_power_temp 
+00fa 204003b3 call power_ctrl_pac_succ_cnt_init 
 
 p_device_init_common:
-00f9 204000fb call p_mouse_init 
-00fa 202074b9 branch enable_authrom 
+00fb 204000fd call p_mouse_init 
+00fc 202074b9 branch enable_authrom 
 
 p_mouse_init:
-00fb 24558171 ncall p_mouse_setting_config ,wake 
-00fc 20400105 call p_mouse_spi_init 
-00fd 20758000 rtn wake 
-00fe 20400570 call p_drawing_optima_init 
-00ff 204001b2 call p_mouse_cb_fuction 
-0100 6800cb19 fetch 1 ,mem_power_on_flag 
-0101 c2810104 bbit1 2 ,p_mouse_skip_24g_pair 
-0102 20400240 call p_mouse_check_key_gpio 
-0103 c003860f beq mouse_lmr_button ,p_test_mode_start 
+00fd 2455816f ncall p_mouse_setting_config ,wake 
+00fe 20400107 call p_mouse_spi_init 
+00ff 20758000 rtn wake 
+0100 20400570 call p_drawing_optima_init 
+0101 204001b0 call p_mouse_cb_fuction 
+0102 6800cb19 fetch 1 ,mem_power_on_flag 
+0103 c2810106 bbit1 2 ,p_mouse_skip_24g_pair 
+0104 2040023a call p_mouse_check_key_gpio 
+0105 c003860f beq mouse_lmr_button ,p_test_mode_start 
 
 p_mouse_skip_24g_pair:
-0104 2020019b branch p_mouse_wakeup_from_power 
+0106 20200199 branch p_mouse_wakeup_from_power 
 
 p_mouse_spi_init:
-0105 70421276 jam 0x76 ,mem_spi_init_clk 
-0106 20203d36 branch mouse_spi_init 
+0107 70421276 jam 0x76 ,mem_spi_init_clk 
+0108 20203d36 branch mouse_spi_init 
 
 p_mouse_init_sunt:
-0107 20400105 call p_mouse_spi_init 
-0108 204040c0 call mouse_spi_sdio_gpio_pollup 
+0109 20400107 call p_mouse_spi_init 
+010a 204040c0 call mouse_spi_sdio_gpio_pollup 
 
 p_mouse_init_sensor:
-0109 204040d9 call mouse_read_sensor_id 
-010a c0180119 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-010b c0188162 beq p3065_id1 ,p_mouse_p3065_init_param 
-010c c02c0110 beq pka5857_id1 ,p_mouse_ka5857_id2_judge 
-010d 204040d1 call mouse_twspi_reset 
-010e 200003e8 nop 1000 
-010f 20200109 branch p_mouse_init_sensor 
+010b 204040d9 call mouse_read_sensor_id 
+010c c018011b beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+010d c0188164 beq p3065_id1 ,p_mouse_p3065_init_param 
+010e c02c0112 beq pka5857_id1 ,p_mouse_ka5857_id2_judge 
+010f 204040d1 call mouse_twspi_reset 
+0110 200003e8 nop 1000 
+0111 2020010b branch p_mouse_init_sensor 
 
 p_mouse_ka5857_id2_judge:
-0110 20400164 call p_mouse_sensor_poweron 
-0111 6800c6de fetch 1 ,mem_sensor_id2 
-0112 c02b8114 beq pka5857_id2 ,p_mouse_ka5857_init_param 
-0113 202040e0 branch mouse_init_p32xx_id2_judge 
+0112 20400291 call p_mouse_sensor_poweron 
+0113 6800c6de fetch 1 ,mem_sensor_id2 
+0114 c02b8116 beq pka5857_id2 ,p_mouse_ka5857_init_param 
+0115 202040e0 branch mouse_init_p32xx_id2_judge 
 
 p_mouse_ka5857_init_param:
-0114 58009106 setarg 0x9106 
-0115 20406413 call twspi_write 
-0116 7046e00b jam ka5857 ,mem_config_sensor_type 
-0117 da604b93 arg mem_sensor_ka5857_init ,regc 
-0118 20200126 branch p_sensor_wr_seq 
+0116 58009106 setarg 0x9106 
+0117 20406413 call twspi_write 
+0118 7046e00b jam ka5857 ,mem_config_sensor_type 
+0119 da604b93 arg mem_sensor_ka5857_init ,regc 
+011a 20200128 branch p_sensor_wr_seq 
 
 p_mouse_init_p32xx_id2_judge:
-0119 20400164 call p_mouse_sensor_poweron 
-011a 6800c6de fetch 1 ,mem_sensor_id2 
-011b c02d011f beq p_mx8650 ,p_mouse_mx8650_init_param 
-011c c02a012d beq pka8_id2 ,p_mouse_ka8_init_param 
-011d c06c0153 beq p8009_id2 ,p_mouse_8009_init_param 
-011e 202040e0 branch mouse_init_p32xx_id2_judge 
+011b 20400291 call p_mouse_sensor_poweron 
+011c 6800c6de fetch 1 ,mem_sensor_id2 
+011d c02d0121 beq p_mx8650 ,p_mouse_mx8650_init_param 
+011e c02a012f beq pka8_id2 ,p_mouse_ka8_init_param 
+011f c06c0155 beq p8009_id2 ,p_mouse_8009_init_param 
+0120 202040e0 branch mouse_init_p32xx_id2_judge 
 
 p_mouse_mx8650_init_param:
-011f 7046e007 jam mx8650 ,mem_config_sensor_type 
-0120 58008006 setarg 0x8006 
-0121 20406413 call twspi_write 
-0122 20407ec1 call delay_10ms 
-0123 da604b4b arg mem_sensor_8650_init ,regc 
-0124 20400126 call p_sensor_wr_seq 
-0125 20200297 branch p_mouse_dpi_config 
+0121 7046e007 jam mx8650 ,mem_config_sensor_type 
+0122 58008006 setarg 0x8006 
+0123 20406413 call twspi_write 
+0124 20407ec1 call delay_10ms 
+0125 da604b4b arg mem_sensor_8650_init ,regc 
+0126 20400128 call p_sensor_wr_seq 
+0127 20200297 branch p_mouse_dpi_config 
 
 p_sensor_wr_seq:
-0126 ea610000 ifetch 2 ,regc 
-0127 d840ffff arg 0xffff ,temp 
-0128 98467c00 isub temp ,null 
-0129 20628000 rtn zero 
-012a 20406413 call twspi_write 
-012b 1a60a602 increase 2 ,regc 
-012c 20200126 branch p_sensor_wr_seq 
+0128 ea610000 ifetch 2 ,regc 
+0129 d840ffff arg 0xffff ,temp 
+012a 98467c00 isub temp ,null 
+012b 20628000 rtn zero 
+012c 20406413 call twspi_write 
+012d 1a60a602 increase 2 ,regc 
+012e 20200128 branch p_sensor_wr_seq 
 
 p_mouse_ka8_init_param:
-012d 204040f6 call mouse_sensor_disable_wp 
-012e 58009a5b setarg 0x9a5b 
-012f 20406413 call twspi_write 
-0130 5800000d setarg 0x0d 
-0131 20406414 call twspi_read 
-0132 1fe67c12 sub pdata ,0x12 ,null 
-0133 20228140 branch p_mouse_ka8ul_init_param ,zero 
-0134 1fe67c0a sub pdata ,0x0a ,null 
-0135 24228143 nbranch p_mouse_ka8hd_sensor_judge ,zero 
-0136 5800000e setarg 0x0e 
-0137 20406414 call twspi_read 
-0138 1fe67ce5 sub pdata ,0xe5 ,null 
-0139 24228109 nbranch p_mouse_init_sensor ,zero 
-013a 58000010 setarg 0x10 
-013b 20406414 call twspi_read 
-013c 1fe67ca5 sub pdata ,0xa5 ,null 
-013d 20228140 branch p_mouse_ka8ul_init_param ,zero 
-013e 20400150 call p_mouse_enable_ka8_sensor_wp 
-013f 202040e6 branch mouse_ka8_init_param 
+012f 204040f6 call mouse_sensor_disable_wp 
+0130 58009a5b setarg 0x9a5b 
+0131 20406413 call twspi_write 
+0132 5800000d setarg 0x0d 
+0133 20406414 call twspi_read 
+0134 1fe67c12 sub pdata ,0x12 ,null 
+0135 20228142 branch p_mouse_ka8ul_init_param ,zero 
+0136 1fe67c0a sub pdata ,0x0a ,null 
+0137 24228145 nbranch p_mouse_ka8hd_sensor_judge ,zero 
+0138 5800000e setarg 0x0e 
+0139 20406414 call twspi_read 
+013a 1fe67ce5 sub pdata ,0xe5 ,null 
+013b 2422810b nbranch p_mouse_init_sensor ,zero 
+013c 58000010 setarg 0x10 
+013d 20406414 call twspi_read 
+013e 1fe67ca5 sub pdata ,0xa5 ,null 
+013f 20228142 branch p_mouse_ka8ul_init_param ,zero 
+0140 20400152 call p_mouse_enable_ka8_sensor_wp 
+0141 202040e6 branch mouse_ka8_init_param 
 
 p_mouse_ka8ul_init_param:
-0140 7046e009 jam ka8_ul ,mem_config_sensor_type 
-0141 da604b65 arg mem_sensor_ka8ul_init ,regc 
-0142 20200126 branch p_sensor_wr_seq 
+0142 7046e009 jam ka8_ul ,mem_config_sensor_type 
+0143 da604b65 arg mem_sensor_ka8ul_init ,regc 
+0144 20200128 branch p_sensor_wr_seq 
 
 p_mouse_ka8hd_sensor_judge:
-0143 1fe67c10 sub pdata ,0x10 ,null 
-0144 24228109 nbranch p_mouse_init_sensor ,zero 
-0145 5800000e setarg 0x0e 
-0146 20406414 call twspi_read 
-0147 1fe67cc5 sub pdata ,0xc5 ,null 
-0148 24228109 nbranch p_mouse_init_sensor ,zero 
-0149 58000010 setarg 0x10 
-014a 20406414 call twspi_read 
-014b 1fe67c38 sub pdata ,0x38 ,null 
-014c 24228109 nbranch p_mouse_init_sensor ,zero 
+0145 1fe67c10 sub pdata ,0x10 ,null 
+0146 2422810b nbranch p_mouse_init_sensor ,zero 
+0147 5800000e setarg 0x0e 
+0148 20406414 call twspi_read 
+0149 1fe67cc5 sub pdata ,0xc5 ,null 
+014a 2422810b nbranch p_mouse_init_sensor ,zero 
+014b 58000010 setarg 0x10 
+014c 20406414 call twspi_read 
+014d 1fe67c38 sub pdata ,0x38 ,null 
+014e 2422810b nbranch p_mouse_init_sensor ,zero 
 
 p_mouse_ka8hd_init_param:
-014d 20400150 call p_mouse_enable_ka8_sensor_wp 
-014e 7046e00a jam ka8_hd ,mem_config_sensor_type 
-014f 20600000 rtn 
+014f 20400152 call p_mouse_enable_ka8_sensor_wp 
+0150 7046e00a jam ka8_hd ,mem_config_sensor_type 
+0151 20600000 rtn 
 
 p_mouse_enable_ka8_sensor_wp:
-0150 5800005b setarg 0x005b 
-0151 20406413 call twspi_write 
-0152 202040f4 branch mouse_sensor_enable_wp 
+0152 5800005b setarg 0x005b 
+0153 20406413 call twspi_write 
+0154 202040f4 branch mouse_sensor_enable_wp 
 
 p_mouse_8009_init_param:
-0153 58000016 setarg 0x16 
-0154 20406414 call twspi_read 
-0155 1fe67cbd sub pdata ,0xbd ,null 
-0156 24228109 nbranch p_mouse_init_sensor ,zero 
-0157 58000019 setarg 0x19 
-0158 20406414 call twspi_read 
-0159 1fe67c55 sub pdata ,0x55 ,null 
-015a 24228109 nbranch p_mouse_init_sensor ,zero 
-015b 5800001b setarg 0x1b 
-015c 20406414 call twspi_read 
-015d 1fe67c1d sub pdata ,0x1d ,null 
-015e 24228109 nbranch p_mouse_init_sensor ,zero 
-015f 7046e008 jam p8009 ,mem_config_sensor_type 
-0160 da604b83 arg mem_sensor_8009_init ,regc 
-0161 20200126 branch p_sensor_wr_seq 
+0155 58000016 setarg 0x16 
+0156 20406414 call twspi_read 
+0157 1fe67cbd sub pdata ,0xbd ,null 
+0158 2422810b nbranch p_mouse_init_sensor ,zero 
+0159 58000019 setarg 0x19 
+015a 20406414 call twspi_read 
+015b 1fe67c55 sub pdata ,0x55 ,null 
+015c 2422810b nbranch p_mouse_init_sensor ,zero 
+015d 5800001b setarg 0x1b 
+015e 20406414 call twspi_read 
+015f 1fe67c1d sub pdata ,0x1d ,null 
+0160 2422810b nbranch p_mouse_init_sensor ,zero 
+0161 7046e008 jam p8009 ,mem_config_sensor_type 
+0162 da604b83 arg mem_sensor_8009_init ,regc 
+0163 20200128 branch p_sensor_wr_seq 
 
 p_mouse_p3065_init_param:
-0162 20400164 call p_mouse_sensor_poweron 
-0163 202040ea branch mouse_p3065_init_param 
+0164 20400291 call p_mouse_sensor_poweron 
+0165 202040ea branch mouse_p3065_init_param 
 
-p_mouse_sensor_poweron:
-0164 20400105 call p_mouse_spi_init 
-0165 58008006 setarg 0x8006 
-0166 20406413 call twspi_write 
-0167 20002ee0 nop 12000 
-0168 da604ba1 arg mem_sensor_poweron_init ,regc 
-0169 20400126 call p_sensor_wr_seq 
-016a 20200297 branch p_mouse_dpi_config 
+p_mouse_sensor_powerdown_check:
+0166 6800cb0a fetch 1 ,mem_mouse_init_sensor_reset_flag 
+0167 207a0000 rtn blank 
+0168 704b0a00 jam 0 ,mem_mouse_init_sensor_reset_flag 
 
 p_mouse_sensor_powerdown:
-016b 58000806 setarg 0x0806 
-016c 20406414 call twspi_read 
-016d 1fe1fe08 or pdata ,0x08 ,pdata 
-016e 1fed7e00 lshift8 pdata ,pdata 
-016f 1fe0fe06 add pdata ,0x06 ,pdata 
-0170 20206413 branch twspi_write 
+0169 58000806 setarg 0x0806 
+016a 20406414 call twspi_read 
+016b 1fe1fe08 or pdata ,0x08 ,pdata 
+016c 1fed7e00 lshift8 pdata ,pdata 
+016d 1fe0fe06 add pdata ,0x06 ,pdata 
+016e 20206413 branch twspi_write 
 
 p_mouse_setting_config:
-0171 204002ed call p_g24_set_device_addr 
-0172 20403e6e call mouse_gpio_init 
-0173 20403e1e call mouse_param_init 
-0174 58000000 setarg 0 
-0175 60014154 store 2 ,mem_lpm_interval 
-0176 20400189 call p_mouse_set_gpio_control_sensor 
-0177 d840001a arg mouse_spi1_sdio_gpio ,temp 
-0178 204067fb call gpio_config_input 
-0179 6808c6f7 fetcht 1 ,mem_select_sensor_angle_gpio 
-017a 793f8407 set0 gpio_active_bit ,temp 
-017b 20406806 call gpio_set_high_impedance 
-017c 58001802 setarg 0x1802 
-017d 600140bd store 2 ,mem_fcomp_mul 
-017e 20403e54 call mouse_adc_init 
-017f 20405810 call le_set_config_fixed_ltk 
-0180 20405839 call le_set_justwork 
-0181 2040582c call le_set_fixed_ltk 
-0182 20405818 call le_set_config_read_authentication 
+016f 204002ed call p_g24_set_device_addr 
+0170 20403e6e call mouse_gpio_init 
+0171 20403e1e call mouse_param_init 
+0172 58000000 setarg 0 
+0173 60014154 store 2 ,mem_lpm_interval 
+0174 20400187 call p_mouse_set_gpio_control_sensor 
+0175 d840001a arg mouse_spi1_sdio_gpio ,temp 
+0176 204067fb call gpio_config_input 
+0177 6808c6f7 fetcht 1 ,mem_select_sensor_angle_gpio 
+0178 793f8407 set0 gpio_active_bit ,temp 
+0179 20406806 call gpio_set_high_impedance 
+017a 58001802 setarg 0x1802 
+017b 600140bd store 2 ,mem_fcomp_mul 
+017c 20403e54 call mouse_adc_init 
+017d 20405810 call le_set_config_fixed_ltk 
+017e 20405839 call le_set_justwork 
+017f 2040582c call le_set_fixed_ltk 
+0180 20405818 call le_set_config_read_authentication 
 
 p_mouse_init_iic:
-0183 2040659c call iic_init_390k 
-0184 204065c2 call clear_eeprom_size_2k 
-0185 2040443f call mouse_load_eeprom_dpi 
-0186 20404316 call mouse_eeprom_load_recon_info 
+0181 2040659c call iic_init_390k 
+0182 204065c2 call clear_eeprom_size_2k 
+0183 2040443f call mouse_load_eeprom_dpi 
+0184 20404316 call mouse_eeprom_load_recon_info 
 
 p_mouse_init_iic_read_24g_addr:
-0187 204001ea call p_mouse_set_24g_addr_eeprom 
-0188 202065df branch iicd_read_eep_data 
+0185 204001e8 call p_mouse_set_24g_addr_eeprom 
+0186 202065df branch iicd_read_eep_data 
 
 p_mouse_set_gpio_control_sensor:
 
 p_mouse_sensor_set_angle:
-0189 6810807b hfetch 1 ,core_gpio_pu3 
-018a 793ffe05 set0 5 ,pdata 
-018b 6010807b hstore 1 ,core_gpio_pu3 
+0187 6810807b hfetch 1 ,core_gpio_pu3 
+0188 793ffe05 set0 5 ,pdata 
+0189 6010807b hstore 1 ,core_gpio_pu3 
+018a 6808c6f7 fetcht 1 ,mem_select_sensor_angle_gpio 
+018b 2040680e call gpio_config_output 
 018c 6808c6f7 fetcht 1 ,mem_select_sensor_angle_gpio 
-018d 2040680e call gpio_config_output 
-018e 6808c6f7 fetcht 1 ,mem_select_sensor_angle_gpio 
-018f 20406829 call gpio_out_active 
+018d 20406829 call gpio_out_active 
+018e d840001a arg mouse_spi1_sdio_gpio ,temp 
+018f 2040026c call p_gpio_set_input_pu 
 0190 d840001a arg mouse_spi1_sdio_gpio ,temp 
-0191 20400272 call p_gpio_set_input_pu 
-0192 d840001a arg mouse_spi1_sdio_gpio ,temp 
-0193 2040681d call gpio_get_bit 
-0194 7046f602 jam mouse_12clk_angle ,mem_config_sensor_angle 
-0195 20608000 rtn true 
-0196 7046f601 jam mouse_9clk_angle ,mem_config_sensor_angle 
-0197 20600000 rtn 
+0191 2040681d call gpio_get_bit 
+0192 7046f602 jam mouse_12clk_angle ,mem_config_sensor_angle 
+0193 20608000 rtn true 
+0194 7046f601 jam mouse_9clk_angle ,mem_config_sensor_angle 
+0195 20600000 rtn 
 
 p_mouse_24g_transmit_by_interrupt_exit_count_max:
-0198 58000177 setarg 375 
-0199 60014d80 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
-019a 20600000 rtn 
+0196 58000177 setarg 375 
+0197 60014d80 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+0198 20600000 rtn 
 
 p_mouse_wakeup_from_power:
-019b 58000019 setarg 25 
-019c 60014d80 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
-019d 24558198 ncall p_mouse_24g_transmit_by_interrupt_exit_count_max ,wake 
+0199 58000019 setarg 25 
+019a 60014d80 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+019b 24558196 ncall p_mouse_24g_transmit_by_interrupt_exit_count_max ,wake 
 
 p_mouse_wakeup_no_from_power:
-019e 6800c71f fetch 1 ,mem_reconn_times_init 
-019f 6000c71e store 1 ,mem_reconn_times 
+019c 6800c71f fetch 1 ,mem_reconn_times_init 
+019d 6000c71e store 1 ,mem_reconn_times 
 
 p_mouse_start_24g_mode:
-01a0 6800cb19 fetch 1 ,mem_power_on_flag 
-01a1 c281042d bbit1 2 ,p_g24_start_24g_mode 
-01a2 204000db call p_mouse_init_sensor_reset 
-01a3 20400299 call p_mouse_dpi_config_default 
-01a4 704b4914 jam 20 ,mem_mouse_sensor_powerdown_timer 
-01a5 5800ffff setarg 0xffff 
-01a6 60014c65 store 2 ,mem_24g_addr 
-01a7 e0a10000 istore 2 ,contw 
-01a8 2020043f branch p_g24_auto_pair_start 
+019e 6800cb19 fetch 1 ,mem_power_on_flag 
+019f c281042d bbit1 2 ,p_g24_start_24g_mode 
+01a0 204000db call p_mouse_init_sensor_reset 
+01a1 20400299 call p_mouse_dpi_config_default 
+01a2 704b4914 jam 20 ,mem_mouse_sensor_powerdown_timer 
+01a3 5800ffff setarg 0xffff 
+01a4 60014c65 store 2 ,mem_24g_addr 
+01a5 e0a10000 istore 2 ,contw 
+01a6 2020043f branch p_g24_auto_pair_start 
 
 p_g24_factory_check:
-01a9 df200002 arg 2 ,loopcnt 
-01aa d8c04c65 arg mem_24g_addr ,contr 
+01a7 df200002 arg 2 ,loopcnt 
+01a8 d8c04c65 arg mem_24g_addr ,contr 
 
 p_pdata_0xff_check:
-01ab 20407fe7 call enable_user 
-01ac 5800ffff setarg 0xffff 
+01a9 20407fe7 call enable_user 
+01aa 5800ffff setarg 0xffff 
 
 p_pdata_0xff_check_loop:
-01ad e8c90000 ifetcht 2 ,contr 
-01ae 98467c00 isub temp ,null 
-01af 2442ffe9 ncall disable_user ,zero 
-01b0 c20001ad loop p_pdata_0xff_check_loop 
-01b1 20600000 rtn 
+01ab e8c90000 ifetcht 2 ,contr 
+01ac 98467c00 isub temp ,null 
+01ad 2442ffe9 ncall disable_user ,zero 
+01ae c20001ab loop p_pdata_0xff_check_loop 
+01af 20600000 rtn 
 
 p_mouse_cb_fuction:
-01b2 580001bf setarg p_mouse_g24_package_data 
-01b3 60014d6e store 2 ,mem_cb_24g_data 
-01b4 580000dd setarg p_mouse_before_lpm 
-01b5 600141ed store 2 ,mem_cb_before_lpm 
-01b6 580001db setarg p_mouse_priority_bb_event 
-01b7 600141f5 store 2 ,mem_cb_bb_event_process 
-01b8 580001c6 setarg p_mouse_idle 
-01b9 600141f3 store 2 ,mem_cb_idle_process 
-01ba 580001fc setarg p_mouse_before_hibernate 
-01bb 600141eb store 2 ,mem_cb_before_hibernate 
-01bc 58000217 setarg p_mouse_bb_event_timer 
-01bd 600141fd store 2 ,mem_cb_event_timer 
-01be 20600000 rtn 
+01b0 580001bd setarg p_mouse_g24_package_data 
+01b1 60014d6e store 2 ,mem_cb_24g_data 
+01b2 580000dd setarg p_mouse_before_lpm 
+01b3 600141ed store 2 ,mem_cb_before_lpm 
+01b4 580001d9 setarg p_mouse_priority_bb_event 
+01b5 600141f5 store 2 ,mem_cb_bb_event_process 
+01b6 580001c4 setarg p_mouse_idle 
+01b7 600141f3 store 2 ,mem_cb_idle_process 
+01b8 580001fa setarg p_mouse_before_hibernate 
+01b9 600141eb store 2 ,mem_cb_before_hibernate 
+01ba 58000211 setarg p_mouse_bb_event_timer 
+01bb 600141fd store 2 ,mem_cb_event_timer 
+01bc 20600000 rtn 
 
 p_mouse_g24_package_data:
-01bf 20404401 call mouse_g24_package_data 
-01c0 6801469f fetch 2 ,mem_mouse_z 
-01c1 207a0000 rtn blank 
+01bd 20404401 call mouse_g24_package_data 
+01be 6801469f fetch 2 ,mem_mouse_z 
+01bf 207a0000 rtn blank 
 
 p_g24_transmit_by_interrupt_enable:
-01c2 704d7d01 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
-01c3 58000000 setarg 0 
-01c4 60014d7e store 2 ,mem_24g_transmit_by_interrupt_exit_count 
-01c5 20600000 rtn 
+01c0 704d7d01 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
+01c1 58000000 setarg 0 
+01c2 60014d7e store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+01c3 20600000 rtn 
 
 p_mouse_idle:
-01c6 20407e34 call ui_check_paring_button 
-01c7 204001c9 call p_mouse_dpi_check 
-01c8 20203ee0 branch mouse_wheel_check 
+01c4 20407e34 call ui_check_paring_button 
+01c5 204001c7 call p_mouse_dpi_check 
+01c6 20203ee0 branch mouse_wheel_check 
 
 p_mouse_dpi_check:
-01c9 704bb105 jam 0x05 ,mem_mouse_key_temp 
-01ca 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
-01cb 6800cbb0 fetch 1 ,mem_mouse_dpikey_press_status 
-01cc 20400244 call p_mouse_check_key 
-01cd 6000cbb0 store 1 ,mem_mouse_dpikey_press_status 
-01ce 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
-01cf 20400272 call p_gpio_set_input_pu 
-01d0 1a227e00 copy rega ,pdata 
-01d1 c28281d3 bbit1 5 ,p_mouse_dpi_down 
-01d2 20203d62 branch mouse_dpi_up 
+01c7 704bb105 jam 0x05 ,mem_mouse_key_temp 
+01c8 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
+01c9 6800cbb0 fetch 1 ,mem_mouse_dpikey_press_status 
+01ca 2040023e call p_mouse_check_key 
+01cb 6000cbb0 store 1 ,mem_mouse_dpikey_press_status 
+01cc 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
+01cd 2040026c call p_gpio_set_input_pu 
+01ce 1a227e00 copy rega ,pdata 
+01cf c28281d1 bbit1 5 ,p_mouse_dpi_down 
+01d0 20203d62 branch mouse_dpi_up 
 
 p_mouse_dpi_down:
-01d3 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
-01d4 c1000000 rtneq dpi_button_state_down 
-01d5 7046b600 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
-01d6 6800c77a fetch 1 ,mem_mouse_dpi 
-01d7 1fe0fe01 increase 1 ,pdata 
-01d8 1fe17e03 and pdata ,0x03 ,pdata 
-01d9 6000c77a store 1 ,mem_mouse_dpi 
-01da 20203d74 branch mouse_dpi_down + 7 
+01d1 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
+01d2 c1000000 rtneq dpi_button_state_down 
+01d3 7046b600 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+01d4 6800c77a fetch 1 ,mem_mouse_dpi 
+01d5 1fe0fe01 increase 1 ,pdata 
+01d6 1fe17e03 and pdata ,0x03 ,pdata 
+01d7 6000c77a store 1 ,mem_mouse_dpi 
+01d8 20203d74 branch mouse_dpi_down + 7 
 
 p_mouse_priority_bb_event:
-01db 1a627e00 copy regc ,pdata 
-01dc c01c81e0 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-01dd c01e01f6 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-01de c01d01f1 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-01df 2020417d branch mouse_priority_bb_event + 1 
+01d9 1a627e00 copy regc ,pdata 
+01da c01c81de beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+01db c01e01f4 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+01dc c01d01ef beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+01dd 2020417d branch mouse_priority_bb_event + 1 
 
 p_mouse_24g_pairing_complete:
-01e0 704b4900 jam 0 ,mem_mouse_sensor_powerdown_timer 
-01e1 20400447 call p_g24_auto_pair_timeout_clear 
-01e2 204000db call p_mouse_init_sensor_reset 
-01e3 d8e00003 arg mosue_24g_pairing_flag ,queue 
-01e4 204043d2 call mouse_disable_function_flag 
-01e5 7046a700 jam 0 ,mem_mouse_move_flag 
-01e6 2040405d call mouse_read_sensor_common 
-01e7 204001ee call p_mouse_tx_power_init 
-01e8 204001ea call p_mouse_set_24g_addr_eeprom 
-01e9 202065d1 branch iicd_write_protect_eep_data 
+01de 704b4900 jam 0 ,mem_mouse_sensor_powerdown_timer 
+01df 20400447 call p_g24_auto_pair_timeout_clear 
+01e0 204000db call p_mouse_init_sensor_reset 
+01e1 d8e00003 arg mosue_24g_pairing_flag ,queue 
+01e2 204043d2 call mouse_disable_function_flag 
+01e3 7046a700 jam 0 ,mem_mouse_move_flag 
+01e4 2040405d call mouse_read_sensor_common 
+01e5 204001ec call p_mouse_tx_power_init 
+01e6 204001e8 call p_mouse_set_24g_addr_eeprom 
+01e7 202065d1 branch iicd_write_protect_eep_data 
 
 p_mouse_set_24g_addr_eeprom:
-01ea da204c65 arg mem_24g_addr ,rega 
-01eb da40005b arg mouse_g24_addr_eeprom_offect ,regb 
-01ec d8400004 arg 4 ,temp 
-01ed 20600000 rtn 
+01e8 da204c65 arg mem_24g_addr ,rega 
+01e9 da40005b arg mouse_g24_addr_eeprom_offect ,regb 
+01ea d8400004 arg 4 ,temp 
+01eb 20600000 rtn 
 
 p_mouse_tx_power_init:
-01ee 6800ccf4 fetch 1 ,mem_tx_power_temp 
-01ef 6000c1de store 1 ,mem_tx_power 
-01f0 20600000 rtn 
+01ec 6800ccf4 fetch 1 ,mem_tx_power_temp 
+01ed 6000c1de store 1 ,mem_tx_power 
+01ee 20600000 rtn 
 
 p_mouse_24g_attempt_fail:
-01f1 20400213 call p_mouse_sensor_powerdown_check 
-01f2 704d7d00 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
-01f3 204001ee call p_mouse_tx_power_init 
-01f4 20400464 call p_g24_check_51cmd_stop_24g 
-01f5 2020340a branch app_enter_hibernate 
+01ef 20400166 call p_mouse_sensor_powerdown_check 
+01f0 704d7d00 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
+01f1 204001ec call p_mouse_tx_power_init 
+01f2 20400464 call p_g24_check_51cmd_stop_24g 
+01f3 2020340a branch app_enter_hibernate 
 
 p_mouse_24g_attempt_success:
-01f6 704b4900 jam 0 ,mem_mouse_sensor_powerdown_timer 
-01f7 20400447 call p_g24_auto_pair_timeout_clear 
-01f8 204000db call p_mouse_init_sensor_reset 
-01f9 20403f8d call mouse_no_data_timer_init 
-01fa 204001ea call p_mouse_set_24g_addr_eeprom 
-01fb 202065d1 branch iicd_write_protect_eep_data 
+01f4 704b4900 jam 0 ,mem_mouse_sensor_powerdown_timer 
+01f5 20400447 call p_g24_auto_pair_timeout_clear 
+01f6 204000db call p_mouse_init_sensor_reset 
+01f7 20403f8d call mouse_no_data_timer_init 
+01f8 204001e8 call p_mouse_set_24g_addr_eeprom 
+01f9 202065d1 branch iicd_write_protect_eep_data 
 
 p_mouse_before_hibernate:
-01fc 68120138 hfetch 4 ,core_lpm_ctrl 
-01fd 79207e1a set1 26 ,pdata 
-01fe 6012004c hstore 4 ,core_lpm_reg 
-01ff 20402c21 call lpm_write_ctrl 
-0200 20400213 call p_mouse_sensor_powerdown_check 
-0201 204074bd call disable_authrom 
-0202 20404482 call mouse_devce_led_off 
-0203 20403e9f call mouse_before_hibernate_wheel_gpio_set 
-0204 204000e8 call p_mouse_setgpio_lpm_before 
+01fa 68120138 hfetch 4 ,core_lpm_ctrl 
+01fb 79207e1a set1 26 ,pdata 
+01fc 6012004c hstore 4 ,core_lpm_reg 
+01fd 20402c21 call lpm_write_ctrl 
+01fe 20400166 call p_mouse_sensor_powerdown_check 
+01ff 204074bd call disable_authrom 
+0200 20404482 call mouse_devce_led_off 
+0201 20403e9f call mouse_before_hibernate_wheel_gpio_set 
+0202 204000e8 call p_mouse_setgpio_lpm_before 
+0203 6808cb4a fetcht 1 ,mem_mouse_common_gpio 
+0204 2040680e call gpio_config_output 
 0205 6808cb4a fetcht 1 ,mem_mouse_common_gpio 
-0206 2040680e call gpio_config_output 
+0206 20406829 call gpio_out_active 
 0207 6808cb4a fetcht 1 ,mem_mouse_common_gpio 
-0208 20406829 call gpio_out_active 
-0209 6808cb4a fetcht 1 ,mem_mouse_common_gpio 
-020a 793f8407 set0 gpio_active_bit ,temp 
-020b d8a08078 arg core_gpio_pu0 ,contw 
-020c 20206830 branch gpio_set_bit 
+0208 793f8407 set0 gpio_active_bit ,temp 
+0209 d8a08078 arg core_gpio_pu0 ,contw 
+020a 20206830 branch gpio_set_bit 
 
 p_ice_gpio_set_input_pu:
+020b d840001d arg 29 ,temp 
+020c 204067fb call gpio_config_input 
 020d d840001d arg 29 ,temp 
-020e 204067fb call gpio_config_input 
-020f d840001d arg 29 ,temp 
-0210 79200407 set1 gpio_active_bit ,temp 
-0211 d8a08078 arg core_gpio_pu0 ,contw 
-0212 20206830 branch gpio_set_bit 
-
-p_mouse_sensor_powerdown_check:
-0213 6800cb0a fetch 1 ,mem_mouse_init_sensor_reset_flag 
-0214 207a0000 rtn blank 
-0215 704b0a00 jam 0 ,mem_mouse_init_sensor_reset_flag 
-0216 2020016b branch p_mouse_sensor_powerdown 
+020e 79200407 set1 gpio_active_bit ,temp 
+020f d8a08078 arg core_gpio_pu0 ,contw 
+0210 20206830 branch gpio_set_bit 
 
 p_mouse_bb_event_timer:
-0217 20400223 call p_mouse_24g_long_sleep_param_update_timer 
-0218 2040423a call mouse_check_no_data_timeout_timer 
-0219 2040021b call p_mouse_sensor_powerdown_timer 
-021a 2020021e branch p_mouse_g24_pair_timeout_timer 
+0211 2040021d call p_mouse_24g_long_sleep_param_update_timer 
+0212 2040423a call mouse_check_no_data_timeout_timer 
+0213 20400215 call p_mouse_sensor_powerdown_timer 
+0214 20200218 branch p_mouse_g24_pair_timeout_timer 
 
 p_mouse_sensor_powerdown_timer:
-021b da604b49 arg mem_mouse_sensor_powerdown_timer ,regc 
-021c da40016b arg p_mouse_sensor_powerdown ,regb 
-021d 2020336d branch timer_single_step 
+0215 da604b49 arg mem_mouse_sensor_powerdown_timer ,regc 
+0216 da400169 arg p_mouse_sensor_powerdown ,regb 
+0217 2020336d branch timer_single_step 
 
 p_mouse_g24_pair_timeout_timer:
-021e da604b43 arg mem_g24_stop_g24_mode_timeout ,regc 
-021f da400221 arg p_mouse_g24_pair_timeout ,regb 
-0220 20203374 branch timer_single_step_2b 
+0218 da604b43 arg mem_g24_stop_g24_mode_timeout ,regc 
+0219 da40021b arg p_mouse_g24_pair_timeout ,regb 
+021a 20203374 branch timer_single_step_2b 
 
 p_mouse_g24_pair_timeout:
-0221 704b4201 jam 1 ,mem_g24_stop_g24_mode 
-0222 20600000 rtn 
+021b 704b4201 jam 1 ,mem_g24_stop_g24_mode 
+021c 20600000 rtn 
 
 p_mouse_24g_long_sleep_param_update_timer:
-0223 da604810 arg mem_24g_long_sleep_param_update_timer ,regc 
-0224 da400226 arg p_mouse_24g_long_sleep_normal_param ,regb 
-0225 20203374 branch timer_single_step_2b 
+021d da604810 arg mem_24g_long_sleep_param_update_timer ,regc 
+021e da400220 arg p_mouse_24g_long_sleep_normal_param ,regb 
+021f 20203374 branch timer_single_step_2b 
 
 p_mouse_24g_long_sleep_normal_param:
-0226 58057e40 setarg g24_long_sleep_step2 
-0227 6001cc6c store 3 ,mem_24g_enter_hibernate 
-0228 70480e01 jam 1 ,mem_mouse_long_mult_flag 
-0229 20600000 rtn 
+0220 58057e40 setarg g24_long_sleep_step2 
+0221 6001cc6c store 3 ,mem_24g_enter_hibernate 
+0222 70480e01 jam 1 ,mem_mouse_long_mult_flag 
+0223 20600000 rtn 
 
 p_mouse_motion:
-022a 78547c00 disable user 
-022b 58000000 setarg 0 
-022c 6003469b store 6 ,mem_mouse_x 
-022d 20400283 call p_mouse_cheak_sensor_data 
-022e 20404079 call mouse_zwheel 
-022f 2040407e call mouse_t_zwheel 
-0230 2040023e call p_mouse_key 
-0231 24340235 nbranch p_mouse_motion_nodata ,user 
-0232 20400564 call p_drawing_optima 
-0233 20400238 call p_mouse_nodata_timer_update 
-0234 20203fa1 branch mouse_motion + 10 
+0224 78547c00 disable user 
+0225 58000000 setarg 0 
+0226 6003469b store 6 ,mem_mouse_x 
+0227 2040027d call p_mouse_cheak_sensor_data 
+0228 20404079 call mouse_zwheel 
+0229 2040407e call mouse_t_zwheel 
+022a 20400238 call p_mouse_key 
+022b 2434022f nbranch p_mouse_motion_nodata ,user 
+022c 20400564 call p_drawing_optima 
+022d 20400232 call p_mouse_nodata_timer_update 
+022e 20203fa1 branch mouse_motion + 10 
 
 p_mouse_motion_nodata:
-0235 20400570 call p_drawing_optima_init 
-0236 704b4800 jam 0 ,mem_mouse_nodata_check_count 
-0237 20600000 rtn 
+022f 20400570 call p_drawing_optima_init 
+0230 704b4800 jam 0 ,mem_mouse_nodata_check_count 
+0231 20600000 rtn 
 
 p_mouse_nodata_timer_update:
-0238 6800cb48 fetch 1 ,mem_mouse_nodata_check_count 
-0239 1fe0fe01 increase 1 ,pdata 
-023a 6000cb48 store 1 ,mem_mouse_nodata_check_count 
-023b 1fe67c0a sub pdata ,nodata_check_count ,null 
-023c 20610000 rtn positive 
-023d 20203f8d branch mouse_no_data_timer_init 
+0232 6800cb48 fetch 1 ,mem_mouse_nodata_check_count 
+0233 1fe0fe01 increase 1 ,pdata 
+0234 6000cb48 store 1 ,mem_mouse_nodata_check_count 
+0235 1fe67c0a sub pdata ,nodata_check_count ,null 
+0236 20610000 rtn positive 
+0237 20203f8d branch mouse_no_data_timer_init 
 
 p_mouse_key:
-023e 20400240 call p_mouse_check_key_gpio 
-023f 2020409a branch mouse_key + 1 
+0238 2040023a call p_mouse_check_key_gpio 
+0239 2020409a branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-0240 6800c69a fetch 1 ,mem_mouse_key 
-0241 1fe22200 copy pdata ,rega 
-0242 20400256 call p_mouse_check_lkey_gpio 
-0243 2020408e branch mouse_check_key_gpio + 11 
+023a 6800c69a fetch 1 ,mem_mouse_key 
+023b 1fe22200 copy pdata ,rega 
+023c 20400250 call p_mouse_check_lkey_gpio 
+023d 2020408e branch mouse_check_key_gpio + 11 
 
 p_mouse_check_key:
-0244 6000cbb2 store 1 ,mem_mouse_key_status 
-0245 1fe3fe00 lshift pdata ,pdata 
-0246 1fe22400 copy pdata ,regb 
-0247 18422600 copy temp ,regc 
-0248 6800cbb1 fetch 1 ,mem_mouse_key_temp 
-0249 1fe67c02 sub pdata ,0x02 ,null 
-024a 20410272 call p_gpio_set_input_pu ,positive 
-024b 2441027d ncall p_gpio_set_input_pd ,positive 
-024c 1a620400 copy regc ,temp 
-024d 2040681d call gpio_get_bit 
-024e 7920a400 setflag true ,0 ,regb 
-024f 1a417e07 and regb ,0x07 ,pdata 
-0250 6808cbb1 fetcht 1 ,mem_mouse_key_temp 
-0251 18420e00 copy temp ,queue 
-0252 18467c02 sub temp ,0x02 ,null 
-0253 c0038277 beq 0x07 ,p_mouse_key_press 
-0254 c000027a beq 0x00 ,p_mouse_key_release 
-0255 20600000 rtn 
+023e 6000cbb2 store 1 ,mem_mouse_key_status 
+023f 1fe3fe00 lshift pdata ,pdata 
+0240 1fe22400 copy pdata ,regb 
+0241 18422600 copy temp ,regc 
+0242 6800cbb1 fetch 1 ,mem_mouse_key_temp 
+0243 1fe67c02 sub pdata ,0x02 ,null 
+0244 2041026c call p_gpio_set_input_pu ,positive 
+0245 24410277 ncall p_gpio_set_input_pd ,positive 
+0246 1a620400 copy regc ,temp 
+0247 2040681d call gpio_get_bit 
+0248 7920a400 setflag true ,0 ,regb 
+0249 1a417e07 and regb ,0x07 ,pdata 
+024a 6808cbb1 fetcht 1 ,mem_mouse_key_temp 
+024b 18420e00 copy temp ,queue 
+024c 18467c02 sub temp ,0x02 ,null 
+024d c0038271 beq 0x07 ,p_mouse_key_press 
+024e c0000274 beq 0x00 ,p_mouse_key_release 
+024f 20600000 rtn 
 
 p_mouse_check_lkey_gpio:
-0256 704bb100 jam 0x00 ,mem_mouse_key_temp 
-0257 6808c6e2 fetcht 1 ,mem_lbutton_gpio 
-0258 6800cbab fetch 1 ,mem_mouse_lkey_press_status 
-0259 20400244 call p_mouse_check_key 
-025a 6000cbab store 1 ,mem_mouse_lkey_press_status 
+0250 704bb100 jam 0x00 ,mem_mouse_key_temp 
+0251 6808c6e2 fetcht 1 ,mem_lbutton_gpio 
+0252 6800cbab fetch 1 ,mem_mouse_lkey_press_status 
+0253 2040023e call p_mouse_check_key 
+0254 6000cbab store 1 ,mem_mouse_lkey_press_status 
 
 p_mouse_check_rkey_gpio:
-025b 704bb101 jam 0x01 ,mem_mouse_key_temp 
-025c 6808c6e3 fetcht 1 ,mem_rbutton_gpio 
-025d 6800cbac fetch 1 ,mem_mouse_rkey_press_status 
-025e 20400244 call p_mouse_check_key 
-025f 6000cbac store 1 ,mem_mouse_rkey_press_status 
+0255 704bb101 jam 0x01 ,mem_mouse_key_temp 
+0256 6808c6e3 fetcht 1 ,mem_rbutton_gpio 
+0257 6800cbac fetch 1 ,mem_mouse_rkey_press_status 
+0258 2040023e call p_mouse_check_key 
+0259 6000cbac store 1 ,mem_mouse_rkey_press_status 
 
 p_mouse_check_mkey_gpio:
-0260 704bb102 jam 0x02 ,mem_mouse_key_temp 
-0261 6808c6e4 fetcht 1 ,mem_mbutton_gpio 
-0262 6800cbad fetch 1 ,mem_mouse_mkey_press_status 
-0263 20400244 call p_mouse_check_key 
-0264 6000cbad store 1 ,mem_mouse_mkey_press_status 
+025a 704bb102 jam 0x02 ,mem_mouse_key_temp 
+025b 6808c6e4 fetcht 1 ,mem_mbutton_gpio 
+025c 6800cbad fetch 1 ,mem_mouse_mkey_press_status 
+025d 2040023e call p_mouse_check_key 
+025e 6000cbad store 1 ,mem_mouse_mkey_press_status 
 
 p_mouse_check_bkkey_gpio:
-0265 704bb103 jam 0x03 ,mem_mouse_key_temp 
-0266 6808c6e5 fetcht 1 ,mem_bk_button_gpio 
-0267 6800cbae fetch 1 ,mem_mouse_bkkey_press_status 
-0268 20400244 call p_mouse_check_key 
-0269 6000cbae store 1 ,mem_mouse_bkkey_press_status 
-026a 6808c6e5 fetcht 1 ,mem_bk_button_gpio 
-026b 20400272 call p_gpio_set_input_pu 
+025f 704bb103 jam 0x03 ,mem_mouse_key_temp 
+0260 6808c6e5 fetcht 1 ,mem_bk_button_gpio 
+0261 6800cbae fetch 1 ,mem_mouse_bkkey_press_status 
+0262 2040023e call p_mouse_check_key 
+0263 6000cbae store 1 ,mem_mouse_bkkey_press_status 
+0264 6808c6e5 fetcht 1 ,mem_bk_button_gpio 
+0265 2040026c call p_gpio_set_input_pu 
 
 p_mouse_check_fwkey_gpio:
-026c 704bb104 jam 0x04 ,mem_mouse_key_temp 
-026d 6808c6e6 fetcht 1 ,mem_fw_button_gpio 
-026e 6800cbaf fetch 1 ,mem_mouse_fwkey_press_status 
-026f 20400244 call p_mouse_check_key 
-0270 6000cbaf store 1 ,mem_mouse_fwkey_press_status 
-0271 6808c6e6 fetcht 1 ,mem_fw_button_gpio 
+0266 704bb104 jam 0x04 ,mem_mouse_key_temp 
+0267 6808c6e6 fetcht 1 ,mem_fw_button_gpio 
+0268 6800cbaf fetch 1 ,mem_mouse_fwkey_press_status 
+0269 2040023e call p_mouse_check_key 
+026a 6000cbaf store 1 ,mem_mouse_fwkey_press_status 
+026b 6808c6e6 fetcht 1 ,mem_fw_button_gpio 
 
 p_gpio_set_input_pu:
-0272 79200407 set1 gpio_active_bit ,temp 
-0273 d8a08078 arg core_gpio_pu0 ,contw 
-0274 20406830 call gpio_set_bit 
-0275 793f8407 set0 gpio_active_bit ,temp 
-0276 20200281 branch p_gpio_set_input_pd4 
+026c 79200407 set1 gpio_active_bit ,temp 
+026d d8a08078 arg core_gpio_pu0 ,contw 
+026e 20406830 call gpio_set_bit 
+026f 793f8407 set0 gpio_active_bit ,temp 
+0270 2020027b branch p_gpio_set_input_pd4 
 
 p_mouse_key_press:
-0277 2021027b branch p_qset1_rega ,positive 
+0271 20210275 branch p_qset1_rega ,positive 
 
 p_qset0_rega:
-0278 f93fa200 qset0 rega 
-0279 20600000 rtn 
+0272 f93fa200 qset0 rega 
+0273 20600000 rtn 
 
 p_mouse_key_release:
-027a 20210278 branch p_qset0_rega ,positive 
+0274 20210272 branch p_qset0_rega ,positive 
 
 p_qset1_rega:
-027b f9202200 qset1 rega 
-027c 20600000 rtn 
+0275 f9202200 qset1 rega 
+0276 20600000 rtn 
 
 p_gpio_set_input_pd:
-027d 793f8407 set0 gpio_active_bit ,temp 
-027e d8a08078 arg core_gpio_pu0 ,contw 
-027f 20406830 call gpio_set_bit 
-0280 79200407 set1 gpio_active_bit ,temp 
+0277 793f8407 set0 gpio_active_bit ,temp 
+0278 d8a08078 arg core_gpio_pu0 ,contw 
+0279 20406830 call gpio_set_bit 
+027a 79200407 set1 gpio_active_bit ,temp 
 
 p_gpio_set_input_pd4:
-0281 d8a0807c arg core_gpio_pd0 ,contw 
-0282 2020680a branch gpio_set_high_impedance + 4 
+027b d8a0807c arg core_gpio_pd0 ,contw 
+027c 2020680a branch gpio_set_high_impedance + 4 
 
 p_mouse_cheak_sensor_data:
-0283 6800c6e0 fetch 1 ,mem_config_sensor_type 
-0284 c0020295 beq p3212 ,p_mouse_p3212_sensor_motion 
-0285 c004028a beq p8009 ,p_mouse_p8009_sensor_motion 
-0286 c005bfcb beq ka5857 ,mouse_p3212_sensor_motion_1 + 3 
+027d 6800c6e0 fetch 1 ,mem_config_sensor_type 
+027e c002028f beq p3212 ,p_mouse_p3212_sensor_motion 
+027f c0040284 beq p8009 ,p_mouse_p8009_sensor_motion 
+0280 c005bfcb beq ka5857 ,mouse_p3212_sensor_motion_1 + 3 
 
 p_mouse_p32xx_sensor_motion:
-0287 20403fc0 call mouse_clear_sensor_data 
-0288 78547c00 disable user 
-0289 20203fe7 branch mouse_p32xx_sensor_motion_2 
+0281 20403fc0 call mouse_clear_sensor_data 
+0282 78547c00 disable user 
+0283 20203fe7 branch mouse_p32xx_sensor_motion_2 
 
 p_mouse_p8009_sensor_motion:
-028a 20403fc0 call mouse_clear_sensor_data 
-028b 78547c00 disable user 
+0284 20403fc0 call mouse_clear_sensor_data 
+0285 78547c00 disable user 
 
 p_mouse_p32xx_sensor_motion_1:
-028c 58000002 setarg pan_reg_motion_staus 
-028d 20406414 call twspi_read 
-028e c4038000 rtnbit0 7 
-028f 58000008 setarg pan_reg_opration_state 
-0290 20406414 call twspi_read 
-0291 203a3fed branch mouse_p32xx_sensor_motion_1 + 3 ,blank 
-0292 58000000 setarg 0 
-0293 6003469b store 6 ,mem_mouse_x 
-0294 20600000 rtn 
+0286 58000002 setarg pan_reg_motion_staus 
+0287 20406414 call twspi_read 
+0288 c4038000 rtnbit0 7 
+0289 58000008 setarg pan_reg_opration_state 
+028a 20406414 call twspi_read 
+028b 203a3fed branch mouse_p32xx_sensor_motion_1 + 3 ,blank 
+028c 58000000 setarg 0 
+028d 6003469b store 6 ,mem_mouse_x 
+028e 20600000 rtn 
 
 p_mouse_p3212_sensor_motion:
-0295 20403fc0 call mouse_clear_sensor_data 
-0296 20203fc8 branch mouse_p3212_sensor_motion_1 
+028f 20403fc0 call mouse_clear_sensor_data 
+0290 20203fc8 branch mouse_p3212_sensor_motion_1 
+
+p_mouse_sensor_poweron:
+0291 20400107 call p_mouse_spi_init 
+0292 58008006 setarg 0x8006 
+0293 20406413 call twspi_write 
+0294 20002ee0 nop 12000 
+0295 da604ba1 arg mem_sensor_poweron_init ,regc 
+0296 20400128 call p_sensor_wr_seq 
 
 p_mouse_dpi_config:
 0297 6800c77a fetch 1 ,mem_mouse_dpi 
@@ -1493,7 +1493,7 @@
 042c 2020037d branch p_g24_transmit_abandon 
 
 p_g24_start_24g_mode:
-042d 204001a9 call p_g24_factory_check 
+042d 204001a7 call p_g24_factory_check 
 042e 2034043f branch p_g24_auto_pair_start ,user 
 042f 79200026 set1 mark_24g ,mark 
 0430 6800cd89 fetch 1 ,mem_g24_conn_sm 
@@ -1546,7 +1546,7 @@
 0451 202003f0 branch p_g24_pair_init 
 
 p_g24_auto_pair_first_attemp:
-0452 204001ee call p_mouse_tx_power_init 
+0452 204001ec call p_mouse_tx_power_init 
 0453 68024c74 fetch 4 ,mem_24g_device_addr 
 0454 60024c65 store 4 ,mem_24g_addr 
 0455 6800cb46 fetch 1 ,mem_24g_pair_current_ch_num 
@@ -2453,7 +2453,7 @@
 0714 202053df branch lerx_setfreq + 1 
 
 p_button_check:
-0715 20400240 call p_mouse_check_key_gpio 
+0715 2040023a call p_mouse_check_key_gpio 
 0716 c0008735 beq mouse_l_button ,p_channel_map_change_incre 
 0717 c001074c beq mouse_r_button ,p_channel_map_change_decre 
 0718 c002071d beq mouse_m_button ,p_mode_change 
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/YJX_Project/mingAo_Only24g/program/patch.prog	(revision 2877)
+++ /branch/mouse_project/YJX_Project/mingAo_Only24g/program/patch.prog	(working copy)
@@ -348,6 +348,8 @@
 	branch p_mouse_seting_sensor_type	// make sdio high to make 100uA less	
 
 p_device_init:
+	jam 0x86,0x895b	
+	jam 0xa0,0x895c
 ifdef DEBUGLOG
 	call debuglog_init
 ifdef DEBUGLOG_STATUS
@@ -545,15 +547,10 @@
 //	jam P3065,mem_config_sensor_type
 //	rtn
 
-p_mouse_sensor_poweron:
-	call p_mouse_spi_init
-	setarg 0x8006
-	call twspi_write
-	nop 12000
-	arg mem_sensor_poweron_init,regc
-	call p_sensor_wr_seq
-	branch p_mouse_dpi_config
-
+p_mouse_sensor_powerdown_check:
+	fetch 1,mem_mouse_init_sensor_reset_flag
+	rtn blank
+	jam 0,mem_mouse_init_sensor_reset_flag
 p_mouse_sensor_powerdown:
 	setarg 0x0806
 	call twspi_read
@@ -790,11 +787,6 @@
 	set1 gpio_active_bit,temp
 	arg core_gpio_pu0,contw
 	branch gpio_set_bit
-p_mouse_sensor_powerdown_check:
-	fetch 1,mem_mouse_init_sensor_reset_flag
-	rtn blank
-	jam 0,mem_mouse_init_sensor_reset_flag
-	branch p_mouse_sensor_powerdown
 
 p_mouse_bb_event_timer:
 ifdef ADC_ENABLE	
@@ -1143,6 +1135,13 @@
 //	nrtn true
 	branch mouse_p3212_sensor_motion_1
 
+p_mouse_sensor_poweron:
+	call p_mouse_spi_init
+	setarg 0x8006
+	call twspi_write
+	nop 12000
+	arg mem_sensor_poweron_init,regc
+	call p_sensor_wr_seq
 p_mouse_dpi_config:
 	fetch 1,mem_mouse_dpi
 	bne 0xff,p_mouse_seting_sensor_type
Index: sched/mouse.dat
===================================================================
--- /branch/mouse_project/YJX_Project/mingAo_Only24g/sched/mouse.dat	(revision 2877)
+++ /branch/mouse_project/YJX_Project/mingAo_Only24g/sched/mouse.dat	(working copy)
@@ -15,7 +15,7 @@
 mem_patch2e:80
 mem_patch31:10
 
-mem_firmware_version:08 00
+mem_firmware_version:09 00
 
 mem_device_option:40
 mem_lpm_mode:01
