Index: output/eeprom.dat
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_Only24g_New/output/eeprom.dat	(revision 2873)
+++ /branch/mouse_project/YJX_Project/YJX_Only24g_New/output/eeprom.dat	(working copy)
@@ -15,11 +15,11 @@
 c0
 00
 80
-1d
+1f
 c0
 01
 00
-25
+27
 c0
 42
 84
@@ -39,11 +39,11 @@
 c0
 59
 00
-2e
+30
 c0
 62
 00
-f7
+f9
 c0
 71
 82
@@ -108,6 +108,14 @@
 60
 00
 00
+70
+89
+5b
+86
+70
+89
+5c
+a0
 68
 10
 81
@@ -183,7 +191,7 @@
 20
 3a
 00
-28
+2a
 20
 20
 20
@@ -199,11 +207,11 @@
 c2
 80
 80
-41
+43
 c2
 81
 00
-61
+63
 68
 00
 cd
@@ -211,7 +219,7 @@
 c0
 00
 80
-74
+76
 20
 40
 03
@@ -219,7 +227,7 @@
 24
 34
 00
-8f
+91
 20
 40
 03
@@ -243,11 +251,11 @@
 20
 40
 00
-6f
+71
 20
 40
 00
-9a
+9c
 24
 74
 00
@@ -255,7 +263,7 @@
 20
 40
 00
-e7
+e9
 58
 00
 f8
@@ -307,11 +315,11 @@
 20
 22
 80
-4e
+50
 20
 40
 00
-5b
+5d
 24
 74
 00
@@ -363,11 +371,11 @@
 20
 42
 80
-5f
+61
 20
 20
 00
-6a
+6c
 68
 00
 cc
@@ -479,7 +487,7 @@
 20
 40
 00
-89
+8b
 68
 01
 4d
@@ -503,11 +511,11 @@
 20
 42
 80
-7e
+80
 20
 20
 00
-34
+36
 70
 4d
 5f
@@ -551,7 +559,7 @@
 20
 20
 00
-85
+87
 68
 00
 cc
@@ -567,11 +575,11 @@
 c0
 02
 00
-87
+89
 c0
 02
 80
-83
+85
 20
 60
 00
@@ -583,7 +591,7 @@
 20
 5a
 00
-a3
+a5
 68
 00
 cd
@@ -595,11 +603,11 @@
 20
 40
 00
-b4
+b6
 20
 40
 00
-9a
+9c
 24
 74
 00
@@ -655,7 +663,7 @@
 20
 20
 00
-ea
+ec
 70
 4c
 4b
@@ -711,7 +719,7 @@
 20
 20
 00
-37
+39
 58
 00
 00
@@ -783,7 +791,7 @@
 24
 21
 00
-c8
+ca
 20
 40
 04
@@ -795,15 +803,15 @@
 24
 2c
 00
-ce
+d0
 24
 37
 80
-ce
+d0
 20
 40
 00
-d8
+da
 20
 40
 03
@@ -823,7 +831,7 @@
 c0
 08
 00
-d0
+d2
 20
 60
 00
@@ -835,7 +843,7 @@
 20
 20
 00
-be
+c0
 70
 4d
 69
@@ -875,7 +883,7 @@
 20
 3a
 00
-b1
+b3
 70
 4d
 69
@@ -911,7 +919,7 @@
 20
 40
 00
-ea
+ec
 68
 00
 c0
@@ -919,7 +927,7 @@
 c3
 00
 00
-e7
+e9
 68
 00
 80
@@ -943,11 +951,11 @@
 20
 40
 00
-f4
+f6
 20
 40
 00
-e7
+e9
 20
 40
 3e
@@ -992,14 +1000,6 @@
 20
 02
 87
-70
-89
-5b
-86
-70
-89
-5c
-a0
 20
 40
 34
@@ -1615,7 +1615,7 @@
 58
 00
 00
-e1
+e3
 60
 01
 41
@@ -1935,7 +1935,7 @@
 20
 40
 00
-ec
+ee
 68
 08
 c6
@@ -7388,8 +7388,8 @@
 60
 00
 00
-01
-9d
+4d
+3e
 aa
 55
 08
@@ -7833,7 +7833,7 @@
 00
 95
 4b
-06
+07
 00
 aa
 55
@@ -7908,8 +7908,8 @@
 0f
 0f
 0f
-1e
-a6
+ed
+98
 ff
 ff
 ff
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_Only24g_New/output/program.lis	(revision 2873)
+++ /branch/mouse_project/YJX_Project/YJX_Only24g_New/output/program.lis	(working copy)
@@ -2,14 +2,14 @@
               org 0x0000
 0000 c284000d bbit1 8 ,pf_patch_ext 
 0001 c000001a beq patch00_0 ,p_soft_reset 
-0002 c000801d beq patch00_1 ,p_soft_reset_1 
-0003 c0010025 beq patch00_2 ,p_soft_reset_2 
+0002 c000801f beq patch00_1 ,p_soft_reset_1 
+0003 c0010027 beq patch00_2 ,p_soft_reset_2 
 0004 c0428491 beq patch10_5 ,p_shutdown_radio 
 0005 c0448462 beq patch11_1 ,p_set_freq_tx 
 0006 c0450493 beq patch11_2 ,p_initialize_radio_cont 
 0007 c0538496 beq patch14_7 ,p_lpm_dispatch 
-0008 c059002e beq patch16_2 ,p_g24_dispatch 
-0009 c06200f7 beq patch18_4 ,p_device_init 
+0008 c0590030 beq patch16_2 ,p_g24_dispatch 
+0009 c06200f9 beq patch18_4 ,p_device_init 
 000a c0718287 beq patch1c_3 ,p_mouse_seting_dpi 
 000b c0730202 beq patch1c_6 ,p_mouse_motion 
 000c 20202a8e branch loop 
@@ -32,303 +32,303 @@
 0019 20600000 rtn 
 
 p_soft_reset:
-001a 6810813b hfetch 1 ,0x813b 
-001b 6000cb19 store 1 ,mem_power_on_flag 
-001c 20202002 branch soft_reset + 1 
+001a 70895b86 jam 0x86 ,0x895b 
+001b 70895ca0 jam 0xa0 ,0x895c 
+001c 6810813b hfetch 1 ,0x813b 
+001d 6000cb19 store 1 ,mem_power_on_flag 
+001e 20202002 branch soft_reset + 1 
 
 p_soft_reset_1:
-001d d8a009ae arg mem_sp_state ,contw 
-001e df20000c arg 12 ,loopcnt 
-001f 20407ed4 call clear_mem 
-0020 20406a03 call rfcomm_init 
-0021 20405cf6 call init_lmp 
-0022 2455ac65 ncall lpm_disable_exen_output ,wake 
-0023 20407ccd call ui_init + 1 
-0024 2020200c branch soft_reset + 11 
+001f d8a009ae arg mem_sp_state ,contw 
+0020 df20000c arg 12 ,loopcnt 
+0021 20407ed4 call clear_mem 
+0022 20406a03 call rfcomm_init 
+0023 20405cf6 call init_lmp 
+0024 2455ac65 ncall lpm_disable_exen_output ,wake 
+0025 20407ccd call ui_init + 1 
+0026 2020200c branch soft_reset + 11 
 
 p_soft_reset_2:
-0025 2055b2e3 call app_lpm_init ,wake 
-0026 2040756a call publickey_init 
-0027 2055ab41 call lpm_recover_clk ,wake 
+0027 2055b2e3 call app_lpm_init ,wake 
+0028 2040756a call publickey_init 
+0029 2055ab41 call lpm_recover_clk ,wake 
 
 p_sp_cal_loop:
-0028 204076dc call sp_calc_sequence 
-0029 6800c65a fetch 1 ,mem_ssp_enable 
-002a 203a2012 branch main_loop ,blank 
-002b 6800c5b1 fetch 1 ,mem_sp_local_key_invalid 
-002c 203a0028 branch p_sp_cal_loop ,blank 
-002d 20202012 branch main_loop 
+002a 204076dc call sp_calc_sequence 
+002b 6800c65a fetch 1 ,mem_ssp_enable 
+002c 203a2012 branch main_loop ,blank 
+002d 6800c5b1 fetch 1 ,mem_sp_local_key_invalid 
+002e 203a002a branch p_sp_cal_loop ,blank 
+002f 20202012 branch main_loop 
 
 p_g24_dispatch:
-002e c6930000 rtnmark0 mark_24g 
-002f 6800cd6b fetch 1 ,mem_g24_conn_sm 
-0030 c2808041 bbit1 state_24g_pair ,p_g24_pair_dispatch 
-0031 c2810061 bbit1 state_24g_reconn ,p_g24_reconn_dispatch 
-0032 6800cd5f fetch 1 ,mem_24g_transmit_by_interrupt 
-0033 c0008074 beq g24_tx_timer_int_enable ,p_g24_transmit_by_interrupt 
+0030 c6930000 rtnmark0 mark_24g 
+0031 6800cd6b fetch 1 ,mem_g24_conn_sm 
+0032 c2808043 bbit1 state_24g_pair ,p_g24_pair_dispatch 
+0033 c2810063 bbit1 state_24g_reconn ,p_g24_reconn_dispatch 
+0034 6800cd5f fetch 1 ,mem_24g_transmit_by_interrupt 
+0035 c0008076 beq g24_tx_timer_int_enable ,p_g24_transmit_by_interrupt 
 
 p_g24_transmit_process:
-0034 20400329 call p_g24_txdata_prep 
-0035 2434008f nbranch p_g24_nodata_transmit ,user 
-0036 2040030e call p_g24_rf_sta_check 
+0036 20400329 call p_g24_txdata_prep 
+0037 24340091 nbranch p_g24_nodata_transmit ,user 
+0038 2040030e call p_g24_rf_sta_check 
 
 p_g24_transmit_start:
-0037 20400354 call p_g24_transmit_packet 
-0038 6800cc2f fetch 1 ,mem_24g_pairing_sm 
-0039 c1ff8000 rtnne state_24g_pairing_success 
-003a 204003ab call power_ctrl_start 
-003b 2040006f call g24_long_sleep_shorter_param_update 
+0039 20400354 call p_g24_transmit_packet 
+003a 6800cc2f fetch 1 ,mem_24g_pairing_sm 
+003b c1ff8000 rtnne state_24g_pairing_success 
+003c 204003ab call power_ctrl_start 
+003d 20400071 call g24_long_sleep_shorter_param_update 
 
 p_g24_short_sleep:
-003c 2040009a call p_g24_lpm_wait 
-003d 24740000 nrtn user 
-003e 204000e7 call p_clear_wake 
-003f 5800f80c setarg 63500 
-0040 20202b93 branch lpm_dispatch_sleep 
+003e 2040009c call p_g24_lpm_wait 
+003f 24740000 nrtn user 
+0040 204000e9 call p_clear_wake 
+0041 5800f80c setarg 63500 
+0042 20202b93 branch lpm_dispatch_sleep 
 
 p_g24_pair_dispatch:
-0041 6800cb43 fetch 1 ,mem_g24_stop_g24_mode 
-0042 c000add4 beq 1 ,g24_stop_24g_mode 
-0043 2040041c call p_g24_tx_attemp_data_prep 
-0044 2040036b call p_g24_transmit_receive_ack 
-0045 242c0432 nbranch p_g24_pair_txdata_retry ,sync 
-0046 24378432 nbranch p_g24_pair_txdata_retry ,user3 
-0047 20400393 call p_g24_ackpayload_parse 
-0048 68024c47 fetch 4 ,mem_24g_addr 
-0049 680a4d64 fetcht 4 ,mem_24g_allpowerful_addr 
-004a 98467c00 isub temp ,null 
-004b 2022804e branch p_g24_auto_pair_skip_rx_length ,zero 
-004c 2040005b call p_g24_pair_ackpayload_length_check 
-004d 24740000 nrtn user 
+0043 6800cb43 fetch 1 ,mem_g24_stop_g24_mode 
+0044 c000add4 beq 1 ,g24_stop_24g_mode 
+0045 2040041c call p_g24_tx_attemp_data_prep 
+0046 2040036b call p_g24_transmit_receive_ack 
+0047 242c0432 nbranch p_g24_pair_txdata_retry ,sync 
+0048 24378432 nbranch p_g24_pair_txdata_retry ,user3 
+0049 20400393 call p_g24_ackpayload_parse 
+004a 68024c47 fetch 4 ,mem_24g_addr 
+004b 680a4d64 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 
 
 p_g24_auto_pair_skip_rx_length:
-004e 6800cd6b fetch 1 ,mem_g24_conn_sm 
-004f 793ffe01 set0 state_24g_pair ,pdata 
-0050 6000cd6b store 1 ,mem_g24_conn_sm 
-0051 204001cc call p_mouse_tx_power_init 
-0052 68024c47 fetch 4 ,mem_24g_addr 
-0053 680a4c2b fetcht 4 ,mem_24g_paring_addr 
-0054 98467c00 isub temp ,null 
-0055 202283d3 branch p_g24_start_pairing_sm1 ,zero 
-0056 68024c47 fetch 4 ,mem_24g_addr 
-0057 680a4c56 fetcht 4 ,mem_24g_device_addr 
-0058 98467c00 isub temp ,null 
-0059 2042805f call p_g24_store_dongle_addr ,zero 
-005a 2020006a branch p_g24_tx_attemp_dongle_succ 
+0050 6800cd6b fetch 1 ,mem_g24_conn_sm 
+0051 793ffe01 set0 state_24g_pair ,pdata 
+0052 6000cd6b store 1 ,mem_g24_conn_sm 
+0053 204001cc call p_mouse_tx_power_init 
+0054 68024c47 fetch 4 ,mem_24g_addr 
+0055 680a4c2b fetcht 4 ,mem_24g_paring_addr 
+0056 98467c00 isub temp ,null 
+0057 202283d3 branch p_g24_start_pairing_sm1 ,zero 
+0058 68024c47 fetch 4 ,mem_24g_addr 
+0059 680a4c56 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 
 
 p_g24_pair_ackpayload_length_check:
-005b 6800cc1d fetch 1 ,mem_24g_rxdata_length 
-005c c0047fe7 beq bind_ackpayload_length ,enable_user 
-005d c003ffe7 beq bind_ackpayload_length_yc1131 ,enable_user 
-005e 20207fe9 branch disable_user 
+005d 6800cc1d 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 
 
 p_g24_store_dongle_addr:
-005f 68024bff fetch 4 ,mem_24g_rxpayload + 2 
-0060 202003db branch p_g24_update_addr_and_synccrc8 
+0061 68024bff fetch 4 ,mem_24g_rxpayload + 2 
+0062 202003db branch p_g24_update_addr_and_synccrc8 
 
 p_g24_reconn_dispatch:
-0061 6800cb43 fetch 1 ,mem_g24_stop_g24_mode 
-0062 c000add4 beq 1 ,g24_stop_24g_mode 
-0063 2040041c call p_g24_tx_attemp_data_prep 
-0064 2040036b call p_g24_transmit_receive_ack 
-0065 242c0425 nbranch p_g24_attemp_txdata_retry ,sync 
-0066 24378425 nbranch p_g24_attemp_txdata_retry ,user3 
-0067 6800cd6b fetch 1 ,mem_g24_conn_sm 
-0068 793ffe02 set0 state_24g_reconn ,pdata 
-0069 6000cd6b store 1 ,mem_g24_conn_sm 
+0063 6800cb43 fetch 1 ,mem_g24_stop_g24_mode 
+0064 c000add4 beq 1 ,g24_stop_24g_mode 
+0065 2040041c call p_g24_tx_attemp_data_prep 
+0066 2040036b call p_g24_transmit_receive_ack 
+0067 242c0425 nbranch p_g24_attemp_txdata_retry ,sync 
+0068 24378425 nbranch p_g24_attemp_txdata_retry ,user3 
+0069 6800cd6b fetch 1 ,mem_g24_conn_sm 
+006a 793ffe02 set0 state_24g_reconn ,pdata 
+006b 6000cd6b store 1 ,mem_g24_conn_sm 
 
 p_g24_tx_attemp_dongle_succ:
-006a 79200026 set1 mark_24g ,mark 
-006b 70480e00 jam 0 ,mem_mouse_long_mult_flag 
-006c 20402f20 call g24_tx_attemp_dongle_succ + 4 
-006d 20400368 call p_g24_txbuf_clear 
-006e 202001a0 branch p_g24_transmit_by_interrupt_enable 
+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 20400368 call p_g24_txbuf_clear 
+0070 202001a0 branch p_g24_transmit_by_interrupt_enable 
 
 g24_long_sleep_shorter_param_update:
-006f 58017700 setarg g24_long_sleep_step1 
-0070 6001cc4e store 3 ,mem_24g_enter_hibernate 
-0071 5800012c setarg g24_long_sleep_step1_timeout 
-0072 60014810 store 2 ,mem_24g_long_sleep_param_update_timer 
-0073 20600000 rtn 
+0071 58017700 setarg g24_long_sleep_step1 
+0072 6001cc4e store 3 ,mem_24g_enter_hibernate 
+0073 5800012c setarg g24_long_sleep_step1_timeout 
+0074 60014810 store 2 ,mem_24g_long_sleep_param_update_timer 
+0075 20600000 rtn 
 
 p_g24_transmit_by_interrupt:
-0074 20400498 call p_g24_timer_check 
-0075 24740000 nrtn user 
-0076 20400089 call p_g24_interval_calibrate 
-0077 68014d60 fetch 2 ,mem_24g_transmit_by_interrupt_exit_count 
-0078 1fe0fe01 increase 1 ,pdata 
-0079 60014d60 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
-007a 68094d62 fetcht 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
-007b 98467c00 isub temp ,null 
-007c 2042807e call p_g24_transmit_by_interrupt_exit ,zero 
-007d 20200034 branch p_g24_transmit_process 
+0076 20400498 call p_g24_timer_check 
+0077 24740000 nrtn user 
+0078 2040008b call p_g24_interval_calibrate 
+0079 68014d60 fetch 2 ,mem_24g_transmit_by_interrupt_exit_count 
+007a 1fe0fe01 increase 1 ,pdata 
+007b 60014d60 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+007c 68094d62 fetcht 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+007d 98467c00 isub temp ,null 
+007e 20428080 call p_g24_transmit_by_interrupt_exit ,zero 
+007f 20200036 branch p_g24_transmit_process 
 
 p_g24_transmit_by_interrupt_exit:
-007e 704d5f00 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
-007f 58000000 setarg 0 
-0080 60014d60 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
-0081 58000064 setarg 100 
-0082 60014d62 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+0080 704d5f00 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
+0081 58000000 setarg 0 
+0082 60014d60 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+0083 58000064 setarg 100 
+0084 60014d62 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
 
 p_g24_interval_min:
-0083 704c5a00 jam 0 ,mem_24g_pac_index 
-0084 6800cc45 fetch 1 ,mem_24g_interval_min 
+0085 704c5a00 jam 0 ,mem_24g_pac_index 
+0086 6800cc45 fetch 1 ,mem_24g_interval_min 
 
 p_g24_interval_store:
-0085 6000cc44 store 1 ,mem_24g_interval 
-0086 20600000 rtn 
+0087 6000cc44 store 1 ,mem_24g_interval 
+0088 20600000 rtn 
 
 p_g24_interval_max:
-0087 6800cc46 fetch 1 ,mem_24g_interval_max 
-0088 20200085 branch p_g24_interval_store 
+0089 6800cc46 fetch 1 ,mem_24g_interval_max 
+008a 20200087 branch p_g24_interval_store 
 
 p_g24_interval_calibrate:
-0089 6800cc5a fetch 1 ,mem_24g_pac_index 
-008a 1fe0fe01 increase 1 ,pdata 
-008b 6000cc5a store 1 ,mem_24g_pac_index 
-008c c0020087 beq 4 ,p_g24_interval_max 
-008d c0028083 beq 5 ,p_g24_interval_min 
-008e 20600000 rtn 
+008b 6800cc5a fetch 1 ,mem_24g_pac_index 
+008c 1fe0fe01 increase 1 ,pdata 
+008d 6000cc5a store 1 ,mem_24g_pac_index 
+008e c0020089 beq 4 ,p_g24_interval_max 
+008f c0028085 beq 5 ,p_g24_interval_min 
+0090 20600000 rtn 
 
 p_g24_nodata_transmit:
-008f 6800cc4b fetch 1 ,mem_24g_abort_pac 
-0090 205a00a3 call p_g24_send_abort_packet ,blank 
-0091 6800cd5f fetch 1 ,mem_24g_transmit_by_interrupt 
-0092 c1008000 rtneq g24_tx_timer_int_enable 
-0093 204000b4 call p_g24_search_dongle 
+0091 6800cc4b fetch 1 ,mem_24g_abort_pac 
+0092 205a00a5 call p_g24_send_abort_packet ,blank 
+0093 6800cd5f fetch 1 ,mem_24g_transmit_by_interrupt 
+0094 c1008000 rtneq g24_tx_timer_int_enable 
+0095 204000b6 call p_g24_search_dongle 
 
 p_g24_long_sleep:
-0094 2040009a call p_g24_lpm_wait 
-0095 24740000 nrtn user 
-0096 6801cc4e fetch 3 ,mem_24g_enter_hibernate 
-0097 20407f49 call clk2lpo 
-0098 600a415b storet 4 ,mem_sleep_counter 
-0099 20202b2a branch lpm_sleep 
+0096 2040009c call p_g24_lpm_wait 
+0097 24740000 nrtn user 
+0098 6801cc4e fetch 3 ,mem_24g_enter_hibernate 
+0099 20407f49 call clk2lpo 
+009a 600a415b storet 4 ,mem_sleep_counter 
+009b 20202b2a branch lpm_sleep 
 
 p_g24_lpm_wait:
-009a 78347c00 enable user 
-009b 20402afa call lpo_calibration 
-009c 6801c16f fetch 3 ,mem_clks_per_lpo 
-009d 203a7fe9 branch disable_user ,blank 
-009e 6800c091 fetch 1 ,mem_lpm_mode 
+009c 78347c00 enable user 
+009d 20402afa call lpo_calibration 
+009e 6801c16f fetch 3 ,mem_clks_per_lpo 
 009f 203a7fe9 branch disable_user ,blank 
-00a0 6800cd5f fetch 1 ,mem_24g_transmit_by_interrupt 
-00a1 c000ffe9 beq g24_tx_timer_int_enable ,disable_user 
-00a2 202000ea branch p_mouse_setgpio_lpm 
+00a0 6800c091 fetch 1 ,mem_lpm_mode 
+00a1 203a7fe9 branch disable_user ,blank 
+00a2 6800cd5f fetch 1 ,mem_24g_transmit_by_interrupt 
+00a3 c000ffe9 beq g24_tx_timer_int_enable ,disable_user 
+00a4 202000ec branch p_mouse_setgpio_lpm 
 
 p_g24_send_abort_packet:
-00a3 704c4b01 jam 1 ,mem_24g_abort_pac 
-00a4 704d5400 jam 0 ,mem_24g_rf_hop_ch 
-00a5 204002d2 call p_g24_transmit_rf_ctrl_clear 
-00a6 6000cbbb store 1 ,mem_24g_txbuf 
-00a7 58000000 setarg 0 
-00a8 6003cbbc store 7 ,mem_24g_txbuf + 1 
-00a9 68024c56 fetch 4 ,mem_24g_device_addr 
-00aa 60024bc3 store 4 ,mem_24g_txbuf + 8 
-00ab 704c1f0c jam 12 ,mem_24g_datalen 
-00ac 6800cc20 fetch 1 ,mem_24g_data_type 
-00ad 79207e03 set1 bit_abort ,pdata 
-00ae 6000cc20 store 1 ,mem_24g_data_type 
-00af 2040032c call p_g24_txdata_enable_tx 
-00b0 20200037 branch p_g24_transmit_start 
+00a5 704c4b01 jam 1 ,mem_24g_abort_pac 
+00a6 704d5400 jam 0 ,mem_24g_rf_hop_ch 
+00a7 204002d2 call p_g24_transmit_rf_ctrl_clear 
+00a8 6000cbbb store 1 ,mem_24g_txbuf 
+00a9 58000000 setarg 0 
+00aa 6003cbbc store 7 ,mem_24g_txbuf + 1 
+00ab 68024c56 fetch 4 ,mem_24g_device_addr 
+00ac 60024bc3 store 4 ,mem_24g_txbuf + 8 
+00ad 704c1f0c jam 12 ,mem_24g_datalen 
+00ae 6800cc20 fetch 1 ,mem_24g_data_type 
+00af 79207e03 set1 bit_abort ,pdata 
+00b0 6000cc20 store 1 ,mem_24g_data_type 
+00b1 2040032c call p_g24_txdata_enable_tx 
+00b2 20200039 branch p_g24_transmit_start 
 
 p_g24_search_dongle_init:
-00b1 58000000 setarg 0 
-00b2 6001cd68 store 3 ,mem_24g_search_dongle_action 
-00b3 20600000 rtn 
+00b3 58000000 setarg 0 
+00b4 6001cd68 store 3 ,mem_24g_search_dongle_action 
+00b5 20600000 rtn 
 
 p_g24_search_dongle:
-00b4 6800c80e fetch 1 ,mem_mouse_long_mult_flag 
-00b5 207a0000 rtn blank 
-00b6 6800cc4b fetch 1 ,mem_24g_abort_pac 
+00b6 6800c80e fetch 1 ,mem_mouse_long_mult_flag 
 00b7 207a0000 rtn blank 
-00b8 6800cb46 fetch 1 ,mem_24g_search_dongle_wait 
-00b9 1fe0fe01 increase 1 ,pdata 
-00ba 1fe17e03 and_into 3 ,pdata 
-00bb 6000cb46 store 1 ,mem_24g_search_dongle_wait 
-00bc 247a0000 nrtn blank 
-00bd 704d6a00 jam 0 ,mem_24g_search_dongle_ch 
+00b8 6800cc4b fetch 1 ,mem_24g_abort_pac 
+00b9 207a0000 rtn blank 
+00ba 6800cb46 fetch 1 ,mem_24g_search_dongle_wait 
+00bb 1fe0fe01 increase 1 ,pdata 
+00bc 1fe17e03 and_into 3 ,pdata 
+00bd 6000cb46 store 1 ,mem_24g_search_dongle_wait 
+00be 247a0000 nrtn blank 
+00bf 704d6a00 jam 0 ,mem_24g_search_dongle_ch 
 
 p_g24_search_dongle_loop:
-00be 6800cd6a fetch 1 ,mem_24g_search_dongle_ch 
-00bf 1fe0fe01 increase 1 ,pdata 
-00c0 6000cd6a store 1 ,mem_24g_search_dongle_ch 
-00c1 1fe67c08 sub pdata ,g24_ch_number ,null 
-00c2 242100c8 nbranch p_g24_search_dongle_loop_end ,positive 
-00c3 2040041c call p_g24_tx_attemp_data_prep 
-00c4 2040036b call p_g24_transmit_receive_ack 
-00c5 242c00ce nbranch p_g24_search_dongle_loop_retry ,sync 
-00c6 243780ce nbranch p_g24_search_dongle_loop_retry ,user3 
-00c7 204000d8 call p_g24_search_dongle_success 
+00c0 6800cd6a fetch 1 ,mem_24g_search_dongle_ch 
+00c1 1fe0fe01 increase 1 ,pdata 
+00c2 6000cd6a store 1 ,mem_24g_search_dongle_ch 
+00c3 1fe67c08 sub pdata ,g24_ch_number ,null 
+00c4 242100ca nbranch p_g24_search_dongle_loop_end ,positive 
+00c5 2040041c call p_g24_tx_attemp_data_prep 
+00c6 2040036b call p_g24_transmit_receive_ack 
+00c7 242c00d0 nbranch p_g24_search_dongle_loop_retry ,sync 
+00c8 243780d0 nbranch p_g24_search_dongle_loop_retry ,user3 
+00c9 204000da call p_g24_search_dongle_success 
 
 p_g24_search_dongle_loop_end:
-00c8 20400368 call p_g24_txbuf_clear 
-00c9 6800cd69 fetch 1 ,mem_24g_search_dongle_count 
-00ca 1fe0fe01 increase 1 ,pdata 
-00cb 6000cd69 store 1 ,mem_24g_search_dongle_count 
-00cc c00800d0 beq g24_ch_poll_count ,p_g24_search_dongle_check 
-00cd 20600000 rtn 
+00ca 20400368 call p_g24_txbuf_clear 
+00cb 6800cd69 fetch 1 ,mem_24g_search_dongle_count 
+00cc 1fe0fe01 increase 1 ,pdata 
+00cd 6000cd69 store 1 ,mem_24g_search_dongle_count 
+00ce c00800d2 beq g24_ch_poll_count ,p_g24_search_dongle_check 
+00cf 20600000 rtn 
 
 p_g24_search_dongle_loop_retry:
-00ce 204004ca call p_g24_ch 
-00cf 202000be branch p_g24_search_dongle_loop 
+00d0 204004ca call p_g24_ch 
+00d1 202000c0 branch p_g24_search_dongle_loop 
 
 p_g24_search_dongle_check:
-00d0 704d6900 jam 0 ,mem_24g_search_dongle_count 
-00d1 6800cd68 fetch 1 ,mem_24g_search_dongle_action 
-00d2 c3800000 rtnbit1 g24_disconn_state 
-00d3 79207e00 set1 g24_disconn_state ,pdata 
-00d4 6000cd68 store 1 ,mem_24g_search_dongle_action 
-00d5 58000708 setarg g24_disconn_nodata_timer 
-00d6 600146b0 store 2 ,mem_mouse_no_data_timer 
-00d7 2020014d branch p_mouse_sensor_powerdown 
+00d2 704d6900 jam 0 ,mem_24g_search_dongle_count 
+00d3 6800cd68 fetch 1 ,mem_24g_search_dongle_action 
+00d4 c3800000 rtnbit1 g24_disconn_state 
+00d5 79207e00 set1 g24_disconn_state ,pdata 
+00d6 6000cd68 store 1 ,mem_24g_search_dongle_action 
+00d7 58000708 setarg g24_disconn_nodata_timer 
+00d8 600146b0 store 2 ,mem_mouse_no_data_timer 
+00d9 2020014d branch p_mouse_sensor_powerdown 
 
 p_g24_search_dongle_success:
-00d8 6800cc4b fetch 1 ,mem_24g_abort_pac 
-00d9 203a00b1 branch p_g24_search_dongle_init ,blank 
-00da 704d6900 jam 0 ,mem_24g_search_dongle_count 
-00db 6800cd68 fetch 1 ,mem_24g_search_dongle_action 
-00dc c4000000 rtnbit0 g24_disconn_state 
-00dd 793ffe00 set0 g24_disconn_state ,pdata 
-00de 6000cd68 store 1 ,mem_24g_search_dongle_action 
-00df 20403f8d call mouse_no_data_timer_init 
-00e0 2020011d branch p_mouse_init_sensor_reset 
+00da 6800cc4b fetch 1 ,mem_24g_abort_pac 
+00db 203a00b3 branch p_g24_search_dongle_init ,blank 
+00dc 704d6900 jam 0 ,mem_24g_search_dongle_count 
+00dd 6800cd68 fetch 1 ,mem_24g_search_dongle_action 
+00de c4000000 rtnbit0 g24_disconn_state 
+00df 793ffe00 set0 g24_disconn_state ,pdata 
+00e0 6000cd68 store 1 ,mem_24g_search_dongle_action 
+00e1 20403f8d call mouse_no_data_timer_init 
+00e2 2020011d branch p_mouse_init_sensor_reset 
 
 p_mouse_before_lpm:
-00e1 c6130000 rtnmark1 mark_24g 
-00e2 204000ea call p_mouse_setgpio_lpm 
-00e3 6800c040 fetch 1 ,mem_context 
-00e4 c30000e7 bbit0 state_inconn ,p_clear_wake 
-00e5 680080a0 fetch 1 ,mem_lpm_current_mult 
-00e6 247a0000 nrtn blank 
+00e3 c6130000 rtnmark1 mark_24g 
+00e4 204000ec call p_mouse_setgpio_lpm 
+00e5 6800c040 fetch 1 ,mem_context 
+00e6 c30000e9 bbit0 state_inconn ,p_clear_wake 
+00e7 680080a0 fetch 1 ,mem_lpm_current_mult 
+00e8 247a0000 nrtn blank 
 
 p_clear_wake:
-00e7 58000000 setarg 0 
-00e8 600400a1 store 8 ,mem_gpio_wakeup_low 
-00e9 20600000 rtn 
+00e9 58000000 setarg 0 
+00ea 600400a1 store 8 ,mem_gpio_wakeup_low 
+00eb 20600000 rtn 
 
 p_mouse_setgpio_lpm:
-00ea 204000f4 call p_mouse_set_sdio_high 
-00eb 204000e7 call p_clear_wake 
+00ec 204000f6 call p_mouse_set_sdio_high 
+00ed 204000e9 call p_clear_wake 
 
 p_mouse_setgpio_lpm_before:
-00ec 20403ebf call mouse_lpm_before_common 
-00ed 204001e5 call p_ice_gpio_set_input_pu 
-00ee 68120070 hfetch 4 ,core_gpio_oe0 
-00ef 681a0078 hfetcht 4 ,core_gpio_pu0 
-00f0 98418400 ior temp ,temp 
-00f1 18440400 invert temp ,temp 
-00f2 601a007c hstoret 4 ,core_gpio_pd0 
-00f3 20600000 rtn 
+00ee 20403ebf call mouse_lpm_before_common 
+00ef 204001e5 call p_ice_gpio_set_input_pu 
+00f0 68120070 hfetch 4 ,core_gpio_oe0 
+00f1 681a0078 hfetcht 4 ,core_gpio_pu0 
+00f2 98418400 ior temp ,temp 
+00f3 18440400 invert temp ,temp 
+00f4 601a007c hstoret 4 ,core_gpio_pd0 
+00f5 20600000 rtn 
 
 p_mouse_set_sdio_high:
-00f4 6800cb0a fetch 1 ,mem_mouse_init_sensor_reset_flag 
-00f5 207a0000 rtn blank 
-00f6 20200287 branch p_mouse_seting_sensor_type 
+00f6 6800cb0a fetch 1 ,mem_mouse_init_sensor_reset_flag 
+00f7 207a0000 rtn blank 
+00f8 20200287 branch p_mouse_seting_sensor_type 
 
 p_device_init:
-00f7 70895b86 jam 0x86 ,0x895b 
-00f8 70895ca0 jam 0xa0 ,0x895c 
 00f9 20403416 call app_lpm_mult_enable 
 00fa 20358102 branch p_device_init_common ,wake 
 00fb 70807820 jam 0x20 ,core_gpio_pu0 
@@ -542,7 +542,7 @@
 p_mouse_cb_fuction:
 0190 5800019d setarg p_mouse_g24_package_data 
 0191 60014d50 store 2 ,mem_cb_24g_data 
-0192 580000e1 setarg p_mouse_before_lpm 
+0192 580000e3 setarg p_mouse_before_lpm 
 0193 600141ed store 2 ,mem_cb_before_lpm 
 0194 580001b9 setarg p_mouse_priority_bb_event 
 0195 600141f5 store 2 ,mem_cb_bb_event_process 
@@ -646,7 +646,7 @@
 01df 204074bd call disable_authrom 
 01e0 20404482 call mouse_devce_led_off 
 01e1 20403e9f call mouse_before_hibernate_wheel_gpio_set 
-01e2 204000ec call p_mouse_setgpio_lpm_before 
+01e2 204000ee call p_mouse_setgpio_lpm_before 
 01e3 6808c6f7 fetcht 1 ,mem_select_sensor_angle_gpio 
 01e4 202067ed branch gpio_clr_wake 
 
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_Only24g_New/program/patch.prog	(revision 2873)
+++ /branch/mouse_project/YJX_Project/YJX_Only24g_New/program/patch.prog	(working copy)
@@ -51,6 +51,8 @@
 	rtn
 	
 p_soft_reset:
+	jam 0x86,0x895b
+	jam 0xa0,0x895c
 	hfetch 1,0x813b
 	store 1,mem_power_on_flag
 	branch soft_reset+1
@@ -340,8 +342,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/YJX_Only24g_New/sched/mouse.dat	(revision 2873)
+++ /branch/mouse_project/YJX_Project/YJX_Only24g_New/sched/mouse.dat	(working copy)
@@ -15,7 +15,7 @@
 mem_patch2e:80
 mem_patch31:10
 
-mem_firmware_version:06 00
+mem_firmware_version:07 00
 
 mem_device_option:40
 mem_lpm_mode:01
