Index: output/eeprom.dat
===================================================================
--- /branch/mouse_project/YJX_Project/mingAo_Only24g/output/eeprom.dat	(revision 2900)
+++ /branch/mouse_project/YJX_Project/mingAo_Only24g/output/eeprom.dat	(working copy)
@@ -15,15 +15,15 @@
 c0
 00
 80
-14
+16
 c0
 01
 00
-1c
+1e
 c0
 02
 80
-25
+27
 c0
 42
 84
@@ -43,11 +43,11 @@
 c0
 59
 00
-2e
+30
 c0
 62
 00
-f3
+f5
 c0
 71
 82
@@ -72,6 +72,14 @@
 20
 2a
 8e
+70
+89
+5b
+86
+70
+89
+5c
+a0
 68
 10
 81
@@ -147,7 +155,7 @@
 20
 3a
 00
-1f
+21
 20
 20
 20
@@ -159,7 +167,7 @@
 24
 22
 80
-28
+2a
 20
 20
 20
@@ -167,7 +175,7 @@
 20
 40
 00
-2a
+2c
 20
 20
 20
@@ -199,11 +207,11 @@
 c2
 80
 80
-43
+45
 c2
 81
 00
-63
+65
 68
 00
 cd
@@ -211,7 +219,7 @@
 c0
 00
 80
-71
+73
 20
 40
 03
@@ -219,7 +227,7 @@
 24
 34
 00
-8c
+8e
 20
 40
 03
@@ -255,7 +263,7 @@
 20
 40
 00
-95
+97
 24
 74
 00
@@ -263,7 +271,7 @@
 20
 40
 00
-e3
+e5
 58
 00
 2f
@@ -315,11 +323,11 @@
 20
 22
 80
-50
+52
 20
 40
 00
-5d
+5f
 24
 74
 00
@@ -371,11 +379,11 @@
 20
 42
 80
-61
+63
 20
 20
 00
-6c
+6e
 68
 00
 cc
@@ -467,7 +475,7 @@
 20
 40
 00
-86
+88
 68
 01
 4d
@@ -491,11 +499,11 @@
 20
 42
 80
-7b
+7d
 20
 20
 00
-34
+36
 70
 4d
 7d
@@ -539,7 +547,7 @@
 20
 20
 00
-82
+84
 68
 00
 cc
@@ -555,11 +563,11 @@
 c0
 02
 00
-84
+86
 c0
 02
 80
-80
+82
 20
 60
 00
@@ -571,7 +579,7 @@
 20
 5a
 00
-9e
+a0
 68
 00
 cd
@@ -583,11 +591,11 @@
 20
 40
 00
-af
+b1
 20
 40
 00
-95
+97
 24
 74
 00
@@ -635,7 +643,7 @@
 20
 20
 00
-e6
+e8
 70
 4c
 69
@@ -691,7 +699,7 @@
 20
 20
 00
-37
+39
 58
 00
 00
@@ -763,7 +771,7 @@
 24
 21
 00
-c3
+c5
 20
 40
 04
@@ -775,15 +783,15 @@
 24
 2c
 00
-c9
+cb
 24
 37
 80
-c9
+cb
 20
 40
 00
-d3
+d5
 20
 40
 03
@@ -803,7 +811,7 @@
 c0
 08
 00
-cb
+cd
 20
 60
 00
@@ -815,7 +823,7 @@
 20
 20
 00
-b9
+bb
 70
 4d
 87
@@ -855,7 +863,7 @@
 20
 3a
 00
-ac
+ae
 70
 4d
 87
@@ -895,7 +903,7 @@
 20
 40
 00
-e6
+e8
 68
 00
 c0
@@ -903,7 +911,7 @@
 c3
 00
 00
-e3
+e5
 68
 00
 80
@@ -927,11 +935,11 @@
 20
 40
 00
-f0
+f2
 20
 40
 00
-e3
+e5
 20
 40
 3e
@@ -976,14 +984,6 @@
 20
 02
 9b
-70
-89
-5b
-86
-70
-89
-5c
-a0
 20
 40
 34
@@ -1671,7 +1671,7 @@
 20
 40
 00
-db
+dd
 20
 40
 02
@@ -1743,7 +1743,7 @@
 58
 00
 00
-dd
+df
 60
 01
 41
@@ -1927,7 +1927,7 @@
 20
 40
 00
-db
+dd
 d8
 e0
 00
@@ -2015,7 +2015,7 @@
 20
 40
 00
-db
+dd
 20
 40
 3f
@@ -2063,7 +2063,7 @@
 20
 40
 00
-e8
+ea
 68
 08
 cb
@@ -7512,8 +7512,8 @@
 60
 00
 00
-bd
-c5
+4b
+0f
 aa
 55
 08
@@ -7996,7 +7996,7 @@
 00
 b3
 4b
-09
+0a
 00
 aa
 55
@@ -8071,8 +8071,8 @@
 0f
 0f
 0f
-de
-29
+db
+4a
 ff
 ff
 ff
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YJX_Project/mingAo_Only24g/output/program.lis	(revision 2900)
+++ /branch/mouse_project/YJX_Project/mingAo_Only24g/output/program.lis	(working copy)
@@ -2,15 +2,15 @@
               org 0x0000
 0000 c284000e bbit1 8 ,pf_patch_ext 
 0001 c0000011 beq patch00_0 ,p_soft_reset 
-0002 c0008014 beq patch00_1 ,p_soft_reset_1 
-0003 c001001c beq patch00_2 ,p_soft_reset_2 
-0004 c0028025 beq patch00_5 ,p_connection_incontext 
+0002 c0008016 beq patch00_1 ,p_soft_reset_1 
+0003 c001001e beq patch00_2 ,p_soft_reset_2 
+0004 c0028027 beq patch00_5 ,p_connection_incontext 
 0005 c04284aa beq patch10_5 ,p_shutdown_radio 
 0006 c044847b beq patch11_1 ,p_set_freq_tx 
 0007 c04504ac beq patch11_2 ,p_initialize_radio_cont 
 0008 c05384af beq patch14_7 ,p_lpm_dispatch 
-0009 c059002e beq patch16_2 ,p_g24_dispatch 
-000a c06200f3 beq patch18_4 ,p_device_init 
+0009 c0590030 beq patch16_2 ,p_g24_dispatch 
+000a c06200f5 beq patch18_4 ,p_device_init 
 000b c071829b beq patch1c_3 ,p_mouse_seting_dpi 
 000c c0730224 beq patch1c_6 ,p_mouse_motion 
 000d 20202a8e branch loop 
@@ -21,314 +21,314 @@
 0010 20202a8e branch loop 
 
 p_soft_reset:
-0011 6810813b hfetch 1 ,0x813b 
-0012 6000cb19 store 1 ,mem_power_on_flag 
-0013 20202002 branch soft_reset + 1 
+0011 70895b86 jam 0x86 ,0x895b 
+0012 70895ca0 jam 0xa0 ,0x895c 
+0013 6810813b hfetch 1 ,0x813b 
+0014 6000cb19 store 1 ,mem_power_on_flag 
+0015 20202002 branch soft_reset + 1 
 
 p_soft_reset_1:
-0014 d8a009ae arg mem_sp_state ,contw 
-0015 df20000c arg 12 ,loopcnt 
-0016 20407ed4 call clear_mem 
-0017 20406a03 call rfcomm_init 
-0018 20405cf6 call init_lmp 
-0019 2455ac65 ncall lpm_disable_exen_output ,wake 
-001a 20407ccd call ui_init + 1 
-001b 2020200c branch soft_reset + 11 
+0016 d8a009ae arg mem_sp_state ,contw 
+0017 df20000c arg 12 ,loopcnt 
+0018 20407ed4 call clear_mem 
+0019 20406a03 call rfcomm_init 
+001a 20405cf6 call init_lmp 
+001b 2455ac65 ncall lpm_disable_exen_output ,wake 
+001c 20407ccd call ui_init + 1 
+001d 2020200c branch soft_reset + 11 
 
 p_soft_reset_2:
-001c 2055b2e3 call app_lpm_init ,wake 
-001d 2040756a call publickey_init 
-001e 2055ab41 call lpm_recover_clk ,wake 
+001e 2055b2e3 call app_lpm_init ,wake 
+001f 2040756a call publickey_init 
+0020 2055ab41 call lpm_recover_clk ,wake 
 
 p_sp_cal_loop:
-001f 204076dc call sp_calc_sequence 
-0020 6800c65a fetch 1 ,mem_ssp_enable 
-0021 203a2012 branch main_loop ,blank 
-0022 6800c5b1 fetch 1 ,mem_sp_local_key_invalid 
-0023 203a001f branch p_sp_cal_loop ,blank 
-0024 20202012 branch main_loop 
+0021 204076dc call sp_calc_sequence 
+0022 6800c65a fetch 1 ,mem_ssp_enable 
+0023 203a2012 branch main_loop ,blank 
+0024 6800c5b1 fetch 1 ,mem_sp_local_key_invalid 
+0025 203a0021 branch p_sp_cal_loop ,blank 
+0026 20202012 branch main_loop 
 
 p_connection_incontext:
-0025 2040225e call context_search_insniff 
-0026 24228028 nbranch p_connection_nosniff ,zero 
-0027 20202029 branch connection_incontext2 
+0027 2040225e call context_search_insniff 
+0028 2422802a nbranch p_connection_nosniff ,zero 
+0029 20202029 branch connection_incontext2 
 
 p_connection_nosniff:
-0028 2040002a call p_context_get_next 
-0029 20202030 branch connection_nosniff2 
+002a 2040002c call p_context_get_next 
+002b 20202030 branch connection_nosniff2 
 
 p_context_get_next:
-002a df200001 arg context_num ,loopcnt 
-002b 70001500 jam 0 ,mem_current_context 
-002c 68088015 fetcht 1 ,mem_current_context 
-002d 2020222d branch context_get_next_loop 
+002c df200001 arg context_num ,loopcnt 
+002d 70001500 jam 0 ,mem_current_context 
+002e 68088015 fetcht 1 ,mem_current_context 
+002f 2020222d branch context_get_next_loop 
 
 p_g24_dispatch:
-002e c6930000 rtnmark0 mark_24g 
-002f 6800cd89 fetch 1 ,mem_g24_conn_sm 
-0030 c2808043 bbit1 state_24g_pair ,p_g24_pair_dispatch 
-0031 c2810063 bbit1 state_24g_reconn ,p_g24_reconn_dispatch 
-0032 6800cd7d fetch 1 ,mem_24g_transmit_by_interrupt 
-0033 c0008071 beq g24_tx_timer_int_enable ,p_g24_transmit_by_interrupt 
+0030 c6930000 rtnmark0 mark_24g 
+0031 6800cd89 fetch 1 ,mem_g24_conn_sm 
+0032 c2808045 bbit1 state_24g_pair ,p_g24_pair_dispatch 
+0033 c2810065 bbit1 state_24g_reconn ,p_g24_reconn_dispatch 
+0034 6800cd7d fetch 1 ,mem_24g_transmit_by_interrupt 
+0035 c0008073 beq g24_tx_timer_int_enable ,p_g24_transmit_by_interrupt 
 
 p_g24_transmit_process:
-0034 20400349 call p_g24_txdata_prep 
-0035 2434008c nbranch p_g24_nodata_transmit ,user 
-0036 2040032e call p_g24_rf_sta_check 
+0036 20400349 call p_g24_txdata_prep 
+0037 2434008e nbranch p_g24_nodata_transmit ,user 
+0038 2040032e call p_g24_rf_sta_check 
 
 p_g24_transmit_start:
-0037 2040036d call p_g24_transmit_packet 
-0038 6800cc4d fetch 1 ,mem_24g_pairing_sm 
-0039 c1ff8000 rtnne state_24g_pairing_success 
-003a 204003c4 call power_ctrl_start 
-003b 5800bb80 setarg g24_long_sleep_step1 
-003c 6001cc6c store 3 ,mem_24g_enter_hibernate 
-003d 70481006 jam 6 ,mem_24g_long_sleep_param_update_timer 
+0039 2040036d call p_g24_transmit_packet 
+003a 6800cc4d fetch 1 ,mem_24g_pairing_sm 
+003b c1ff8000 rtnne state_24g_pairing_success 
+003c 204003c4 call power_ctrl_start 
+003d 5800bb80 setarg g24_long_sleep_step1 
+003e 6001cc6c store 3 ,mem_24g_enter_hibernate 
+003f 70481006 jam 6 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-003e 20400095 call p_g24_lpm_wait 
-003f 24740000 nrtn user 
-0040 204000e3 call p_clear_wake 
-0041 58002fb2 setarg g24_4ms_interval_param 
-0042 20202d8c branch g24_lpm_long_sleep2 
+0040 20400097 call p_g24_lpm_wait 
+0041 24740000 nrtn user 
+0042 204000e5 call p_clear_wake 
+0043 58002fb2 setarg g24_4ms_interval_param 
+0044 20202d8c branch g24_lpm_long_sleep2 
 
 p_g24_pair_dispatch:
-0043 6800cb42 fetch 1 ,mem_g24_stop_g24_mode 
-0044 c000add4 beq 1 ,g24_stop_24g_mode 
-0045 20400435 call p_g24_tx_attemp_data_prep 
-0046 20400384 call p_g24_transmit_receive_ack 
-0047 242c044b nbranch p_g24_pair_txdata_retry ,sync 
-0048 2437844b nbranch p_g24_pair_txdata_retry ,user3 
-0049 204003ac call p_g24_ackpayload_parse 
-004a 68024c65 fetch 4 ,mem_24g_addr 
-004b 680a4d82 fetcht 4 ,mem_24g_allpowerful_addr 
-004c 98467c00 isub temp ,null 
-004d 20228050 branch p_g24_auto_pair_skip_rx_length ,zero 
-004e 2040005d call p_g24_pair_ackpayload_length_check 
-004f 24740000 nrtn user 
+0045 6800cb42 fetch 1 ,mem_g24_stop_g24_mode 
+0046 c000add4 beq 1 ,g24_stop_24g_mode 
+0047 20400435 call p_g24_tx_attemp_data_prep 
+0048 20400384 call p_g24_transmit_receive_ack 
+0049 242c044b nbranch p_g24_pair_txdata_retry ,sync 
+004a 2437844b nbranch p_g24_pair_txdata_retry ,user3 
+004b 204003ac call p_g24_ackpayload_parse 
+004c 68024c65 fetch 4 ,mem_24g_addr 
+004d 680a4d82 fetcht 4 ,mem_24g_allpowerful_addr 
+004e 98467c00 isub temp ,null 
+004f 20228052 branch p_g24_auto_pair_skip_rx_length ,zero 
+0050 2040005f call p_g24_pair_ackpayload_length_check 
+0051 24740000 nrtn user 
 
 p_g24_auto_pair_skip_rx_length:
-0050 6800cd89 fetch 1 ,mem_g24_conn_sm 
-0051 793ffe01 set0 state_24g_pair ,pdata 
-0052 6000cd89 store 1 ,mem_g24_conn_sm 
-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 
-0057 202283ec branch p_g24_start_pairing_sm1 ,zero 
-0058 68024c65 fetch 4 ,mem_24g_addr 
-0059 680a4c74 fetcht 4 ,mem_24g_device_addr 
-005a 98467c00 isub temp ,null 
-005b 20428061 call p_g24_store_dongle_addr ,zero 
-005c 2020006c branch p_g24_tx_attemp_dongle_succ 
+0052 6800cd89 fetch 1 ,mem_g24_conn_sm 
+0053 793ffe01 set0 state_24g_pair ,pdata 
+0054 6000cd89 store 1 ,mem_g24_conn_sm 
+0055 204001ec call p_mouse_tx_power_init 
+0056 68024c65 fetch 4 ,mem_24g_addr 
+0057 680a4c49 fetcht 4 ,mem_24g_paring_addr 
+0058 98467c00 isub temp ,null 
+0059 202283ec branch p_g24_start_pairing_sm1 ,zero 
+005a 68024c65 fetch 4 ,mem_24g_addr 
+005b 680a4c74 fetcht 4 ,mem_24g_device_addr 
+005c 98467c00 isub temp ,null 
+005d 20428063 call p_g24_store_dongle_addr ,zero 
+005e 2020006e branch p_g24_tx_attemp_dongle_succ 
 
 p_g24_pair_ackpayload_length_check:
-005d 6800cc3b fetch 1 ,mem_24g_rxdata_length 
-005e c0047fe7 beq bind_ackpayload_length ,enable_user 
-005f c003ffe7 beq bind_ackpayload_length_yc1131 ,enable_user 
-0060 20207fe9 branch disable_user 
+005f 6800cc3b fetch 1 ,mem_24g_rxdata_length 
+0060 c0047fe7 beq bind_ackpayload_length ,enable_user 
+0061 c003ffe7 beq bind_ackpayload_length_yc1131 ,enable_user 
+0062 20207fe9 branch disable_user 
 
 p_g24_store_dongle_addr:
-0061 68024c1d fetch 4 ,mem_24g_rxpayload + 2 
-0062 202003f4 branch p_g24_update_addr_and_synccrc8 
+0063 68024c1d fetch 4 ,mem_24g_rxpayload + 2 
+0064 202003f4 branch p_g24_update_addr_and_synccrc8 
 
 p_g24_reconn_dispatch:
-0063 6800cb42 fetch 1 ,mem_g24_stop_g24_mode 
-0064 c000add4 beq 1 ,g24_stop_24g_mode 
-0065 20400435 call p_g24_tx_attemp_data_prep 
-0066 20400384 call p_g24_transmit_receive_ack 
-0067 242c043e nbranch p_g24_attemp_txdata_retry ,sync 
-0068 2437843e nbranch p_g24_attemp_txdata_retry ,user3 
-0069 6800cd89 fetch 1 ,mem_g24_conn_sm 
-006a 793ffe02 set0 state_24g_reconn ,pdata 
-006b 6000cd89 store 1 ,mem_g24_conn_sm 
+0065 6800cb42 fetch 1 ,mem_g24_stop_g24_mode 
+0066 c000add4 beq 1 ,g24_stop_24g_mode 
+0067 20400435 call p_g24_tx_attemp_data_prep 
+0068 20400384 call p_g24_transmit_receive_ack 
+0069 242c043e nbranch p_g24_attemp_txdata_retry ,sync 
+006a 2437843e nbranch p_g24_attemp_txdata_retry ,user3 
+006b 6800cd89 fetch 1 ,mem_g24_conn_sm 
+006c 793ffe02 set0 state_24g_reconn ,pdata 
+006d 6000cd89 store 1 ,mem_g24_conn_sm 
 
 p_g24_tx_attemp_dongle_succ:
-006c 79200026 set1 mark_24g ,mark 
-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 202001c0 branch p_g24_transmit_by_interrupt_enable 
+006e 79200026 set1 mark_24g ,mark 
+006f 70480e00 jam 0 ,mem_mouse_long_mult_flag 
+0070 20402f20 call g24_tx_attemp_dongle_succ + 4 
+0071 20400381 call p_g24_txbuf_clear 
+0072 202001c0 branch p_g24_transmit_by_interrupt_enable 
 
 p_g24_transmit_by_interrupt:
-0071 204004b1 call p_g24_timer_check 
-0072 24740000 nrtn user 
-0073 20400086 call p_g24_interval_calibrate 
-0074 68014d7e fetch 2 ,mem_24g_transmit_by_interrupt_exit_count 
-0075 1fe0fe01 increase 1 ,pdata 
-0076 60014d7e store 2 ,mem_24g_transmit_by_interrupt_exit_count 
-0077 68094d80 fetcht 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
-0078 98467c00 isub temp ,null 
-0079 2042807b call p_g24_transmit_by_interrupt_exit ,zero 
-007a 20200034 branch p_g24_transmit_process 
+0073 204004b1 call p_g24_timer_check 
+0074 24740000 nrtn user 
+0075 20400088 call p_g24_interval_calibrate 
+0076 68014d7e fetch 2 ,mem_24g_transmit_by_interrupt_exit_count 
+0077 1fe0fe01 increase 1 ,pdata 
+0078 60014d7e store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+0079 68094d80 fetcht 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+007a 98467c00 isub temp ,null 
+007b 2042807d call p_g24_transmit_by_interrupt_exit ,zero 
+007c 20200036 branch p_g24_transmit_process 
 
 p_g24_transmit_by_interrupt_exit:
-007b 704d7d00 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
-007c 58000000 setarg 0 
-007d 60014d7e store 2 ,mem_24g_transmit_by_interrupt_exit_count 
-007e 58000064 setarg 100 
-007f 60014d80 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+007d 704d7d00 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
+007e 58000000 setarg 0 
+007f 60014d7e store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+0080 58000064 setarg 100 
+0081 60014d80 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
 
 p_g24_interval_min:
-0080 704c7800 jam 0 ,mem_24g_pac_index 
-0081 6800cc63 fetch 1 ,mem_24g_interval_min 
+0082 704c7800 jam 0 ,mem_24g_pac_index 
+0083 6800cc63 fetch 1 ,mem_24g_interval_min 
 
 p_g24_interval_store:
-0082 6000cc62 store 1 ,mem_24g_interval 
-0083 20600000 rtn 
+0084 6000cc62 store 1 ,mem_24g_interval 
+0085 20600000 rtn 
 
 p_g24_interval_max:
-0084 6800cc64 fetch 1 ,mem_24g_interval_max 
-0085 20200082 branch p_g24_interval_store 
+0086 6800cc64 fetch 1 ,mem_24g_interval_max 
+0087 20200084 branch p_g24_interval_store 
 
 p_g24_interval_calibrate:
-0086 6800cc78 fetch 1 ,mem_24g_pac_index 
-0087 1fe0fe01 increase 1 ,pdata 
-0088 6000cc78 store 1 ,mem_24g_pac_index 
-0089 c0020084 beq 4 ,p_g24_interval_max 
-008a c0028080 beq 5 ,p_g24_interval_min 
-008b 20600000 rtn 
+0088 6800cc78 fetch 1 ,mem_24g_pac_index 
+0089 1fe0fe01 increase 1 ,pdata 
+008a 6000cc78 store 1 ,mem_24g_pac_index 
+008b c0020086 beq 4 ,p_g24_interval_max 
+008c c0028082 beq 5 ,p_g24_interval_min 
+008d 20600000 rtn 
 
 p_g24_nodata_transmit:
-008c 6800cc69 fetch 1 ,mem_24g_abort_pac 
-008d 205a009e call p_g24_send_abort_packet ,blank 
-008e 6800cd7d fetch 1 ,mem_24g_transmit_by_interrupt 
-008f c1008000 rtneq g24_tx_timer_int_enable 
-0090 204000af call p_g24_search_dongle 
+008e 6800cc69 fetch 1 ,mem_24g_abort_pac 
+008f 205a00a0 call p_g24_send_abort_packet ,blank 
+0090 6800cd7d fetch 1 ,mem_24g_transmit_by_interrupt 
+0091 c1008000 rtneq g24_tx_timer_int_enable 
+0092 204000b1 call p_g24_search_dongle 
 
 p_g24_long_sleep:
-0091 20400095 call p_g24_lpm_wait 
-0092 24740000 nrtn user 
-0093 6801cc6c fetch 3 ,mem_24g_enter_hibernate 
-0094 20202d8c branch g24_lpm_long_sleep2 
+0093 20400097 call p_g24_lpm_wait 
+0094 24740000 nrtn user 
+0095 6801cc6c fetch 3 ,mem_24g_enter_hibernate 
+0096 20202d8c branch g24_lpm_long_sleep2 
 
 p_g24_lpm_wait:
-0095 78347c00 enable user 
-0096 20402afa call lpo_calibration 
-0097 6801c16f fetch 3 ,mem_clks_per_lpo 
-0098 203a7fe9 branch disable_user ,blank 
-0099 6800c091 fetch 1 ,mem_lpm_mode 
+0097 78347c00 enable user 
+0098 20402afa call lpo_calibration 
+0099 6801c16f fetch 3 ,mem_clks_per_lpo 
 009a 203a7fe9 branch disable_user ,blank 
-009b 6800cd7d fetch 1 ,mem_24g_transmit_by_interrupt 
-009c c000ffe9 beq g24_tx_timer_int_enable ,disable_user 
-009d 202000e6 branch p_mouse_setgpio_lpm 
+009b 6800c091 fetch 1 ,mem_lpm_mode 
+009c 203a7fe9 branch disable_user ,blank 
+009d 6800cd7d fetch 1 ,mem_24g_transmit_by_interrupt 
+009e c000ffe9 beq g24_tx_timer_int_enable ,disable_user 
+009f 202000e8 branch p_mouse_setgpio_lpm 
 
 p_g24_send_abort_packet:
-009e 704c6901 jam 1 ,mem_24g_abort_pac 
-009f 704d7200 jam 0 ,mem_24g_rf_hop_ch 
-00a0 204002f3 call p_g24_transmit_rf_ctrl_clear 
-00a1 6000cbd9 store 1 ,mem_24g_txbuf 
-00a2 58000000 setarg 0 
-00a3 6003cbda store 7 ,mem_24g_txbuf + 1 
-00a4 68024c74 fetch 4 ,mem_24g_device_addr 
-00a5 60024be1 store 4 ,mem_24g_txbuf + 8 
-00a6 704c3d0c jam 12 ,mem_24g_datalen 
-00a7 6800cc3e fetch 1 ,mem_24g_data_type 
-00a8 79207e03 set1 bit_abort ,pdata 
-00a9 6000cc3e store 1 ,mem_24g_data_type 
-00aa 2040034c call p_g24_txdata_enable_tx 
-00ab 20200037 branch p_g24_transmit_start 
+00a0 704c6901 jam 1 ,mem_24g_abort_pac 
+00a1 704d7200 jam 0 ,mem_24g_rf_hop_ch 
+00a2 204002f3 call p_g24_transmit_rf_ctrl_clear 
+00a3 6000cbd9 store 1 ,mem_24g_txbuf 
+00a4 58000000 setarg 0 
+00a5 6003cbda store 7 ,mem_24g_txbuf + 1 
+00a6 68024c74 fetch 4 ,mem_24g_device_addr 
+00a7 60024be1 store 4 ,mem_24g_txbuf + 8 
+00a8 704c3d0c jam 12 ,mem_24g_datalen 
+00a9 6800cc3e fetch 1 ,mem_24g_data_type 
+00aa 79207e03 set1 bit_abort ,pdata 
+00ab 6000cc3e store 1 ,mem_24g_data_type 
+00ac 2040034c call p_g24_txdata_enable_tx 
+00ad 20200039 branch p_g24_transmit_start 
 
 p_g24_search_dongle_init:
-00ac 58000000 setarg 0 
-00ad 6001cd86 store 3 ,mem_24g_search_dongle_action 
-00ae 20600000 rtn 
+00ae 58000000 setarg 0 
+00af 6001cd86 store 3 ,mem_24g_search_dongle_action 
+00b0 20600000 rtn 
 
 p_g24_search_dongle:
-00af 6800c80e fetch 1 ,mem_mouse_long_mult_flag 
-00b0 207a0000 rtn blank 
-00b1 6800cc69 fetch 1 ,mem_24g_abort_pac 
+00b1 6800c80e fetch 1 ,mem_mouse_long_mult_flag 
 00b2 207a0000 rtn blank 
-00b3 6800cb45 fetch 1 ,mem_24g_search_dongle_wait 
-00b4 1fe0fe01 increase 1 ,pdata 
-00b5 1fe17e03 and_into 3 ,pdata 
-00b6 6000cb45 store 1 ,mem_24g_search_dongle_wait 
-00b7 247a0000 nrtn blank 
-00b8 704d8800 jam 0 ,mem_24g_search_dongle_ch 
+00b3 6800cc69 fetch 1 ,mem_24g_abort_pac 
+00b4 207a0000 rtn blank 
+00b5 6800cb45 fetch 1 ,mem_24g_search_dongle_wait 
+00b6 1fe0fe01 increase 1 ,pdata 
+00b7 1fe17e03 and_into 3 ,pdata 
+00b8 6000cb45 store 1 ,mem_24g_search_dongle_wait 
+00b9 247a0000 nrtn blank 
+00ba 704d8800 jam 0 ,mem_24g_search_dongle_ch 
 
 p_g24_search_dongle_loop:
-00b9 6800cd88 fetch 1 ,mem_24g_search_dongle_ch 
-00ba 1fe0fe01 increase 1 ,pdata 
-00bb 6000cd88 store 1 ,mem_24g_search_dongle_ch 
-00bc 1fe67c08 sub pdata ,g24_ch_number ,null 
-00bd 242100c3 nbranch p_g24_search_dongle_loop_end ,positive 
-00be 20400435 call p_g24_tx_attemp_data_prep 
-00bf 20400384 call p_g24_transmit_receive_ack 
-00c0 242c00c9 nbranch p_g24_search_dongle_loop_retry ,sync 
-00c1 243780c9 nbranch p_g24_search_dongle_loop_retry ,user3 
-00c2 204000d3 call p_g24_search_dongle_success 
+00bb 6800cd88 fetch 1 ,mem_24g_search_dongle_ch 
+00bc 1fe0fe01 increase 1 ,pdata 
+00bd 6000cd88 store 1 ,mem_24g_search_dongle_ch 
+00be 1fe67c08 sub pdata ,g24_ch_number ,null 
+00bf 242100c5 nbranch p_g24_search_dongle_loop_end ,positive 
+00c0 20400435 call p_g24_tx_attemp_data_prep 
+00c1 20400384 call p_g24_transmit_receive_ack 
+00c2 242c00cb nbranch p_g24_search_dongle_loop_retry ,sync 
+00c3 243780cb nbranch p_g24_search_dongle_loop_retry ,user3 
+00c4 204000d5 call p_g24_search_dongle_success 
 
 p_g24_search_dongle_loop_end:
-00c3 20400381 call p_g24_txbuf_clear 
-00c4 6800cd87 fetch 1 ,mem_24g_search_dongle_count 
-00c5 1fe0fe01 increase 1 ,pdata 
-00c6 6000cd87 store 1 ,mem_24g_search_dongle_count 
-00c7 c00800cb beq g24_ch_poll_count ,p_g24_search_dongle_check 
-00c8 20600000 rtn 
+00c5 20400381 call p_g24_txbuf_clear 
+00c6 6800cd87 fetch 1 ,mem_24g_search_dongle_count 
+00c7 1fe0fe01 increase 1 ,pdata 
+00c8 6000cd87 store 1 ,mem_24g_search_dongle_count 
+00c9 c00800cd beq g24_ch_poll_count ,p_g24_search_dongle_check 
+00ca 20600000 rtn 
 
 p_g24_search_dongle_loop_retry:
-00c9 204004e2 call p_g24_ch 
-00ca 202000b9 branch p_g24_search_dongle_loop 
+00cb 204004e2 call p_g24_ch 
+00cc 202000bb branch p_g24_search_dongle_loop 
 
 p_g24_search_dongle_check:
-00cb 704d8700 jam 0 ,mem_24g_search_dongle_count 
-00cc 6800cd86 fetch 1 ,mem_24g_search_dongle_action 
-00cd c3800000 rtnbit1 g24_disconn_state 
-00ce 79207e00 set1 g24_disconn_state ,pdata 
-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 20200169 branch p_mouse_sensor_powerdown 
+00cd 704d8700 jam 0 ,mem_24g_search_dongle_count 
+00ce 6800cd86 fetch 1 ,mem_24g_search_dongle_action 
+00cf c3800000 rtnbit1 g24_disconn_state 
+00d0 79207e00 set1 g24_disconn_state ,pdata 
+00d1 6000cd86 store 1 ,mem_24g_search_dongle_action 
+00d2 58000708 setarg g24_disconn_nodata_timer 
+00d3 600146b0 store 2 ,mem_mouse_no_data_timer 
+00d4 20200169 branch p_mouse_sensor_powerdown 
 
 p_g24_search_dongle_success:
-00d3 6800cc69 fetch 1 ,mem_24g_abort_pac 
-00d4 203a00ac branch p_g24_search_dongle_init ,blank 
-00d5 704d8700 jam 0 ,mem_24g_search_dongle_count 
-00d6 6800cd86 fetch 1 ,mem_24g_search_dongle_action 
-00d7 c4000000 rtnbit0 g24_disconn_state 
-00d8 793ffe00 set0 g24_disconn_state ,pdata 
-00d9 6000cd86 store 1 ,mem_24g_search_dongle_action 
-00da 20403f8d call mouse_no_data_timer_init 
+00d5 6800cc69 fetch 1 ,mem_24g_abort_pac 
+00d6 203a00ae branch p_g24_search_dongle_init ,blank 
+00d7 704d8700 jam 0 ,mem_24g_search_dongle_count 
+00d8 6800cd86 fetch 1 ,mem_24g_search_dongle_action 
+00d9 c4000000 rtnbit0 g24_disconn_state 
+00da 793ffe00 set0 g24_disconn_state ,pdata 
+00db 6000cd86 store 1 ,mem_24g_search_dongle_action 
+00dc 20403f8d call mouse_no_data_timer_init 
 
 p_mouse_init_sensor_reset:
-00db 704b0a01 jam 1 ,mem_mouse_init_sensor_reset_flag 
-00dc 20200109 branch p_mouse_init_sunt 
+00dd 704b0a01 jam 1 ,mem_mouse_init_sensor_reset_flag 
+00de 20200109 branch p_mouse_init_sunt 
 
 p_mouse_before_lpm:
-00dd c6130000 rtnmark1 mark_24g 
-00de 204000e6 call p_mouse_setgpio_lpm 
-00df 6800c040 fetch 1 ,mem_context 
-00e0 c30000e3 bbit0 state_inconn ,p_clear_wake 
-00e1 680080a0 fetch 1 ,mem_lpm_current_mult 
-00e2 247a0000 nrtn blank 
+00df c6130000 rtnmark1 mark_24g 
+00e0 204000e8 call p_mouse_setgpio_lpm 
+00e1 6800c040 fetch 1 ,mem_context 
+00e2 c30000e5 bbit0 state_inconn ,p_clear_wake 
+00e3 680080a0 fetch 1 ,mem_lpm_current_mult 
+00e4 247a0000 nrtn blank 
 
 p_clear_wake:
-00e3 58000000 setarg 0 
-00e4 600400a1 store 8 ,mem_gpio_wakeup_low 
-00e5 20600000 rtn 
+00e5 58000000 setarg 0 
+00e6 600400a1 store 8 ,mem_gpio_wakeup_low 
+00e7 20600000 rtn 
 
 p_mouse_setgpio_lpm:
-00e6 204000f0 call p_mouse_set_sdio_high 
-00e7 204000e3 call p_clear_wake 
+00e8 204000f2 call p_mouse_set_sdio_high 
+00e9 204000e5 call p_clear_wake 
 
 p_mouse_setgpio_lpm_before:
-00e8 20403ebf call mouse_lpm_before_common 
-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 
-00ed 18440400 invert temp ,temp 
-00ee 601a007c hstoret 4 ,core_gpio_pd0 
-00ef 20600000 rtn 
+00ea 20403ebf call mouse_lpm_before_common 
+00eb 2040020b call p_ice_gpio_set_input_pu 
+00ec 68120070 hfetch 4 ,core_gpio_oe0 
+00ed 681a0078 hfetcht 4 ,core_gpio_pu0 
+00ee 98418400 ior temp ,temp 
+00ef 18440400 invert temp ,temp 
+00f0 601a007c hstoret 4 ,core_gpio_pd0 
+00f1 20600000 rtn 
 
 p_mouse_set_sdio_high:
-00f0 6800cb0a fetch 1 ,mem_mouse_init_sensor_reset_flag 
-00f1 207a0000 rtn blank 
-00f2 2020029b branch p_mouse_seting_sensor_type 
+00f2 6800cb0a fetch 1 ,mem_mouse_init_sensor_reset_flag 
+00f3 207a0000 rtn blank 
+00f4 2020029b branch p_mouse_seting_sensor_type 
 
 p_device_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 
@@ -558,7 +558,7 @@
 p_mouse_start_24g_mode:
 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 
+01a0 204000dd 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 
@@ -584,7 +584,7 @@
 p_mouse_cb_fuction:
 01b0 580001bd setarg p_mouse_g24_package_data 
 01b1 60014d6e store 2 ,mem_cb_24g_data 
-01b2 580000dd setarg p_mouse_before_lpm 
+01b2 580000df 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 
@@ -644,7 +644,7 @@
 p_mouse_24g_pairing_complete:
 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 
+01e0 204000dd 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 
@@ -674,7 +674,7 @@
 p_mouse_24g_attempt_success:
 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 
+01f6 204000dd 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 
@@ -688,7 +688,7 @@
 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 
+0202 204000ea 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 
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/YJX_Project/mingAo_Only24g/program/patch.prog	(revision 2900)
+++ /branch/mouse_project/YJX_Project/mingAo_Only24g/program/patch.prog	(working copy)
@@ -41,6 +41,8 @@
 
 ifdef MOUSE	
 p_soft_reset:
+	jam 0x86,0x895b	
+	jam 0xa0,0x895c
 	hfetch 1,0x813b
 	store 1,mem_power_on_flag
 	branch soft_reset+1
@@ -348,8 +350,6 @@
 	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
Index: sched/mouse.dat
===================================================================
--- /branch/mouse_project/YJX_Project/mingAo_Only24g/sched/mouse.dat	(revision 2900)
+++ /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:09 00
+mem_firmware_version:0a 00
 
 mem_device_option:40
 mem_lpm_mode:01
